From e10ac206f91cf8821dbfa97c69632b223d93cc24 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 23 Jul 2026 16:18:37 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .claude/skills/tryagi-openai/SKILL.md | 2 +- .claude/skills/tryagi-openai/commands.md | 6 + .../Commands/DefaultApiGroupCommand.g.cs | 6 + ...ganizationSpendLimitCommandApiCommand.g.cs | 59 + ...eteProjectSpendLimitCommandApiCommand.g.cs | 63 + ...ganizationSpendLimitCommandApiCommand.g.cs | 59 + ...eveProjectSpendLimitCommandApiCommand.g.cs | 63 + ...ganizationSpendLimitCommandApiCommand.g.cs | 118 + ...ateProjectSpendLimitCommandApiCommand.g.cs | 127 + ...AiClient.DeleteOrganizationSpendLimit.g.cs | 26 + ...IOpenAiClient.DeleteProjectSpendLimit.g.cs | 34 + ...Client.RetrieveOrganizationSpendLimit.g.cs | 26 + ...penAiClient.RetrieveProjectSpendLimit.g.cs | 34 + ...AiClient.UpdateOrganizationSpendLimit.g.cs | 53 + ...IOpenAiClient.UpdateProjectSpendLimit.g.cs | 65 + ...zationSpendLimitDeletedResourceObject.g.cs | 53 + ...endLimitDeletedResourceObjectNullable.g.cs | 60 + ....OrganizationSpendLimitResourceObject.g.cs | 53 + ...ationSpendLimitResourceObjectNullable.g.cs | 60 + ...rojectSpendLimitDeletedResourceObject.g.cs | 53 + ...endLimitDeletedResourceObjectNullable.g.cs | 60 + ...rters.ProjectSpendLimitResourceObject.g.cs | 53 + ...ojectSpendLimitResourceObjectNullable.g.cs | 60 + ...nAI.JsonConverters.SpendLimitCurrency.g.cs | 162 ++ ...JsonConverters.SpendLimitCurrencyEnum.g.cs | 53 + ...erters.SpendLimitCurrencyEnumNullable.g.cs | 60 + ...onverters.SpendLimitEnforcementStatus.g.cs | 162 ++ ...rters.SpendLimitEnforcementStatusEnum.g.cs | 53 + ...endLimitEnforcementStatusEnumNullable.g.cs | 60 + ...nAI.JsonConverters.SpendLimitInterval.g.cs | 162 ++ ...JsonConverters.SpendLimitIntervalEnum.g.cs | 53 + ...erters.SpendLimitIntervalEnumNullable.g.cs | 60 + ...ateOrganizationSpendLimitBodyCurrency.g.cs | 53 + ...izationSpendLimitBodyCurrencyNullable.g.cs | 60 + ...ateOrganizationSpendLimitBodyInterval.g.cs | 53 + ...izationSpendLimitBodyIntervalNullable.g.cs | 60 + ...s.UpdateProjectSpendLimitBodyCurrency.g.cs | 53 + ...ProjectSpendLimitBodyCurrencyNullable.g.cs | 60 + ...s.UpdateProjectSpendLimitBodyInterval.g.cs | 53 + ...ProjectSpendLimitBodyIntervalNullable.g.cs | 60 + .../tryAGI.OpenAI.JsonSerializerContext.g.cs | 1060 ++++++-- ...AGI.OpenAI.JsonSerializerContextTypes.g.cs | 2178 +++++++++-------- ...izationSpendLimitDeletedResource.Json.g.cs | 141 ++ ...OrganizationSpendLimitDeletedResource.g.cs | 74 + ...zationSpendLimitDeletedResourceObject.g.cs | 46 + ...s.OrganizationSpendLimitResource.Json.g.cs | 141 ++ ...Models.OrganizationSpendLimitResource.g.cs | 100 + ....OrganizationSpendLimitResourceObject.g.cs | 46 + ...ProjectSpendLimitDeletedResource.Json.g.cs | 141 ++ ...dels.ProjectSpendLimitDeletedResource.g.cs | 74 + ...rojectSpendLimitDeletedResourceObject.g.cs | 46 + ...Models.ProjectSpendLimitResource.Json.g.cs | 141 ++ ...enAI.Models.ProjectSpendLimitResource.g.cs | 100 + ...odels.ProjectSpendLimitResourceObject.g.cs | 46 + ...OpenAI.Models.SpendLimitCurrency.Json.g.cs | 141 ++ ...yAGI.OpenAI.Models.SpendLimitCurrency.g.cs | 295 +++ ....OpenAI.Models.SpendLimitCurrencyEnum.g.cs | 45 + ...nAI.Models.SpendLimitEnforcement.Json.g.cs | 141 ++ ...I.OpenAI.Models.SpendLimitEnforcement.g.cs | 48 + ...dels.SpendLimitEnforcementStatus.Json.g.cs | 141 ++ ...AI.Models.SpendLimitEnforcementStatus.g.cs | 295 +++ ...odels.SpendLimitEnforcementStatusEnum.g.cs | 51 + ...OpenAI.Models.SpendLimitInterval.Json.g.cs | 141 ++ ...yAGI.OpenAI.Models.SpendLimitInterval.g.cs | 295 +++ ....OpenAI.Models.SpendLimitIntervalEnum.g.cs | 45 + ...UpdateOrganizationSpendLimitBody.Json.g.cs | 141 ++ ...dels.UpdateOrganizationSpendLimitBody.g.cs | 71 + ...ateOrganizationSpendLimitBodyCurrency.g.cs | 45 + ...ateOrganizationSpendLimitBodyInterval.g.cs | 45 + ...dels.UpdateProjectSpendLimitBody.Json.g.cs | 141 ++ ...AI.Models.UpdateProjectSpendLimitBody.g.cs | 71 + ...s.UpdateProjectSpendLimitBodyCurrency.g.cs | 45 + ...s.UpdateProjectSpendLimitBodyInterval.g.cs | 45 + ...AiClient.DeleteOrganizationSpendLimit.g.cs | 417 ++++ ....OpenAiClient.DeleteProjectSpendLimit.g.cs | 430 ++++ ...Client.RetrieveOrganizationSpendLimit.g.cs | 417 ++++ ...penAiClient.RetrieveProjectSpendLimit.g.cs | 430 ++++ ...AiClient.UpdateOrganizationSpendLimit.g.cs | 471 ++++ ....OpenAiClient.UpdateProjectSpendLimit.g.cs | 489 ++++ src/libs/tryAGI.OpenAI/openapi.yaml | 848 +++++++ 80 files changed, 11325 insertions(+), 1223 deletions(-) create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteOrganizationSpendLimitCommandApiCommand.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteProjectSpendLimitCommandApiCommand.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveOrganizationSpendLimitCommandApiCommand.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveProjectSpendLimitCommandApiCommand.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateOrganizationSpendLimitCommandApiCommand.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateProjectSpendLimitCommandApiCommand.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteOrganizationSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteProjectSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveOrganizationSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveProjectSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.UpdateOrganizationSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.UpdateProjectSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrency.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnum.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatus.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnum.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitInterval.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnum.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrency.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyInterval.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrency.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyInterval.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResource.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResource.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResourceObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResource.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResource.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResourceObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResource.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResource.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResourceObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResource.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResource.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResourceObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrencyEnum.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcement.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcement.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatusEnum.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitIntervalEnum.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBody.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBody.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBodyCurrency.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBodyInterval.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBody.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBody.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBodyCurrency.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBodyInterval.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteOrganizationSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteProjectSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveOrganizationSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveProjectSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateOrganizationSpendLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateProjectSpendLimit.g.cs diff --git a/.claude/skills/tryagi-openai/SKILL.md b/.claude/skills/tryagi-openai/SKILL.md index 269beb61..83501cc3 100644 --- a/.claude/skills/tryagi-openai/SKILL.md +++ b/.claude/skills/tryagi-openai/SKILL.md @@ -61,7 +61,7 @@ dnx tryAGI.OpenAI.CLI --help | `user-organization-role-assignment` | 4 | | | `vector-store` | 16 | | | `video` | 10 | | -| `default` | 24 | | +| `default` | 30 | | ## References diff --git a/.claude/skills/tryagi-openai/commands.md b/.claude/skills/tryagi-openai/commands.md index eae306a0..deb0cf87 100644 --- a/.claude/skills/tryagi-openai/commands.md +++ b/.claude/skills/tryagi-openai/commands.md @@ -480,6 +480,8 @@ Use Uploads to upload large files in multiple parts. | `delete-acontainer-file` | `DELETE /containers/{container_id}/files/{file_id}` | Delete Container File | | `delete-admin-api-key` | `DELETE /organization/admin_api_keys/{key_id}` | Delete an organization admin API key | | `delete-chat-kit-thread` | `DELETE /chatkit/threads/{thread_id}` | Delete a ChatKit thread along with its items and stored attachments. | +| `delete-organization-spend-limit` | `DELETE /organization/spend_limit` | Delete the organization's hard spend limit. | +| `delete-project-spend-limit` | `DELETE /organization/projects/{project_id}/spend_limit` | Delete a project's hard spend limit. | | `get-input-token-counts` | `POST /responses/input_tokens` | Returns input token counts of the request. Returns an object with `object` set to `response.input_tokens` and an `input_tokens` count. | | `get-input-token-counts` | `POST /responses/input_tokens?beta=true` | Returns input token counts of the request. Returns an object with `object` set to `response.input_tokens` and an `input_tokens` count. | | `list-all-organization-and-project-api-keys` | `GET /organization/admin_api_keys` | List organization API keys | @@ -492,6 +494,10 @@ Use Uploads to upload large files in multiple parts. | `retrieve-container` | `GET /containers/{container_id}` | Retrieve Container | | `retrieve-container-file` | `GET /containers/{container_id}/files/{file_id}` | Retrieve Container File | | `retrieve-container-file-content` | `GET /containers/{container_id}/files/{file_id}/content` | Retrieve Container File Content | +| `retrieve-organization-spend-limit` | `GET /organization/spend_limit` | Get the organization's hard spend limit. | +| `retrieve-project-spend-limit` | `GET /organization/projects/{project_id}/spend_limit` | Get a project's hard spend limit. | +| `update-organization-spend-limit` | `POST /organization/spend_limit` | Create or replace the organization's hard spend limit. | +| `update-project-spend-limit` | `POST /organization/projects/{project_id}/spend_limit` | Create or replace a project's hard spend limit. | ## Usage tips diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DefaultApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DefaultApiGroupCommand.g.cs index 053dac1b..3bc4df11 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DefaultApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DefaultApiGroupCommand.g.cs @@ -21,6 +21,8 @@ public static Command Create() command.Subcommands.Add(DeleteAContainerFileCommandApiCommand.Create()); command.Subcommands.Add(DeleteAdminApiKeyCommandApiCommand.Create()); command.Subcommands.Add(DeleteChatKitThreadCommandApiCommand.Create()); + command.Subcommands.Add(DeleteOrganizationSpendLimitCommandApiCommand.Create()); + command.Subcommands.Add(DeleteProjectSpendLimitCommandApiCommand.Create()); command.Subcommands.Add(GetInputTokenCountsCommandApiCommand.Create()); command.Subcommands.Add(GetInputTokenCounts2CommandApiCommand.Create()); command.Subcommands.Add(ListAllOrganizationAndProjectApiKeysCommandApiCommand.Create()); @@ -33,6 +35,10 @@ public static Command Create() command.Subcommands.Add(RetrieveContainerCommandApiCommand.Create()); command.Subcommands.Add(RetrieveContainerFileCommandApiCommand.Create()); command.Subcommands.Add(RetrieveContainerFileContentCommandApiCommand.Create()); + command.Subcommands.Add(RetrieveOrganizationSpendLimitCommandApiCommand.Create()); + command.Subcommands.Add(RetrieveProjectSpendLimitCommandApiCommand.Create()); + command.Subcommands.Add(UpdateOrganizationSpendLimitCommandApiCommand.Create()); + command.Subcommands.Add(UpdateProjectSpendLimitCommandApiCommand.Create()); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteOrganizationSpendLimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteOrganizationSpendLimitCommandApiCommand.g.cs new file mode 100644 index 00000000..38adeb58 --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteOrganizationSpendLimitCommandApiCommand.g.cs @@ -0,0 +1,59 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class DeleteOrganizationSpendLimitCommandApiCommand +{ + + + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource 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(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"delete-organization-spend-limit", @"Delete the organization's hard spend limit."); + + + + 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.DeleteOrganizationSpendLimitAsync( + + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteProjectSpendLimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteProjectSpendLimitCommandApiCommand.g.cs new file mode 100644 index 00000000..cf70a513 --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteProjectSpendLimitCommandApiCommand.g.cs @@ -0,0 +1,63 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class DeleteProjectSpendLimitCommandApiCommand +{ + private static Argument ProjectId { get; } = new( + name: @"project-id") + { + Description = @"The ID of the project whose hard spend limit is being managed.", + }; + + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource 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(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"delete-project-spend-limit", @"Delete a project's hard spend limit."); + command.Arguments.Add(ProjectId); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var projectId = parseResult.GetRequiredValue(ProjectId); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.DeleteProjectSpendLimitAsync( + projectId: projectId, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveOrganizationSpendLimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveOrganizationSpendLimitCommandApiCommand.g.cs new file mode 100644 index 00000000..785acd3b --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveOrganizationSpendLimitCommandApiCommand.g.cs @@ -0,0 +1,59 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class RetrieveOrganizationSpendLimitCommandApiCommand +{ + + + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.OrganizationSpendLimitResource 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(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.OrganizationSpendLimitResource value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"retrieve-organization-spend-limit", @"Get the organization's hard spend limit."); + + + + 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.RetrieveOrganizationSpendLimitAsync( + + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveProjectSpendLimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveProjectSpendLimitCommandApiCommand.g.cs new file mode 100644 index 00000000..2d3030f1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveProjectSpendLimitCommandApiCommand.g.cs @@ -0,0 +1,63 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class RetrieveProjectSpendLimitCommandApiCommand +{ + private static Argument ProjectId { get; } = new( + name: @"project-id") + { + Description = @"The ID of the project whose hard spend limit is being managed.", + }; + + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.ProjectSpendLimitResource 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(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.ProjectSpendLimitResource value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"retrieve-project-spend-limit", @"Get a project's hard spend limit."); + command.Arguments.Add(ProjectId); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var projectId = parseResult.GetRequiredValue(ProjectId); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.RetrieveProjectSpendLimitAsync( + projectId: projectId, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateOrganizationSpendLimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateOrganizationSpendLimitCommandApiCommand.g.cs new file mode 100644 index 00000000..7b72a550 --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateOrganizationSpendLimitCommandApiCommand.g.cs @@ -0,0 +1,118 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class UpdateOrganizationSpendLimitCommandApiCommand +{ + private static Option ThresholdAmount { get; } = new( + name: @"--threshold-amount") + { + Description = @"The hard spend limit amount, in cents.", + Required = true, + }; + + private static Option Currency { get; } = new( + name: @"--currency") + { + Description = @"The currency for the threshold amount. Currently, only `USD` is supported.", + }; + + private static Option Interval { get; } = new( + name: @"--interval") + { + Description = @"The time interval for evaluating spend against the threshold. Currently, only `month` is supported.", + }; + private static Option Input { get; } = new(@"--input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.OrganizationSpendLimitResource 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(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.OrganizationSpendLimitResource value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"update-organization-spend-limit", @"Create or replace the organization's hard spend limit."); + command.Options.Add(ThresholdAmount); + command.Options.Add(Currency); + command.Options.Add(Interval); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var thresholdAmount = parseResult.GetRequiredValue(ThresholdAmount); + var currency = CliRuntime.WasSpecified(parseResult, Currency) ? parseResult.GetValue(Currency) : (__requestBase is { } __CurrencyBaseValue ? __CurrencyBaseValue.Currency : default); + var interval = CliRuntime.WasSpecified(parseResult, Interval) ? parseResult.GetValue(Interval) : (__requestBase is { } __IntervalBaseValue ? __IntervalBaseValue.Interval : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.UpdateOrganizationSpendLimitAsync( + thresholdAmount: thresholdAmount, + currency: currency, + interval: interval, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateProjectSpendLimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateProjectSpendLimitCommandApiCommand.g.cs new file mode 100644 index 00000000..f01fe021 --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateProjectSpendLimitCommandApiCommand.g.cs @@ -0,0 +1,127 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class UpdateProjectSpendLimitCommandApiCommand +{ + private static Argument ProjectId { get; } = new( + name: @"project-id") + { + Description = @"The ID of the project whose hard spend limit is being managed.", + }; + + private static Option ThresholdAmount { get; } = new( + name: @"--threshold-amount") + { + Description = @"The hard spend limit amount, in cents.", + Required = true, + }; + + private static Option Currency { get; } = new( + name: @"--currency") + { + Description = @"The currency for the threshold amount. Currently, only `USD` is supported.", + }; + + private static Option Interval { get; } = new( + name: @"--interval") + { + Description = @"The time interval for evaluating spend against the threshold. Currently, only `month` is supported.", + }; + private static Option Input { get; } = new(@"--input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.ProjectSpendLimitResource 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(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.ProjectSpendLimitResource value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"update-project-spend-limit", @"Create or replace a project's hard spend limit."); + command.Arguments.Add(ProjectId); + command.Options.Add(ThresholdAmount); + command.Options.Add(Currency); + command.Options.Add(Interval); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var projectId = parseResult.GetRequiredValue(ProjectId); + var thresholdAmount = parseResult.GetRequiredValue(ThresholdAmount); + var currency = CliRuntime.WasSpecified(parseResult, Currency) ? parseResult.GetValue(Currency) : (__requestBase is { } __CurrencyBaseValue ? __CurrencyBaseValue.Currency : default); + var interval = CliRuntime.WasSpecified(parseResult, Interval) ? parseResult.GetValue(Interval) : (__requestBase is { } __IntervalBaseValue ? __IntervalBaseValue.Interval : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.UpdateProjectSpendLimitAsync( + projectId: projectId, + thresholdAmount: thresholdAmount, + currency: currency, + interval: interval, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteOrganizationSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteOrganizationSpendLimit.g.cs new file mode 100644 index 00000000..6f277e48 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteOrganizationSpendLimit.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IOpenAiClient + { + /// + /// Delete the organization's hard spend limit. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DeleteOrganizationSpendLimitAsync( + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete the organization's hard spend limit. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> DeleteOrganizationSpendLimitAsResponseAsync( + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteProjectSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteProjectSpendLimit.g.cs new file mode 100644 index 00000000..9c8fe862 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteProjectSpendLimit.g.cs @@ -0,0 +1,34 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IOpenAiClient + { + /// + /// Delete a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DeleteProjectSpendLimitAsync( + string projectId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> DeleteProjectSpendLimitAsResponseAsync( + string projectId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveOrganizationSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveOrganizationSpendLimit.g.cs new file mode 100644 index 00000000..2958db36 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveOrganizationSpendLimit.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IOpenAiClient + { + /// + /// Get the organization's hard spend limit. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task RetrieveOrganizationSpendLimitAsync( + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get the organization's hard spend limit. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> RetrieveOrganizationSpendLimitAsResponseAsync( + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveProjectSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveProjectSpendLimit.g.cs new file mode 100644 index 00000000..6d1df112 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveProjectSpendLimit.g.cs @@ -0,0 +1,34 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IOpenAiClient + { + /// + /// Get a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task RetrieveProjectSpendLimitAsync( + string projectId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> RetrieveProjectSpendLimitAsResponseAsync( + string projectId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.UpdateOrganizationSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.UpdateOrganizationSpendLimit.g.cs new file mode 100644 index 00000000..35f05111 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.UpdateOrganizationSpendLimit.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IOpenAiClient + { + /// + /// Create or replace the organization's hard spend limit. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateOrganizationSpendLimitAsync( + + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create or replace the organization's hard spend limit. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> UpdateOrganizationSpendLimitAsResponseAsync( + + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create or replace the organization's hard spend limit. + /// + /// + /// The hard spend limit amount, in cents. + /// + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateOrganizationSpendLimitAsync( + int thresholdAmount, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency currency = default, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval interval = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.UpdateProjectSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.UpdateProjectSpendLimit.g.cs new file mode 100644 index 00000000..fd4f883b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.UpdateProjectSpendLimit.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IOpenAiClient + { + /// + /// Create or replace a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateProjectSpendLimitAsync( + string projectId, + + global::tryAGI.OpenAI.UpdateProjectSpendLimitBody request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create or replace a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> UpdateProjectSpendLimitAsResponseAsync( + string projectId, + + global::tryAGI.OpenAI.UpdateProjectSpendLimitBody request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create or replace a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// + /// The hard spend limit amount, in cents. + /// + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateProjectSpendLimitAsync( + string projectId, + int thresholdAmount, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency currency = default, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval interval = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObject.g.cs new file mode 100644 index 00000000..0cb7573f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OrganizationSpendLimitDeletedResourceObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullable.g.cs new file mode 100644 index 00000000..6aab9429 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObject.g.cs new file mode 100644 index 00000000..81d920b7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OrganizationSpendLimitResourceObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OrganizationSpendLimitResourceObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.OrganizationSpendLimitResourceObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullable.g.cs new file mode 100644 index 00000000..86a58a1a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OrganizationSpendLimitResourceObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OrganizationSpendLimitResourceObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.OrganizationSpendLimitResourceObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObject.g.cs new file mode 100644 index 00000000..4a6cedec --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ProjectSpendLimitDeletedResourceObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullable.g.cs new file mode 100644 index 00000000..cb12c778 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ProjectSpendLimitDeletedResourceObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObject.g.cs new file mode 100644 index 00000000..de94a010 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ProjectSpendLimitResourceObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ProjectSpendLimitResourceObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ProjectSpendLimitResourceObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ProjectSpendLimitResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ProjectSpendLimitResourceObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ProjectSpendLimitResourceObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ProjectSpendLimitResourceObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullable.g.cs new file mode 100644 index 00000000..abf2ecd5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ProjectSpendLimitResourceObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ProjectSpendLimitResourceObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ProjectSpendLimitResourceObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ProjectSpendLimitResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ProjectSpendLimitResourceObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ProjectSpendLimitResourceObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ProjectSpendLimitResourceObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrency.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrency.g.cs new file mode 100644 index 00000000..97599f3c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrency.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class SpendLimitCurrencyJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.SpendLimitCurrency Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? spendLimitCurrencyVariant1 = default; + global::tryAGI.OpenAI.SpendLimitCurrencyEnum? @enum = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + spendLimitCurrencyVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (spendLimitCurrencyVariant1 == null && @enum == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + spendLimitCurrencyVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (spendLimitCurrencyVariant1 == null && @enum == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.SpendLimitCurrency( + spendLimitCurrencyVariant1, + + @enum + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.SpendLimitCurrency value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsSpendLimitCurrencyVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpendLimitCurrencyVariant1!, typeInfo); + } + else if (value.IsEnum) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnum.g.cs new file mode 100644 index 00000000..3e3c7bf2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnum.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class SpendLimitCurrencyEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.SpendLimitCurrencyEnum Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.SpendLimitCurrencyEnumExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.SpendLimitCurrencyEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.SpendLimitCurrencyEnum); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.SpendLimitCurrencyEnum value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.SpendLimitCurrencyEnumExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullable.g.cs new file mode 100644 index 00000000..8f4663d3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class SpendLimitCurrencyEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.SpendLimitCurrencyEnumExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.SpendLimitCurrencyEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.SpendLimitCurrencyEnum?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.SpendLimitCurrencyEnum? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.SpendLimitCurrencyEnumExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatus.g.cs new file mode 100644 index 00000000..472b0cee --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatus.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class SpendLimitEnforcementStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.SpendLimitEnforcementStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? spendLimitEnforcementStatusVariant1 = default; + global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? @enum = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + spendLimitEnforcementStatusVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (spendLimitEnforcementStatusVariant1 == null && @enum == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + spendLimitEnforcementStatusVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (spendLimitEnforcementStatusVariant1 == null && @enum == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.SpendLimitEnforcementStatus( + spendLimitEnforcementStatusVariant1, + + @enum + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.SpendLimitEnforcementStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsSpendLimitEnforcementStatusVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpendLimitEnforcementStatusVariant1!, typeInfo); + } + else if (value.IsEnum) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnum.g.cs new file mode 100644 index 00000000..e681a9d9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnum.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class SpendLimitEnforcementStatusEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnumExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnumExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullable.g.cs new file mode 100644 index 00000000..29af662a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class SpendLimitEnforcementStatusEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnumExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnumExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitInterval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitInterval.g.cs new file mode 100644 index 00000000..9ea9834f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitInterval.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class SpendLimitIntervalJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.SpendLimitInterval Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? spendLimitIntervalVariant1 = default; + global::tryAGI.OpenAI.SpendLimitIntervalEnum? @enum = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + spendLimitIntervalVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (spendLimitIntervalVariant1 == null && @enum == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + spendLimitIntervalVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (spendLimitIntervalVariant1 == null && @enum == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.SpendLimitInterval( + spendLimitIntervalVariant1, + + @enum + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.SpendLimitInterval value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsSpendLimitIntervalVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpendLimitIntervalVariant1!, typeInfo); + } + else if (value.IsEnum) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnum.g.cs new file mode 100644 index 00000000..31cfc271 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnum.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class SpendLimitIntervalEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.SpendLimitIntervalEnum Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.SpendLimitIntervalEnumExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.SpendLimitIntervalEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.SpendLimitIntervalEnum); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.SpendLimitIntervalEnum value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.SpendLimitIntervalEnumExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullable.g.cs new file mode 100644 index 00000000..df9f8e41 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class SpendLimitIntervalEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.SpendLimitIntervalEnum? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.SpendLimitIntervalEnumExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.SpendLimitIntervalEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.SpendLimitIntervalEnum?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.SpendLimitIntervalEnum? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.SpendLimitIntervalEnumExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrency.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrency.g.cs new file mode 100644 index 00000000..b4fefc3b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrency.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UpdateOrganizationSpendLimitBodyCurrencyJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrencyExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrencyExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullable.g.cs new file mode 100644 index 00000000..496232fc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrencyExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrencyExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyInterval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyInterval.g.cs new file mode 100644 index 00000000..2fe6ee24 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyInterval.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UpdateOrganizationSpendLimitBodyIntervalJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyIntervalExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyIntervalExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullable.g.cs new file mode 100644 index 00000000..6905ae46 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyIntervalExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyIntervalExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrency.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrency.g.cs new file mode 100644 index 00000000..7ef71b5f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrency.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UpdateProjectSpendLimitBodyCurrencyJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrencyExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrencyExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullable.g.cs new file mode 100644 index 00000000..406b7708 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrencyExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrencyExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyInterval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyInterval.g.cs new file mode 100644 index 00000000..c11d67c2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyInterval.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UpdateProjectSpendLimitBodyIntervalJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyIntervalExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyIntervalExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullable.g.cs new file mode 100644 index 00000000..c5c9cb72 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UpdateProjectSpendLimitBodyIntervalNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyIntervalExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyIntervalExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs index 5b504f8b..1fb764d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs @@ -4309,6 +4309,50 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -6461,6 +6505,12 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -11770,6 +11820,50 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -13922,6 +14016,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -19231,6 +19331,50 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -21383,6 +21527,12 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -26692,6 +26842,50 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -28844,6 +29038,12 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -34153,6 +34353,50 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -36305,6 +36549,12 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -41614,6 +41864,50 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -43766,6 +44060,12 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -44680,6 +44980,27 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateConversationBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateConversationBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversationResourceObject), TypeInfoPropertyName = "DeletedConversationResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitCurrency), TypeInfoPropertyName = "SpendLimitCurrency2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum), TypeInfoPropertyName = "SpendLimitCurrencyEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitInterval), TypeInfoPropertyName = "SpendLimitInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum), TypeInfoPropertyName = "SpendLimitIntervalEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatus), TypeInfoPropertyName = "SpendLimitEnforcementStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum), TypeInfoPropertyName = "SpendLimitEnforcementStatusEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitEnforcement))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendLimitResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject), TypeInfoPropertyName = "OrganizationSpendLimitResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency), TypeInfoPropertyName = "UpdateOrganizationSpendLimitBodyCurrency2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval), TypeInfoPropertyName = "UpdateOrganizationSpendLimitBodyInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject), TypeInfoPropertyName = "OrganizationSpendLimitDeletedResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendLimitResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendLimitResourceObject), TypeInfoPropertyName = "ProjectSpendLimitResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateProjectSpendLimitBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency), TypeInfoPropertyName = "UpdateProjectSpendLimitBodyCurrency2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval), TypeInfoPropertyName = "UpdateProjectSpendLimitBodyInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject), TypeInfoPropertyName = "ProjectSpendLimitDeletedResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateProjectServiceAccountApiKeyBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ServiceAccountApiKeyBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject), TypeInfoPropertyName = "ServiceAccountApiKeyBodyObject2")] @@ -44747,27 +45068,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedSkillVersionResourceObject), TypeInfoPropertyName = "DeletedSkillVersionResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitWorkflowTracing))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitWorkflow))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringInt32BooleanDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionRateLimits))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionStatus), TypeInfoPropertyName = "ChatSessionStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionFileUpload))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionHistory))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionChatkitConfiguration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionResourceObject), TypeInfoPropertyName = "ChatSessionResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WorkflowTracingParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WorkflowParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExpiresAfterParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExpiresAfterParamAnchor), TypeInfoPropertyName = "ExpiresAfterParamAnchor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RateLimitsParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutomaticThreadTitlingParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileUploadParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HistoryParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitConfigurationParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatSessionBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageInputText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageInputTextType), TypeInfoPropertyName = "UserMessageInputTextType2")] internal sealed partial class SourceGenerationContextChunk5 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -49075,6 +49375,50 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -51227,6 +51571,12 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -51752,6 +52102,27 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringInt32BooleanDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionRateLimits))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionStatus), TypeInfoPropertyName = "ChatSessionStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionFileUpload))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionHistory))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionChatkitConfiguration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionResourceObject), TypeInfoPropertyName = "ChatSessionResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WorkflowTracingParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WorkflowParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExpiresAfterParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExpiresAfterParamAnchor), TypeInfoPropertyName = "ExpiresAfterParamAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RateLimitsParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutomaticThreadTitlingParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileUploadParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HistoryParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitConfigurationParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatSessionBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageInputText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageInputTextType), TypeInfoPropertyName = "UserMessageInputTextType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageQuotedText))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageQuotedTextType), TypeInfoPropertyName = "UserMessageQuotedTextType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AttachmentType), TypeInfoPropertyName = "AttachmentType2")] @@ -52208,27 +52579,6 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerScreenshotImageType), TypeInfoPropertyName = "BetaComputerScreenshotImageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerToolCallType), TypeInfoPropertyName = "BetaComputerToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerAction), TypeInfoPropertyName = "BetaComputerAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerToolCallStatus), TypeInfoPropertyName = "BetaComputerToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaClickParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDoubleClickAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDragParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaKeyPressAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMoveParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScreenshotParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScrollParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaTypeParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWaitParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerActionDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType), TypeInfoPropertyName = "BetaComputerActionDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWaitParamType), TypeInfoPropertyName = "BetaWaitParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaTypeParamType), TypeInfoPropertyName = "BetaTypeParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScrollParamType), TypeInfoPropertyName = "BetaScrollParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScreenshotParamType), TypeInfoPropertyName = "BetaScreenshotParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMoveParamType), TypeInfoPropertyName = "BetaMoveParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaKeyPressActionType), TypeInfoPropertyName = "BetaKeyPressActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDragParamType), TypeInfoPropertyName = "BetaDragParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] internal sealed partial class SourceGenerationContextChunk6 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -56536,6 +56886,50 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -58688,6 +59082,12 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -59213,6 +59613,27 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerToolCallStatus), TypeInfoPropertyName = "BetaComputerToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaClickParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDoubleClickAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDragParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaKeyPressAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMoveParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScreenshotParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScrollParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaTypeParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWaitParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerActionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType), TypeInfoPropertyName = "BetaComputerActionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWaitParamType), TypeInfoPropertyName = "BetaWaitParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaTypeParamType), TypeInfoPropertyName = "BetaTypeParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScrollParamType), TypeInfoPropertyName = "BetaScrollParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScreenshotParamType), TypeInfoPropertyName = "BetaScreenshotParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMoveParamType), TypeInfoPropertyName = "BetaMoveParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaKeyPressActionType), TypeInfoPropertyName = "BetaKeyPressActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDragParamType), TypeInfoPropertyName = "BetaDragParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCoordParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDoubleClickActionType), TypeInfoPropertyName = "BetaDoubleClickActionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaClickParamType), TypeInfoPropertyName = "BetaClickParamType2")] @@ -59669,27 +60090,6 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunStepsIncludeItem), TypeInfoPropertyName = "ListRunStepsIncludeItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetRunStepIncludeItem), TypeInfoPropertyName = "GetRunStepIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoresOrder), TypeInfoPropertyName = "ListVectorStoresOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder), TypeInfoPropertyName = "ListFilesInVectorStoreBatchOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter), TypeInfoPropertyName = "ListFilesInVectorStoreBatchFilter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesOrder), TypeInfoPropertyName = "ListVectorStoreFilesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesFilter), TypeInfoPropertyName = "ListVectorStoreFilesFilter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem), TypeInfoPropertyName = "BetaCreateResponseOpenaiBetaItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem), TypeInfoPropertyName = "BetaGetResponseOpenaiBetaItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem), TypeInfoPropertyName = "BetaDeleteResponseOpenaiBetaItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem), TypeInfoPropertyName = "BetaCancelResponseOpenaiBetaItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem), TypeInfoPropertyName = "BetaCompactconversationOpenaiBetaItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaListInputItemsOrder), TypeInfoPropertyName = "BetaListInputItemsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem), TypeInfoPropertyName = "BetaListInputItemsOpenaiBetaItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem), TypeInfoPropertyName = "BetaGetinputtokencountsOpenaiBetaItem2")] internal sealed partial class SourceGenerationContextChunk7 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -63997,6 +64397,50 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -66149,6 +66593,12 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -66674,6 +67124,27 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetRunStepIncludeItem), TypeInfoPropertyName = "GetRunStepIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoresOrder), TypeInfoPropertyName = "ListVectorStoresOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder), TypeInfoPropertyName = "ListFilesInVectorStoreBatchOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter), TypeInfoPropertyName = "ListFilesInVectorStoreBatchFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesOrder), TypeInfoPropertyName = "ListVectorStoreFilesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesFilter), TypeInfoPropertyName = "ListVectorStoreFilesFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem), TypeInfoPropertyName = "BetaCreateResponseOpenaiBetaItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem), TypeInfoPropertyName = "BetaGetResponseOpenaiBetaItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem), TypeInfoPropertyName = "BetaDeleteResponseOpenaiBetaItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem), TypeInfoPropertyName = "BetaCancelResponseOpenaiBetaItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem), TypeInfoPropertyName = "BetaCompactconversationOpenaiBetaItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaListInputItemsOrder), TypeInfoPropertyName = "BetaListInputItemsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem), TypeInfoPropertyName = "BetaListInputItemsOpenaiBetaItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem), TypeInfoPropertyName = "BetaGetinputtokencountsOpenaiBetaItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateTranscriptionResponseJsonCreateTranscriptionResponseDiarizedJsonCreateTranscriptionResponseVerboseJson2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateTranslationResponseJsonCreateTranslationResponseVerboseJson2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteEvalResponse))] @@ -67130,27 +67601,6 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudioInputAudio1Format?), TypeInfoPropertyName = "NullableInputAudioInputAudio1Format2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputContentDiscriminatorType?), TypeInfoPropertyName = "NullableInputContentDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItem?), TypeInfoPropertyName = "NullableInputItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Item?), TypeInfoPropertyName = "NullableItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItemDiscriminatorType?), TypeInfoPropertyName = "NullableInputItemDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageType?), TypeInfoPropertyName = "NullableInputMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageRole?), TypeInfoPropertyName = "NullableInputMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageStatus?), TypeInfoPropertyName = "NullableInputMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageResource?), TypeInfoPropertyName = "NullableInputMessageResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteObject?), TypeInfoPropertyName = "NullableInviteObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRole?), TypeInfoPropertyName = "NullableInviteRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteStatus?), TypeInfoPropertyName = "NullableInviteStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteProjectRole?), TypeInfoPropertyName = "NullableInviteProjectRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteDeleteResponseObject?), TypeInfoPropertyName = "NullableInviteDeleteResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteListResponseObject?), TypeInfoPropertyName = "NullableInviteListResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestRole?), TypeInfoPropertyName = "NullableInviteRequestRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestProjectRole?), TypeInfoPropertyName = "NullableInviteRequestProjectRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemDiscriminatorType?), TypeInfoPropertyName = "NullableItemDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResource?), TypeInfoPropertyName = "NullableItemResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResourceDiscriminatorType?), TypeInfoPropertyName = "NullableItemResourceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAuditLogsResponseObject?), TypeInfoPropertyName = "NullableListAuditLogsResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListBatchesResponseObject?), TypeInfoPropertyName = "NullableListBatchesResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListCertificatesResponseObject?), TypeInfoPropertyName = "NullableListCertificatesResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject?), TypeInfoPropertyName = "NullableListFineTuningCheckpointPermissionResponseObject2")] internal sealed partial class SourceGenerationContextChunk8 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -71458,6 +71908,50 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -73610,6 +74104,12 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -74135,6 +74635,27 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Item?), TypeInfoPropertyName = "NullableItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItemDiscriminatorType?), TypeInfoPropertyName = "NullableInputItemDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageType?), TypeInfoPropertyName = "NullableInputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageRole?), TypeInfoPropertyName = "NullableInputMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageStatus?), TypeInfoPropertyName = "NullableInputMessageStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageResource?), TypeInfoPropertyName = "NullableInputMessageResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteObject?), TypeInfoPropertyName = "NullableInviteObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRole?), TypeInfoPropertyName = "NullableInviteRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteStatus?), TypeInfoPropertyName = "NullableInviteStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteProjectRole?), TypeInfoPropertyName = "NullableInviteProjectRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteDeleteResponseObject?), TypeInfoPropertyName = "NullableInviteDeleteResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteListResponseObject?), TypeInfoPropertyName = "NullableInviteListResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestRole?), TypeInfoPropertyName = "NullableInviteRequestRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestProjectRole?), TypeInfoPropertyName = "NullableInviteRequestProjectRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemDiscriminatorType?), TypeInfoPropertyName = "NullableItemDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResource?), TypeInfoPropertyName = "NullableItemResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResourceDiscriminatorType?), TypeInfoPropertyName = "NullableItemResourceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAuditLogsResponseObject?), TypeInfoPropertyName = "NullableListAuditLogsResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListBatchesResponseObject?), TypeInfoPropertyName = "NullableListBatchesResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListCertificatesResponseObject?), TypeInfoPropertyName = "NullableListCertificatesResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject?), TypeInfoPropertyName = "NullableListFineTuningCheckpointPermissionResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject?), TypeInfoPropertyName = "NullableListFineTuningJobCheckpointsResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject?), TypeInfoPropertyName = "NullableListFineTuningJobEventsResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListModelsResponseObject?), TypeInfoPropertyName = "NullableListModelsResponseObject2")] @@ -74591,27 +75112,6 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEventType?), TypeInfoPropertyName = "NullableResponseTextDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDoneEventType?), TypeInfoPropertyName = "NullableResponseTextDoneEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType?), TypeInfoPropertyName = "NullableResponseWebSearchCallCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType?), TypeInfoPropertyName = "NullableResponseWebSearchCallInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType?), TypeInfoPropertyName = "NullableResponseWebSearchCallSearchingEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEvent?), TypeInfoPropertyName = "NullableResponsesClientEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate?), TypeInfoPropertyName = "NullableResponsesClientEventResponseCreate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type?), TypeInfoPropertyName = "NullableResponsesClientEventResponseCreateVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEvent?), TypeInfoPropertyName = "NullableResponsesServerEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject?), TypeInfoPropertyName = "NullableRoleObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleDeletedResourceObject?), TypeInfoPropertyName = "NullableRoleDeletedResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResourceObject?), TypeInfoPropertyName = "NullableRoleListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectObject?), TypeInfoPropertyName = "NullableRunObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectStatus?), TypeInfoPropertyName = "NullableRunObjectStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectRequiredActionType?), TypeInfoPropertyName = "NullableRunObjectRequiredActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectLastErrorCode?), TypeInfoPropertyName = "NullableRunObjectLastErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason?), TypeInfoPropertyName = "NullableRunObjectIncompleteDetailsReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaObjectObject?), TypeInfoPropertyName = "NullableRunStepDeltaObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfRunStepDeltaStepDetailsMessageCreationObjectRunStepDeltaStepDetailsToolCallsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsMessageCreationObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsToolCallsCodeObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfRunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectRunStepDeltaStepDetailsToolCallsCodeOutputImageObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType2")] internal sealed partial class SourceGenerationContextChunk9 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -78919,6 +79419,50 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -81071,6 +81615,12 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -81596,6 +82146,27 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType?), TypeInfoPropertyName = "NullableResponseWebSearchCallInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType?), TypeInfoPropertyName = "NullableResponseWebSearchCallSearchingEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEvent?), TypeInfoPropertyName = "NullableResponsesClientEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate?), TypeInfoPropertyName = "NullableResponsesClientEventResponseCreate2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type?), TypeInfoPropertyName = "NullableResponsesClientEventResponseCreateVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEvent?), TypeInfoPropertyName = "NullableResponsesServerEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject?), TypeInfoPropertyName = "NullableRoleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleDeletedResourceObject?), TypeInfoPropertyName = "NullableRoleDeletedResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResourceObject?), TypeInfoPropertyName = "NullableRoleListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectObject?), TypeInfoPropertyName = "NullableRunObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectStatus?), TypeInfoPropertyName = "NullableRunObjectStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectRequiredActionType?), TypeInfoPropertyName = "NullableRunObjectRequiredActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectLastErrorCode?), TypeInfoPropertyName = "NullableRunObjectLastErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason?), TypeInfoPropertyName = "NullableRunObjectIncompleteDetailsReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaObjectObject?), TypeInfoPropertyName = "NullableRunStepDeltaObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfRunStepDeltaStepDetailsMessageCreationObjectRunStepDeltaStepDetailsToolCallsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsMessageCreationObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsToolCallsCodeObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfRunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectRunStepDeltaStepDetailsToolCallsCodeOutputImageObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsToolCallsFileSearchObjectType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsToolCallsFunctionObjectType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType?), TypeInfoPropertyName = "NullableRunStepDeltaStepDetailsToolCallsObjectType2")] @@ -81918,6 +82489,20 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Output5?), TypeInfoPropertyName = "NullableOutput52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationOutputDiscriminatorType?), TypeInfoPropertyName = "NullableModerationOutputDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversationResourceObject?), TypeInfoPropertyName = "NullableDeletedConversationResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitCurrency?), TypeInfoPropertyName = "NullableSpendLimitCurrency2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum?), TypeInfoPropertyName = "NullableSpendLimitCurrencyEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitInterval?), TypeInfoPropertyName = "NullableSpendLimitInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum?), TypeInfoPropertyName = "NullableSpendLimitIntervalEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatus?), TypeInfoPropertyName = "NullableSpendLimitEnforcementStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum?), TypeInfoPropertyName = "NullableSpendLimitEnforcementStatusEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject?), TypeInfoPropertyName = "NullableOrganizationSpendLimitResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency?), TypeInfoPropertyName = "NullableUpdateOrganizationSpendLimitBodyCurrency2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval?), TypeInfoPropertyName = "NullableUpdateOrganizationSpendLimitBodyInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject?), TypeInfoPropertyName = "NullableOrganizationSpendLimitDeletedResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendLimitResourceObject?), TypeInfoPropertyName = "NullableProjectSpendLimitResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency?), TypeInfoPropertyName = "NullableUpdateProjectSpendLimitBodyCurrency2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval?), TypeInfoPropertyName = "NullableUpdateProjectSpendLimitBodyInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject?), TypeInfoPropertyName = "NullableProjectSpendLimitDeletedResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject?), TypeInfoPropertyName = "NullableServiceAccountApiKeyBodyObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrderEnum?), TypeInfoPropertyName = "NullableOrderEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoModel?), TypeInfoPropertyName = "NullableVideoModel2")] @@ -82038,41 +82623,6 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy4?), TypeInfoPropertyName = "NullableNetworkPolicy42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminatorType?), TypeInfoPropertyName = "NullableBetaContainerAutoParamNetworkPolicyDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillsItem3?), TypeInfoPropertyName = "NullableSkillsItem32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType?), TypeInfoPropertyName = "NullableBetaContainerAutoParamSkillDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaInlineSkillParamType?), TypeInfoPropertyName = "NullableBetaInlineSkillParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaInlineSkillSourceParamType?), TypeInfoPropertyName = "NullableBetaInlineSkillSourceParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType?), TypeInfoPropertyName = "NullableBetaInlineSkillSourceParamMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaSkillReferenceParamType?), TypeInfoPropertyName = "NullableBetaSkillReferenceParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType?), TypeInfoPropertyName = "NullableBetaContainerNetworkPolicyAllowlistParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType?), TypeInfoPropertyName = "NullableBetaContainerNetworkPolicyDisabledParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaLocalShellToolParamType?), TypeInfoPropertyName = "NullableBetaLocalShellToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolType?), TypeInfoPropertyName = "NullableBetaImageGenToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringBetaImageGenToolModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolModel?), TypeInfoPropertyName = "NullableBetaImageGenToolModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolQuality?), TypeInfoPropertyName = "NullableBetaImageGenToolQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringBetaImageGenToolSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolSize?), TypeInfoPropertyName = "NullableBetaImageGenToolSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolOutputFormat?), TypeInfoPropertyName = "NullableBetaImageGenToolOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolModeration?), TypeInfoPropertyName = "NullableBetaImageGenToolModeration2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolBackground?), TypeInfoPropertyName = "NullableBetaImageGenToolBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenActionEnum?), TypeInfoPropertyName = "NullableBetaImageGenActionEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType?), TypeInfoPropertyName = "NullableBetaProgrammaticToolCallingParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolType?), TypeInfoPropertyName = "NullableBetaCodeInterpreterToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfStringBetaAutoCodeInterpreterToolParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType?), TypeInfoPropertyName = "NullableBetaAutoCodeInterpreterToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy5?), TypeInfoPropertyName = "NullableNetworkPolicy52")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType?), TypeInfoPropertyName = "NullableBetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolType?), TypeInfoPropertyName = "NullableBetaMCPToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolConnectorId?), TypeInfoPropertyName = "NullableBetaMCPToolConnectorId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2?), TypeInfoPropertyName = "NullableBetaMCPToolRequireApprovalVariant1Enum22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchToolType?), TypeInfoPropertyName = "NullableBetaWebSearchToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize?), TypeInfoPropertyName = "NullableBetaWebSearchToolSearchContextSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType?), TypeInfoPropertyName = "NullableBetaWebSearchApproximateLocationWebSearchApproximateLocationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewToolType?), TypeInfoPropertyName = "NullableBetaComputerUsePreviewToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerEnvironment?), TypeInfoPropertyName = "NullableBetaComputerEnvironment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerToolType?), TypeInfoPropertyName = "NullableBetaComputerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFileSearchToolType?), TypeInfoPropertyName = "NullableBetaFileSearchToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCompoundFilterType?), TypeInfoPropertyName = "NullableBetaCompoundFilterType2")] internal sealed partial class SourceGenerationContextChunk10 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -86380,6 +86930,50 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -88532,6 +89126,12 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -89057,6 +89657,41 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType?), TypeInfoPropertyName = "NullableBetaContainerAutoParamSkillDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaInlineSkillParamType?), TypeInfoPropertyName = "NullableBetaInlineSkillParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaInlineSkillSourceParamType?), TypeInfoPropertyName = "NullableBetaInlineSkillSourceParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType?), TypeInfoPropertyName = "NullableBetaInlineSkillSourceParamMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaSkillReferenceParamType?), TypeInfoPropertyName = "NullableBetaSkillReferenceParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType?), TypeInfoPropertyName = "NullableBetaContainerNetworkPolicyAllowlistParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType?), TypeInfoPropertyName = "NullableBetaContainerNetworkPolicyDisabledParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaLocalShellToolParamType?), TypeInfoPropertyName = "NullableBetaLocalShellToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolType?), TypeInfoPropertyName = "NullableBetaImageGenToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringBetaImageGenToolModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolModel?), TypeInfoPropertyName = "NullableBetaImageGenToolModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolQuality?), TypeInfoPropertyName = "NullableBetaImageGenToolQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringBetaImageGenToolSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolSize?), TypeInfoPropertyName = "NullableBetaImageGenToolSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolOutputFormat?), TypeInfoPropertyName = "NullableBetaImageGenToolOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolModeration?), TypeInfoPropertyName = "NullableBetaImageGenToolModeration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenToolBackground?), TypeInfoPropertyName = "NullableBetaImageGenToolBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenActionEnum?), TypeInfoPropertyName = "NullableBetaImageGenActionEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType?), TypeInfoPropertyName = "NullableBetaProgrammaticToolCallingParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolType?), TypeInfoPropertyName = "NullableBetaCodeInterpreterToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfStringBetaAutoCodeInterpreterToolParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType?), TypeInfoPropertyName = "NullableBetaAutoCodeInterpreterToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy5?), TypeInfoPropertyName = "NullableNetworkPolicy52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType?), TypeInfoPropertyName = "NullableBetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolType?), TypeInfoPropertyName = "NullableBetaMCPToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolConnectorId?), TypeInfoPropertyName = "NullableBetaMCPToolConnectorId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2?), TypeInfoPropertyName = "NullableBetaMCPToolRequireApprovalVariant1Enum22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchToolType?), TypeInfoPropertyName = "NullableBetaWebSearchToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize?), TypeInfoPropertyName = "NullableBetaWebSearchToolSearchContextSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType?), TypeInfoPropertyName = "NullableBetaWebSearchApproximateLocationWebSearchApproximateLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewToolType?), TypeInfoPropertyName = "NullableBetaComputerUsePreviewToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerEnvironment?), TypeInfoPropertyName = "NullableBetaComputerEnvironment2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerToolType?), TypeInfoPropertyName = "NullableBetaComputerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFileSearchToolType?), TypeInfoPropertyName = "NullableBetaFileSearchToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCompoundFilterType?), TypeInfoPropertyName = "NullableBetaCompoundFilterType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FiltersItem2?), TypeInfoPropertyName = "NullableFiltersItem22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComparisonFilterType?), TypeInfoPropertyName = "NullableBetaComparisonFilterType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaRankerVersionType?), TypeInfoPropertyName = "NullableBetaRankerVersionType2")] @@ -89499,41 +90134,6 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class SourceGenerationContextChunk11 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -93841,6 +94441,50 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter), @@ -95993,6 +96637,12 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te typeof(global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter), @@ -96518,6 +97168,41 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] @@ -98947,6 +99632,28 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ModerationOutputDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyEnumNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalEnumNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusEnumNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ServiceAccountApiKeyBodyObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OrderEnumJsonConverter()); @@ -100023,6 +100730,9 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ReasoningModeEnumJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.Input4JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.Output5JsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.PersonalityEnumJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ItemFieldJsonConverter()); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs index 45eed2f5..1ca4bd42 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs @@ -11092,4191 +11092,4275 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::tryAGI.OpenAI.CreateProjectServiceAccountApiKeyBody? Type2766 { get; set; } + public global::tryAGI.OpenAI.SpendLimitCurrency? Type2766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceAccountApiKeyBody? Type2767 { get; set; } + public global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Type2767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject? Type2768 { get; set; } + public global::tryAGI.OpenAI.SpendLimitInterval? Type2768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrderEnum? Type2769 { get; set; } + public global::tryAGI.OpenAI.SpendLimitIntervalEnum? Type2769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModel? Type2770 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcementStatus? Type2770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModelEnum? Type2771 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Type2771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoStatus? Type2772 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcement? Type2772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSize? Type2773 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitResource? Type2773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error2? Type2774 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject? Type2774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResource? Type2775 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? Type2775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResourceObject? Type2776 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency? Type2776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResource? Type2777 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval? Type2777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResourceObject? Type2778 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? Type2778 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2779 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject? Type2779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageRefParam2? Type2780 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitResource? Type2780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSeconds? Type2781 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitResourceObject? Type2781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type2782 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? Type2782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2783 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency? Type2783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoJsonBody? Type2784 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval? Type2784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type2785 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? Type2785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoCharacterResource? Type2786 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject? Type2786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoReferenceInputParam? Type2787 { get; set; } + public global::tryAGI.OpenAI.CreateProjectServiceAccountApiKeyBody? Type2787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type2788 { get; set; } + public global::tryAGI.OpenAI.ServiceAccountApiKeyBody? Type2788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2789 { get; set; } + public global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject? Type2789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type2790 { get; set; } + public global::tryAGI.OpenAI.OrderEnum? Type2790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type2791 { get; set; } + public global::tryAGI.OpenAI.VideoModel? Type2791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2792 { get; set; } + public global::tryAGI.OpenAI.VideoModelEnum? Type2792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type2793 { get; set; } + public global::tryAGI.OpenAI.VideoStatus? Type2793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResource? Type2794 { get; set; } + public global::tryAGI.OpenAI.VideoSize? Type2794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type2795 { get; set; } + public global::tryAGI.OpenAI.Error2? Type2795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoContentVariant? Type2796 { get; set; } + public global::tryAGI.OpenAI.VideoResource? Type2796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoRemixBody? Type2797 { get; set; } + public global::tryAGI.OpenAI.VideoResourceObject? Type2797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationEnum? Type2798 { get; set; } + public global::tryAGI.OpenAI.VideoListResource? Type2798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersonalityEnum? Type2799 { get; set; } + public global::tryAGI.OpenAI.VideoListResourceObject? Type2799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersonalityEnumEnum? Type2800 { get; set; } + public global::System.Collections.Generic.IList? Type2800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsBody? Type2801 { get; set; } + public global::tryAGI.OpenAI.ImageRefParam2? Type2801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResource? Type2802 { get; set; } + public global::tryAGI.OpenAI.VideoSeconds? Type2802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResourceObject? Type2803 { get; set; } + public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type2803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type2804 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierEnum2? Type2805 { get; set; } + public global::tryAGI.OpenAI.CreateVideoJsonBody? Type2805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type2806 { get; set; } + public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type2806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemField? Type2807 { get; set; } + public global::tryAGI.OpenAI.VideoCharacterResource? Type2807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type2808 { get; set; } + public global::tryAGI.OpenAI.VideoReferenceInputParam? Type2808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type2809 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type2809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResource? Type2810 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResourceObject? Type2811 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type2811 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2812 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type2812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResource? Type2813 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResourceObject? Type2814 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type2814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResource? Type2815 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResource? Type2815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResourceObject? Type2816 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type2816 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2817 { get; set; } + public global::tryAGI.OpenAI.VideoContentVariant? Type2817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillBody? Type2818 { get; set; } + public global::tryAGI.OpenAI.CreateVideoRemixBody? Type2818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, byte[]>? Type2819 { get; set; } + public global::tryAGI.OpenAI.TruncationEnum? Type2819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type2820 { get; set; } + public global::tryAGI.OpenAI.PersonalityEnum? Type2820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResource? Type2821 { get; set; } + public global::tryAGI.OpenAI.PersonalityEnumEnum? Type2821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type2822 { get; set; } + public global::tryAGI.OpenAI.TokenCountsBody? Type2822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResource? Type2823 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResource? Type2823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResourceObject? Type2824 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResourceObject? Type2824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResource? Type2825 { get; set; } + public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type2825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type2826 { get; set; } + public global::tryAGI.OpenAI.ServiceTierEnum2? Type2826 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2827 { get; set; } + public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type2827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillVersionBody? Type2828 { get; set; } + public global::tryAGI.OpenAI.ItemField? Type2828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type2829 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type2829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type2830 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type2830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type2831 { get; set; } + public global::tryAGI.OpenAI.CompactResource? Type2831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflow? Type2832 { get; set; } + public global::tryAGI.OpenAI.CompactResourceObject? Type2832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2833 { get; set; } + public global::System.Collections.Generic.IList? Type2833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionRateLimits? Type2834 { get; set; } + public global::tryAGI.OpenAI.SkillResource? Type2834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionStatus? Type2835 { get; set; } + public global::tryAGI.OpenAI.SkillResourceObject? Type2835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type2836 { get; set; } + public global::tryAGI.OpenAI.SkillListResource? Type2836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionFileUpload? Type2837 { get; set; } + public global::tryAGI.OpenAI.SkillListResourceObject? Type2837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionHistory? Type2838 { get; set; } + public global::System.Collections.Generic.IList? Type2838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type2839 { get; set; } + public global::tryAGI.OpenAI.CreateSkillBody? Type2839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResource? Type2840 { get; set; } + public global::tryAGI.OpenAI.OneOf, byte[]>? Type2840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResourceObject? Type2841 { get; set; } + public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type2841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowTracingParam? Type2842 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResource? Type2842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowParam? Type2843 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type2843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParam? Type2844 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResource? Type2844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type2845 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResourceObject? Type2845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RateLimitsParam? Type2846 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResource? Type2846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type2847 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type2847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileUploadParam? Type2848 { get; set; } + public global::System.Collections.Generic.IList? Type2848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HistoryParam? Type2849 { get; set; } + public global::tryAGI.OpenAI.CreateSkillVersionBody? Type2849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type2850 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type2850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatSessionBody? Type2851 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type2851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputText? Type2852 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type2852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputTextType? Type2853 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflow? Type2853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedText? Type2854 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type2855 { get; set; } + public global::tryAGI.OpenAI.ChatSessionRateLimits? Type2855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AttachmentType? Type2856 { get; set; } + public global::tryAGI.OpenAI.ChatSessionStatus? Type2856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Attachment? Type2857 { get; set; } + public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type2857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoice8? Type2858 { get; set; } + public global::tryAGI.OpenAI.ChatSessionFileUpload? Type2858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InferenceOptions? Type2859 { get; set; } + public global::tryAGI.OpenAI.ChatSessionHistory? Type2859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItem? Type2860 { get; set; } + public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type2860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemObject? Type2861 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResource? Type2861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemType? Type2862 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResourceObject? Type2862 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2863 { get; set; } + public global::tryAGI.OpenAI.WorkflowTracingParam? Type2863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem4? Type2864 { get; set; } + public global::tryAGI.OpenAI.WorkflowParam? Type2864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type2865 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParam? Type2865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type2866 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type2866 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2867 { get; set; } + public global::tryAGI.OpenAI.RateLimitsParam? Type2867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSource? Type2868 { get; set; } + public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type2868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSourceType? Type2869 { get; set; } + public global::tryAGI.OpenAI.FileUploadParam? Type2869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotation? Type2870 { get; set; } + public global::tryAGI.OpenAI.HistoryParam? Type2870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationType? Type2871 { get; set; } + public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type2871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSource? Type2872 { get; set; } + public global::tryAGI.OpenAI.CreateChatSessionBody? Type2872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type2873 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputText? Type2873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotation? Type2874 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputTextType? Type2874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationType? Type2875 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedText? Type2875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputText? Type2876 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type2876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextType? Type2877 { get; set; } + public global::tryAGI.OpenAI.AttachmentType? Type2877 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2878 { get; set; } + public global::tryAGI.OpenAI.Attachment? Type2878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem3? Type2879 { get; set; } + public global::tryAGI.OpenAI.ToolChoice8? Type2879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type2880 { get; set; } + public global::tryAGI.OpenAI.InferenceOptions? Type2880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type2881 { get; set; } + public global::tryAGI.OpenAI.UserMessageItem? Type2881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItem? Type2882 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemObject? Type2882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemObject? Type2883 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemType? Type2883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemType? Type2884 { get; set; } + public global::System.Collections.Generic.IList? Type2884 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2885 { get; set; } + public global::tryAGI.OpenAI.ContentItem4? Type2885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItem? Type2886 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type2886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemObject? Type2887 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type2887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemType? Type2888 { get; set; } + public global::System.Collections.Generic.IList? Type2888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallStatus? Type2889 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSource? Type2889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItem? Type2890 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSourceType? Type2890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemObject? Type2891 { get; set; } + public global::tryAGI.OpenAI.FileAnnotation? Type2891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemType? Type2892 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationType? Type2892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskType? Type2893 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSource? Type2893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItem? Type2894 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type2894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemObject? Type2895 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotation? Type2895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemType? Type2896 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationType? Type2896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupTask? Type2897 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputText? Type2897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItem? Type2898 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextType? Type2898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemObject? Type2899 { get; set; } + public global::System.Collections.Generic.IList? Type2899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemType? Type2900 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem3? Type2900 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2901 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type2901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItem? Type2902 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type2902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type2903 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItem? Type2903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type2904 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemObject? Type2904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResource? Type2905 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemType? Type2905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type2906 { get; set; } + public global::System.Collections.Generic.IList? Type2906 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2907 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItem? Type2907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatus? Type2908 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemObject? Type2908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatusType? Type2909 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemType? Type2909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatus? Type2910 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallStatus? Type2910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatusType? Type2911 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItem? Type2911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatus? Type2912 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemObject? Type2912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatusType? Type2913 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemType? Type2913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResource? Type2914 { get; set; } + public global::tryAGI.OpenAI.TaskType? Type2914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceObject? Type2915 { get; set; } + public global::tryAGI.OpenAI.TaskItem? Type2915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Status? Type2916 { get; set; } + public global::tryAGI.OpenAI.TaskItemObject? Type2916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type2917 { get; set; } + public global::tryAGI.OpenAI.TaskItemType? Type2917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type2918 { get; set; } + public global::tryAGI.OpenAI.TaskGroupTask? Type2918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResource? Type2919 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItem? Type2919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type2920 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemObject? Type2920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResource? Type2921 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemType? Type2921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResourceObject? Type2922 { get; set; } + public global::System.Collections.Generic.IList? Type2922 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2923 { get; set; } + public global::tryAGI.OpenAI.ThreadItem? Type2923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragPoint? Type2924 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type2924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsResource? Type2925 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type2925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsResourceObject? Type2926 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResource? Type2926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsBody? Type2927 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type2927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2928 { get; set; } + public global::System.Collections.Generic.IList? Type2928 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2929 { get; set; } + public global::tryAGI.OpenAI.ActiveStatus? Type2929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItem? Type2930 { get; set; } + public global::tryAGI.OpenAI.ActiveStatusType? Type2930 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2931 { get; set; } + public global::tryAGI.OpenAI.LockedStatus? Type2931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTool? Type2932 { get; set; } + public global::tryAGI.OpenAI.LockedStatusType? Type2932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextParam? Type2933 { get; set; } + public global::tryAGI.OpenAI.ClosedStatus? Type2933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoning? Type2934 { get; set; } + public global::tryAGI.OpenAI.ClosedStatusType? Type2934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTruncationEnum? Type2935 { get; set; } + public global::tryAGI.OpenAI.ThreadResource? Type2935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPersonalityEnum? Type2936 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceObject? Type2936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaConversationParam? Type2937 { get; set; } + public global::tryAGI.OpenAI.Status? Type2937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceParam? Type2938 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type2938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceOptions? Type2939 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type2939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowed? Type2940 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResource? Type2940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceTypes? Type2941 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type2941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceFunction? Type2942 { get; set; } + public global::tryAGI.OpenAI.ThreadListResource? Type2942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceMCP? Type2943 { get; set; } + public global::tryAGI.OpenAI.ThreadListResourceObject? Type2943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceCustom? Type2944 { get; set; } + public global::System.Collections.Generic.IList? Type2944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam? Type2945 { get; set; } + public global::tryAGI.OpenAI.DragPoint? Type2945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam? Type2946 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsResource? Type2946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam? Type2947 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsResourceObject? Type2947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificFunctionShellParamType? Type2948 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsBody? Type2948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificApplyPatchParamType? Type2949 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParamType? Type2950 { get; set; } + public global::System.Collections.Generic.IList? Type2950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceCustomType? Type2951 { get; set; } + public global::tryAGI.OpenAI.BetaInputItem? Type2951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceMCPType? Type2952 { get; set; } + public global::System.Collections.Generic.IList? Type2952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceFunctionType? Type2953 { get; set; } + public global::tryAGI.OpenAI.BetaTool? Type2953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceTypesType? Type2954 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextParam? Type2954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowedType? Type2955 { get; set; } + public global::tryAGI.OpenAI.BetaReasoning? Type2955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowedMode? Type2956 { get; set; } + public global::tryAGI.OpenAI.BetaTruncationEnum? Type2956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaConversationParam2? Type2957 { get; set; } + public global::tryAGI.OpenAI.BetaPersonalityEnum? Type2957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPersonalityEnumEnum? Type2958 { get; set; } + public global::tryAGI.OpenAI.BetaConversationParam? Type2958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningModeEnum? Type2959 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceParam? Type2959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningEffortEnum? Type2960 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceOptions? Type2960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningSummary2? Type2961 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowed? Type2961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningContext2? Type2962 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceTypes? Type2962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningGenerateSummary2? Type2963 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceFunction? Type2963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum? Type2964 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceMCP? Type2964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatConfiguration? Type2965 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceCustom? Type2965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaVerbosityEnum? Type2966 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam? Type2966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatText? Type2967 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam? Type2967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema? Type2968 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam? Type2968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonObject? Type2969 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificFunctionShellParamType? Type2969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonObjectType? Type2970 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificApplyPatchParamType? Type2970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchemaType? Type2971 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParamType? Type2971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonSchemaSchema? Type2972 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceCustomType? Type2972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatTextType? Type2973 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceMCPType? Type2973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionTool? Type2974 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceFunctionType? Type2974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchTool? Type2975 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceTypesType? Type2975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerTool? Type2976 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowedType? Type2976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? Type2977 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowedMode? Type2977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchTool? Type2978 { get; set; } + public global::tryAGI.OpenAI.BetaConversationParam2? Type2978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPTool? Type2979 { get; set; } + public global::tryAGI.OpenAI.BetaPersonalityEnumEnum? Type2979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterTool? Type2980 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningModeEnum? Type2980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? Type2981 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningEffortEnum? Type2981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenTool? Type2982 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningSummary2? Type2982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolParam? Type2983 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningContext2? Type2983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Type2984 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningGenerateSummary2? Type2984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParam? Type2985 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum? Type2985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParam? Type2986 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatConfiguration? Type2986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchToolParam? Type2987 { get; set; } + public global::tryAGI.OpenAI.BetaVerbosityEnum? Type2987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? Type2988 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatText? Type2988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolParam? Type2989 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema? Type2989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolDiscriminator? Type2990 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonObject? Type2990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolDiscriminatorType? Type2991 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonObjectType? Type2991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolParamType? Type2992 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchemaType? Type2992 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2993 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonSchemaSchema? Type2993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCallableToolAllowedCaller? Type2994 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatTextType? Type2994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchPreviewToolType? Type2995 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionTool? Type2995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApproximateLocation? Type2996 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchTool? Type2996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSearchContextSize? Type2997 { get; set; } + public global::tryAGI.OpenAI.BetaComputerTool? Type2997 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2998 { get; set; } + public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? Type2998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSearchContentType? Type2999 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchTool? Type2999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApproximateLocationType? Type3000 { get; set; } + public global::tryAGI.OpenAI.BetaMCPTool? Type3000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchToolParamType? Type3001 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterTool? Type3001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchExecutionType? Type3002 { get; set; } + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? Type3002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEmptyModelParam? Type3003 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenTool? Type3003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamType? Type3004 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolParam? Type3004 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3005 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Type3005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem14? Type3006 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParam? Type3006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParam? Type3007 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParam? Type3007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator? Type3008 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchToolParam? Type3008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type3009 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? Type3009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamType? Type3010 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolParam? Type3010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format3? Type3011 { get; set; } + public global::tryAGI.OpenAI.BetaToolDiscriminator? Type3011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomTextFormatParam? Type3012 { get; set; } + public global::tryAGI.OpenAI.BetaToolDiscriminatorType? Type3012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam? Type3013 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolParamType? Type3013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminator? Type3014 { get; set; } + public global::System.Collections.Generic.IList? Type3014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminatorType? Type3015 { get; set; } + public global::tryAGI.OpenAI.BetaCallableToolAllowedCaller? Type3015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomGrammarFormatParamType? Type3016 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchPreviewToolType? Type3016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGrammarSyntax1? Type3017 { get; set; } + public global::tryAGI.OpenAI.BetaApproximateLocation? Type3017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomTextFormatParamType? Type3018 { get; set; } + public global::tryAGI.OpenAI.BetaSearchContextSize? Type3018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParamType? Type3019 { get; set; } + public global::System.Collections.Generic.IList? Type3019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamType? Type3020 { get; set; } + public global::tryAGI.OpenAI.BetaSearchContentType? Type3020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant14? Type3021 { get; set; } + public global::tryAGI.OpenAI.BetaApproximateLocationType? Type3021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParam? Type3022 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchToolParamType? Type3022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParam? Type3023 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchExecutionType? Type3023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParam? Type3024 { get; set; } + public global::tryAGI.OpenAI.BetaEmptyModelParam? Type3024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1Discriminator? Type3025 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamType? Type3025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type3026 { get; set; } + public global::System.Collections.Generic.IList? Type3026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParamType? Type3027 { get; set; } + public global::tryAGI.OpenAI.ToolsItem14? Type3027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParamType? Type3028 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolParam? Type3028 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3029 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator? Type3029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalSkillParam? Type3030 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type3030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamType? Type3031 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamType? Type3031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerMemoryLimit? Type3032 { get; set; } + public global::tryAGI.OpenAI.Format3? Type3032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy4? Type3033 { get; set; } + public global::tryAGI.OpenAI.BetaCustomTextFormatParam? Type3033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam? Type3034 { get; set; } + public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam? Type3034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam? Type3035 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminator? Type3035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminator? Type3036 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminatorType? Type3036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminatorType? Type3037 { get; set; } + public global::tryAGI.OpenAI.BetaCustomGrammarFormatParamType? Type3037 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3038 { get; set; } + public global::tryAGI.OpenAI.BetaGrammarSyntax1? Type3038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem3? Type3039 { get; set; } + public global::tryAGI.OpenAI.BetaCustomTextFormatParamType? Type3039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSkillReferenceParam? Type3040 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolParamType? Type3040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillParam? Type3041 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamType? Type3041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminator? Type3042 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant14? Type3042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType? Type3043 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParam? Type3043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillParamType? Type3044 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentParam? Type3044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParam? Type3045 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceParam? Type3045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParamType? Type3046 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1Discriminator? Type3046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType? Type3047 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type3047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSkillReferenceParamType? Type3048 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceParamType? Type3048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType? Type3049 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentParamType? Type3049 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3050 { get; set; } + public global::System.Collections.Generic.IList? Type3050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDomainSecretParam? Type3051 { get; set; } + public global::tryAGI.OpenAI.BetaLocalSkillParam? Type3051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType? Type3052 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamType? Type3052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolParamType? Type3053 { get; set; } + public global::tryAGI.OpenAI.BetaContainerMemoryLimit? Type3053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolType? Type3054 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy4? Type3054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type3055 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam? Type3055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolModel? Type3056 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam? Type3056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolQuality? Type3057 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminator? Type3057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type3058 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminatorType? Type3058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolSize? Type3059 { get; set; } + public global::System.Collections.Generic.IList? Type3059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolOutputFormat? Type3060 { get; set; } + public global::tryAGI.OpenAI.SkillsItem3? Type3060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolModeration? Type3061 { get; set; } + public global::tryAGI.OpenAI.BetaSkillReferenceParam? Type3061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolBackground? Type3062 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillParam? Type3062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFidelity? Type3063 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminator? Type3063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolInputImageMask? Type3064 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType? Type3064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenActionEnum? Type3065 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillParamType? Type3065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType? Type3066 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParam? Type3066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolType? Type3067 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParamType? Type3067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3068 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType? Type3068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParam? Type3069 { get; set; } + public global::tryAGI.OpenAI.BetaSkillReferenceParamType? Type3069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType? Type3070 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType? Type3070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy5? Type3071 { get; set; } + public global::System.Collections.Generic.IList? Type3071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type3072 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDomainSecretParam? Type3072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type3073 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType? Type3073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolType? Type3074 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolParamType? Type3074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolConnectorId? Type3075 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolType? Type3075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? Type3076 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type3076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolFilter? Type3077 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolModel? Type3077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3078 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolQuality? Type3078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum? Type3079 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type3079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2? Type3080 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolSize? Type3080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolType? Type3081 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolOutputFormat? Type3081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolFilters2? Type3082 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolModeration? Type3082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocation? Type3083 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolBackground? Type3083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize? Type3084 { get; set; } + public global::tryAGI.OpenAI.BetaInputFidelity? Type3084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType? Type3085 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolInputImageMask? Type3085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerUsePreviewToolType? Type3086 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenActionEnum? Type3086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerEnvironment? Type3087 { get; set; } + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType? Type3087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolType? Type3088 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolType? Type3088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolType? Type3089 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRankingOptions? Type3090 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParam? Type3090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilters? Type3091 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType? Type3091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilter? Type3092 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy5? Type3092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilter? Type3093 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type3093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilterType? Type3094 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type3094 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3095 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolType? Type3095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FiltersItem2? Type3096 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolConnectorId? Type3096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilterFilterDiscriminator? Type3097 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? Type3097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilterType? Type3098 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolFilter? Type3098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRankerVersionType? Type3099 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHybridSearchOptions? Type3100 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum? Type3100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolType? Type3101 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2? Type3101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessage? Type3102 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolType? Type3102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItem? Type3103 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolFilters2? Type3103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam? Type3104 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocation? Type3104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemReferenceParam? Type3105 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize? Type3105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramItemParam? Type3106 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType? Type3106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemParam? Type3107 { get; set; } + public global::tryAGI.OpenAI.BetaComputerUsePreviewToolType? Type3107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItemDiscriminator? Type3108 { get; set; } + public global::tryAGI.OpenAI.BetaComputerEnvironment? Type3108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItemDiscriminatorType? Type3109 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolType? Type3109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentTagParam? Type3110 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolType? Type3110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemParamType? Type3111 { get; set; } + public global::tryAGI.OpenAI.BetaRankingOptions? Type3111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemStatus? Type3112 { get; set; } + public global::tryAGI.OpenAI.BetaFilters? Type3112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramItemParamType? Type3113 { get; set; } + public global::tryAGI.OpenAI.BetaComparisonFilter? Type3113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemReferenceParamType2? Type3114 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilter? Type3114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionTriggerItemParamType? Type3115 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilterType? Type3115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessage? Type3116 { get; set; } + public global::System.Collections.Generic.IList? Type3116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessage? Type3117 { get; set; } + public global::tryAGI.OpenAI.FiltersItem2? Type3117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCall? Type3118 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilterFilterDiscriminator? Type3118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCall? Type3119 { get; set; } + public global::tryAGI.OpenAI.BetaComparisonFilterType? Type3119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam? Type3120 { get; set; } + public global::tryAGI.OpenAI.BetaRankerVersionType? Type3120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCall? Type3121 { get; set; } + public global::tryAGI.OpenAI.BetaHybridSearchOptions? Type3121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCall? Type3122 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolType? Type3122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam? Type3123 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessage? Type3123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParam? Type3124 { get; set; } + public global::tryAGI.OpenAI.BetaItem? Type3124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam? Type3125 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam? Type3125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam? Type3126 { get; set; } + public global::tryAGI.OpenAI.BetaItemReferenceParam? Type3126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallItemParam? Type3127 { get; set; } + public global::tryAGI.OpenAI.BetaProgramItemParam? Type3127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam? Type3128 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemParam? Type3128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam? Type3129 { get; set; } + public global::tryAGI.OpenAI.BetaInputItemDiscriminator? Type3129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItem? Type3130 { get; set; } + public global::tryAGI.OpenAI.BetaInputItemDiscriminatorType? Type3130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam? Type3131 { get; set; } + public global::tryAGI.OpenAI.BetaAgentTagParam? Type3131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCall? Type3132 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemParamType? Type3132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall? Type3133 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemStatus? Type3133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCall? Type3134 { get; set; } + public global::tryAGI.OpenAI.BetaProgramItemParamType? Type3134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput? Type3135 { get; set; } + public global::tryAGI.OpenAI.BetaItemReferenceParamType2? Type3135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam? Type3136 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionTriggerItemParamType? Type3136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam? Type3137 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessage? Type3137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam? Type3138 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessage? Type3138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam? Type3139 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCall? Type3139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListTools? Type3140 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCall? Type3140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequest? Type3141 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam? Type3141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponse? Type3142 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCall? Type3142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCall? Type3143 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCall? Type3143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutput? Type3144 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam? Type3144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCall? Type3145 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParam? Type3145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemDiscriminator? Type3146 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam? Type3146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemDiscriminatorType? Type3147 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam? Type3147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentTag? Type3148 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallItemParam? Type3148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallType? Type3149 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam? Type3149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCaller? Type3150 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam? Type3150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCaller? Type3151 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItem? Type3151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCaller? Type3152 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam? Type3152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminator? Type3153 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCall? Type3153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminatorType? Type3154 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall? Type3154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerType? Type3155 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCall? Type3155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerType? Type3156 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput? Type3156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputType? Type3157 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam? Type3157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParam? Type3158 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam? Type3158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3159 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam? Type3159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3160 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam? Type3160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutput? Type3161 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListTools? Type3161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContent? Type3162 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalRequest? Type3162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContent? Type3163 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponse? Type3163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContent? Type3164 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCall? Type3164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminator? Type3165 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutput? Type3165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminatorType? Type3166 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCall? Type3166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentType? Type3167 { get; set; } + public global::tryAGI.OpenAI.BetaItemDiscriminator? Type3167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfig? Type3168 { get; set; } + public global::tryAGI.OpenAI.BetaItemDiscriminatorType? Type3168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileInputDetail? Type3169 { get; set; } + public global::tryAGI.OpenAI.BetaAgentTag? Type3169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfigMode? Type3170 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallType? Type3170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentType? Type3171 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCaller? Type3171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageDetail? Type3172 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCaller? Type3172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentType? Type3173 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCaller? Type3173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam? Type3174 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminator? Type3174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam? Type3175 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminatorType? Type3175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminator? Type3176 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerType? Type3176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminatorType? Type3177 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerType? Type3177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerParamType? Type3178 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputType? Type3178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerParamType? Type3179 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParam? Type3179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallType? Type3180 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallStatus? Type3181 { get; set; } + public global::System.Collections.Generic.IList? Type3181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseType? Type3182 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutput? Type3182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequestType? Type3183 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContent? Type3183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListToolsType? Type3184 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContent? Type3184 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3185 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContent? Type3185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListToolsTool? Type3186 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminator? Type3186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParamType? Type3187 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminatorType? Type3187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatusParam? Type3188 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentType? Type3188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParamType? Type3189 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfig? Type3189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallStatusParam? Type3190 { get; set; } + public global::tryAGI.OpenAI.BetaFileInputDetail? Type3190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParam? Type3191 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfigMode? Type3191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam? Type3192 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentType? Type3192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam? Type3193 { get; set; } + public global::tryAGI.OpenAI.BetaImageDetail? Type3193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam? Type3194 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentType? Type3194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminator? Type3195 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam? Type3195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminatorType? Type3196 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam? Type3196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParamType? Type3197 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminator? Type3197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParamType? Type3198 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminatorType? Type3198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParamType? Type3199 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerParamType? Type3199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParamType? Type3200 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerParamType? Type3200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3201 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallType? Type3201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentParam? Type3202 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallStatus? Type3202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemStatus? Type3203 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseType? Type3203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParam? Type3204 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalRequestType? Type3204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam? Type3205 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListToolsType? Type3205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam? Type3206 { get; set; } + public global::System.Collections.Generic.IList? Type3206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminator? Type3207 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListToolsTool? Type3207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminatorType? Type3208 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParamType? Type3208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParamType? Type3209 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatusParam? Type3209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParamType? Type3210 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParamType? Type3210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamType? Type3211 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallStatusParam? Type3211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellActionParam? Type3212 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParam? Type3212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant15? Type3213 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam? Type3213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1Discriminator? Type3214 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam? Type3214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type3215 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam? Type3215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputType? Type3216 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminator? Type3216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputStatus2? Type3217 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminatorType? Type3217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallType? Type3218 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParamType? Type3218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellExecAction? Type3219 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParamType? Type3219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallStatus? Type3220 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParamType? Type3220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellExecActionType? Type3221 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParamType? Type3221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallType? Type3222 { get; set; } + public global::System.Collections.Generic.IList? Type3222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallStatus? Type3223 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentParam? Type3223 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3224 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemStatus? Type3224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputsVariant1Item2? Type3225 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParam? Type3225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs? Type3226 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam? Type3226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage? Type3227 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam? Type3227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type3228 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminator? Type3228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type3229 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminatorType? Type3229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImageType? Type3230 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParamType? Type3230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogsType? Type3231 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParamType? Type3231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallType? Type3232 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamType? Type3232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallStatus? Type3233 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellActionParam? Type3233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionSummaryItemParamType? Type3234 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant15? Type3234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItemType? Type3235 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1Discriminator? Type3235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3236 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type3236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContent? Type3237 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputType? Type3237 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3238 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputStatus2? Type3238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContent? Type3239 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallType? Type3239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItemStatus? Type3240 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellExecAction? Type3240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContentType? Type3241 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallStatus? Type3241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContentType? Type3242 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellExecActionType? Type3242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType? Type3243 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallType? Type3243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole? Type3244 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallStatus? Type3244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType? Type3245 { get; set; } + public global::System.Collections.Generic.IList? Type3245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallItemStatus? Type3246 { get; set; } + public global::tryAGI.OpenAI.OutputsVariant1Item2? Type3246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallItemParamType? Type3247 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs? Type3247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType? Type3248 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage? Type3248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentAction1? Type3249 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type3249 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3250 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type3250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParam? Type3251 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImageType? Type3251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamType? Type3252 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogsType? Type3252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3253 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallType? Type3253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem4? Type3254 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallStatus? Type3254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationParam? Type3255 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionSummaryItemParamType? Type3255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationParam? Type3256 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItemType? Type3256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationParam? Type3257 { get; set; } + public global::System.Collections.Generic.IList? Type3257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminator? Type3258 { get; set; } + public global::tryAGI.OpenAI.BetaSummaryTextContent? Type3258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminatorType? Type3259 { get; set; } + public global::System.Collections.Generic.IList? Type3259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationParamType? Type3260 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningTextContent? Type3260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationParamType? Type3261 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItemStatus? Type3261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationParamType? Type3262 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningTextContentType? Type3262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallItemParamType? Type3263 { get; set; } + public global::tryAGI.OpenAI.BetaSummaryTextContentType? Type3263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamType? Type3264 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType? Type3264 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3265 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole? Type3265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem5? Type3266 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType? Type3266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParam? Type3267 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallItemStatus? Type3267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam? Type3268 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallItemParamType? Type3268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentParam? Type3269 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType? Type3269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminator? Type3270 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentAction1? Type3270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminatorType? Type3271 { get; set; } + public global::System.Collections.Generic.IList? Type3271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentParamType? Type3272 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParam? Type3272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParamType? Type3273 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamType? Type3273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDetailEnum? Type3274 { get; set; } + public global::System.Collections.Generic.IList? Type3274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParam? Type3275 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem4? Type3275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParamMode? Type3276 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationParam? Type3276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParamType? Type3277 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationParam? Type3277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType? Type3278 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationParam? Type3278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3279 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminator? Type3279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3280 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminatorType? Type3280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputVariant2Item2? Type3281 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationParamType? Type3281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParam? Type3282 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationParamType? Type3282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type3283 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationParamType? Type3283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type3284 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallItemParamType? Type3284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParamType? Type3285 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamType? Type3285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileDetailEnum? Type3286 { get; set; } + public global::System.Collections.Generic.IList? Type3286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallType? Type3287 { get; set; } + public global::tryAGI.OpenAI.ContentItem5? Type3287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallStatus? Type3288 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentParam? Type3288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallType? Type3289 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam? Type3289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallStatus? Type3290 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentParam? Type3290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallAction? Type3291 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminator? Type3291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearch? Type3292 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminatorType? Type3292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage? Type3293 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentParamType? Type3293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionFind? Type3294 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParamType? Type3294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminator? Type3295 { get; set; } + public global::tryAGI.OpenAI.BetaDetailEnum? Type3295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminatorType? Type3296 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParam? Type3296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionFindType? Type3297 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParamMode? Type3297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionOpenPageType? Type3298 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentParamType? Type3298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchType? Type3299 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType? Type3299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3300 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchSource? Type3301 { get; set; } + public global::System.Collections.Generic.IList? Type3301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchSourceType? Type3302 { get; set; } + public global::tryAGI.OpenAI.OutputVariant2Item2? Type3302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputItemParamType? Type3303 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentParam? Type3303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotImage? Type3304 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type3304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3305 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type3305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallSafetyCheckParam? Type3306 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentParamType? Type3306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotImageType? Type3307 { get; set; } + public global::tryAGI.OpenAI.BetaFileDetailEnum? Type3307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallType? Type3308 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallType? Type3308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerAction? Type3309 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallStatus? Type3309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3310 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallType? Type3310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallStatus? Type3311 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallStatus? Type3311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickParam? Type3312 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallAction? Type3312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDoubleClickAction? Type3313 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearch? Type3313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDragParam? Type3314 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage? Type3314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaKeyPressAction? Type3315 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionFind? Type3315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMoveParam? Type3316 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminator? Type3316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScreenshotParam? Type3317 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminatorType? Type3317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScrollParam? Type3318 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionFindType? Type3318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTypeParam? Type3319 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionOpenPageType? Type3319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWaitParam? Type3320 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchType? Type3320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerActionDiscriminator? Type3321 { get; set; } + public global::System.Collections.Generic.IList? Type3321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType? Type3322 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchSource? Type3322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWaitParamType? Type3323 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchSourceType? Type3323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTypeParamType? Type3324 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputItemParamType? Type3324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScrollParamType? Type3325 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotImage? Type3325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScreenshotParamType? Type3326 { get; set; } + public global::System.Collections.Generic.IList? Type3326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMoveParamType? Type3327 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallSafetyCheckParam? Type3327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaKeyPressActionType? Type3328 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotImageType? Type3328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDragParamType? Type3329 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallType? Type3329 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3330 { get; set; } + public global::tryAGI.OpenAI.BetaComputerAction? Type3330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCoordParam? Type3331 { get; set; } + public global::System.Collections.Generic.IList? Type3331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDoubleClickActionType? Type3332 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallStatus? Type3332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickParamType? Type3333 { get; set; } + public global::tryAGI.OpenAI.BetaClickParam? Type3333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickButtonType? Type3334 { get; set; } + public global::tryAGI.OpenAI.BetaDoubleClickAction? Type3334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallType? Type3335 { get; set; } + public global::tryAGI.OpenAI.BetaDragParam? Type3335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallStatus? Type3336 { get; set; } + public global::tryAGI.OpenAI.BetaKeyPressAction? Type3336 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3337 { get; set; } + public global::tryAGI.OpenAI.BetaMoveParam? Type3337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallResultsVariant1Item? Type3338 { get; set; } + public global::tryAGI.OpenAI.BetaScreenshotParam? Type3338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageType? Type3339 { get; set; } + public global::tryAGI.OpenAI.BetaScrollParam? Type3339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageRole? Type3340 { get; set; } + public global::tryAGI.OpenAI.BetaTypeParam? Type3340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3341 { get; set; } + public global::tryAGI.OpenAI.BetaWaitParam? Type3341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContent? Type3342 { get; set; } + public global::tryAGI.OpenAI.BetaComputerActionDiscriminator? Type3342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessagePhase? Type3343 { get; set; } + public global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType? Type3343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageStatus? Type3344 { get; set; } + public global::tryAGI.OpenAI.BetaWaitParamType? Type3344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContent? Type3345 { get; set; } + public global::tryAGI.OpenAI.BetaTypeParamType? Type3345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContent? Type3346 { get; set; } + public global::tryAGI.OpenAI.BetaScrollParamType? Type3346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminator? Type3347 { get; set; } + public global::tryAGI.OpenAI.BetaScreenshotParamType? Type3347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType? Type3348 { get; set; } + public global::tryAGI.OpenAI.BetaMoveParamType? Type3348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContentType? Type3349 { get; set; } + public global::tryAGI.OpenAI.BetaKeyPressActionType? Type3349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentType? Type3350 { get; set; } + public global::tryAGI.OpenAI.BetaDragParamType? Type3350 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3351 { get; set; } + public global::System.Collections.Generic.IList? Type3351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotation? Type3352 { get; set; } + public global::tryAGI.OpenAI.BetaCoordParam? Type3352 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3353 { get; set; } + public global::tryAGI.OpenAI.BetaDoubleClickActionType? Type3353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLogProb? Type3354 { get; set; } + public global::tryAGI.OpenAI.BetaClickParamType? Type3354 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3355 { get; set; } + public global::tryAGI.OpenAI.BetaClickButtonType? Type3355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTopLogProb? Type3356 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallType? Type3356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationBody? Type3357 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallStatus? Type3357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationBody? Type3358 { get; set; } + public global::System.Collections.Generic.IList? Type3358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationBody? Type3359 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallResultsVariant1Item? Type3359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilePath? Type3360 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageType? Type3360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotationDiscriminator? Type3361 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageRole? Type3361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotationDiscriminatorType? Type3362 { get; set; } + public global::System.Collections.Generic.IList? Type3362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilePathType? Type3363 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContent? Type3363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationBodyType? Type3364 { get; set; } + public global::tryAGI.OpenAI.BetaMessagePhase? Type3364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationBodyType? Type3365 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageStatus? Type3365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationBodyType? Type3366 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContent? Type3366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageType? Type3367 { get; set; } + public global::tryAGI.OpenAI.BetaRefusalContent? Type3367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageRole? Type3368 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminator? Type3368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageStatus? Type3369 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType? Type3369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3370 { get; set; } + public global::tryAGI.OpenAI.BetaRefusalContentType? Type3370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContent? Type3371 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentType? Type3371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContentDiscriminator? Type3372 { get; set; } + public global::System.Collections.Generic.IList? Type3372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContentDiscriminatorType? Type3373 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotation? Type3373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessageRole? Type3374 { get; set; } + public global::System.Collections.Generic.IList? Type3374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3375 { get; set; } + public global::tryAGI.OpenAI.BetaLogProb? Type3375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessageType? Type3376 { get; set; } + public global::System.Collections.Generic.IList? Type3376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResponseMethodPublicBody? Type3377 { get; set; } + public global::tryAGI.OpenAI.BetaTopLogProb? Type3377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsCompaction? Type3378 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationBody? Type3378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheRetentionEnum? Type3379 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationBody? Type3379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheOptionsParam? Type3380 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationBody? Type3380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaServiceTierEnum? Type3381 { get; set; } + public global::tryAGI.OpenAI.BetaFilePath? Type3381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheTTLEnum? Type3382 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotationDiscriminator? Type3382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheModeEnum? Type3383 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotationDiscriminatorType? Type3383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponses? Type3384 { get; set; } + public global::tryAGI.OpenAI.BetaFilePathType? Type3384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsShared? Type3385 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationBodyType? Type3385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum? Type3386 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationBodyType? Type3386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsSharedEnum? Type3387 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationBodyType? Type3387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaError? Type3388 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageType? Type3388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseItemList? Type3389 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageRole? Type3389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseItemListObject? Type3390 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageStatus? Type3390 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3391 { get; set; } + public global::System.Collections.Generic.IList? Type3391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResource? Type3392 { get; set; } + public global::tryAGI.OpenAI.BetaInputContent? Type3392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResource? Type3393 { get; set; } + public global::tryAGI.OpenAI.BetaInputContentDiscriminator? Type3393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource? Type3394 { get; set; } + public global::tryAGI.OpenAI.BetaInputContentDiscriminatorType? Type3394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResource? Type3395 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessageRole? Type3395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource? Type3396 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessage? Type3397 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessageType? Type3397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCall? Type3398 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResponseMethodPublicBody? Type3398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutput? Type3399 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsCompaction? Type3399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCall? Type3400 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheRetentionEnum? Type3400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutput? Type3401 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheOptionsParam? Type3401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalTools? Type3402 { get; set; } + public global::tryAGI.OpenAI.BetaServiceTierEnum? Type3402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgram? Type3403 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheTTLEnum? Type3403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutput? Type3404 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheModeEnum? Type3404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBody? Type3405 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsResponses? Type3405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCall? Type3406 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsShared? Type3406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutput? Type3407 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum? Type3407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCall? Type3408 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsSharedEnum? Type3408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput? Type3409 { get; set; } + public global::tryAGI.OpenAI.BetaError? Type3409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource? Type3410 { get; set; } + public global::tryAGI.OpenAI.BetaResponseItemList? Type3410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResource? Type3411 { get; set; } + public global::tryAGI.OpenAI.BetaResponseItemListObject? Type3411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource? Type3412 { get; set; } + public global::System.Collections.Generic.IList? Type3412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResourceDiscriminator? Type3413 { get; set; } + public global::tryAGI.OpenAI.BetaItemResource? Type3413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResourceDiscriminatorType? Type3414 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageResource? Type3414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2? Type3415 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource? Type3415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputStatusEnum? Type3416 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallResource? Type3416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2? Type3417 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource? Type3417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallStatus? Type3418 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessage? Type3418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType? Type3419 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCall? Type3419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType? Type3420 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutput? Type3420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus? Type3421 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCall? Type3421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallType? Type3422 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutput? Type3422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallStatus? Type3423 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalTools? Type3423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Operation2? Type3424 { get; set; } + public global::tryAGI.OpenAI.BetaProgram? Type3424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation? Type3425 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutput? Type3425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation? Type3426 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionBody? Type3426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation? Type3427 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCall? Type3427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminator? Type3428 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutput? Type3428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminatorType? Type3429 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCall? Type3429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationType? Type3430 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput? Type3430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationType? Type3431 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource? Type3431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationType? Type3432 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallResource? Type3432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputType? Type3433 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource? Type3433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputStatusEnum? Type3434 { get; set; } + public global::tryAGI.OpenAI.BetaItemResourceDiscriminator? Type3434 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3435 { get; set; } + public global::tryAGI.OpenAI.BetaItemResourceDiscriminatorType? Type3435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContent? Type3436 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2? Type3436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Outcome2? Type3437 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputStatusEnum? Type3437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome? Type3438 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2? Type3438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome? Type3439 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallStatus? Type3439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminator? Type3440 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType? Type3440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminatorType? Type3441 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType? Type3441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeType? Type3442 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus? Type3442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeType? Type3443 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallType? Type3443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallType? Type3444 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallStatus? Type3444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellAction? Type3445 { get; set; } + public global::tryAGI.OpenAI.Operation2? Type3445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallStatus? Type3446 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation? Type3446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant16? Type3447 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation? Type3447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentResource? Type3448 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation? Type3448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceResource? Type3449 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminator? Type3449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1Discriminator? Type3450 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminatorType? Type3450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1DiscriminatorType? Type3451 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationType? Type3451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceResourceType? Type3452 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationType? Type3452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentResourceType? Type3453 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationType? Type3453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBodyType? Type3454 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputType? Type3454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputType? Type3455 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputStatusEnum? Type3455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputStatus? Type3456 { get; set; } + public global::System.Collections.Generic.IList? Type3456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramType? Type3457 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContent? Type3457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsType? Type3458 { get; set; } + public global::tryAGI.OpenAI.Outcome2? Type3458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageRole? Type3459 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome? Type3459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputType? Type3460 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome? Type3460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallType? Type3461 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminator? Type3461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputType? Type3462 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminatorType? Type3462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentAction? Type3463 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeType? Type3463 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3464 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeType? Type3464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallType? Type3465 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallType? Type3465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageType? Type3466 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellAction? Type3466 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3467 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallStatus? Type3467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem6? Type3468 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant16? Type3468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextContent? Type3469 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentResource? Type3469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContent? Type3470 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceResource? Type3470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContent? Type3471 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1Discriminator? Type3471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminator? Type3472 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1DiscriminatorType? Type3472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminatorType? Type3473 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceResourceType? Type3473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentType? Type3474 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentResourceType? Type3474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContentType? Type3475 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionBodyType? Type3475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextContentType? Type3476 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputType? Type3476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutput? Type3477 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputStatus? Type3477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2? Type3478 { get; set; } + public global::tryAGI.OpenAI.BetaProgramType? Type3478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputType? Type3479 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsType? Type3479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputStatus? Type3480 { get; set; } + public global::tryAGI.OpenAI.BetaMessageRole? Type3480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2? Type3481 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputType? Type3481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutput? Type3482 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallType? Type3482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2? Type3483 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputType? Type3483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputStatus? Type3484 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentAction? Type3484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputType? Type3485 { get; set; } + public global::System.Collections.Generic.IList? Type3485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputStatus? Type3486 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallType? Type3486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2? Type3487 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageType? Type3487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResource? Type3488 { get; set; } + public global::System.Collections.Generic.IList? Type3488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResourceObject? Type3489 { get; set; } + public global::tryAGI.OpenAI.ContentItem6? Type3489 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3490 { get; set; } + public global::tryAGI.OpenAI.BetaTextContent? Type3490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemField? Type3491 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotContent? Type3491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsage? Type3492 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContent? Type3492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsageInputTokensDetails? Type3493 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminator? Type3493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsageOutputTokensDetails? Type3494 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminatorType? Type3494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessage? Type3495 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentType? Type3495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemFieldDiscriminator? Type3496 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotContentType? Type3496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemFieldDiscriminatorType? Type3497 { get; set; } + public global::tryAGI.OpenAI.BetaTextContentType? Type3497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageType? Type3498 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutput? Type3498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageStatus? Type3499 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2? Type3499 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3500 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputType? Type3500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem7? Type3501 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputStatus? Type3501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminator? Type3502 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2? Type3502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminatorType? Type3503 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutput? Type3503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessagePhase22? Type3504 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2? Type3504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent? Type3505 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputStatus? Type3505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEventType? Type3506 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputType? Type3506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent? Type3507 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputStatus? Type3507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEventType? Type3508 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2? Type3508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseQueuedEvent? Type3509 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResource? Type3509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseQueuedEventType? Type3510 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResourceObject? Type3510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponse? Type3511 { get; set; } + public global::System.Collections.Generic.IList? Type3511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelResponseProperties? Type3512 { get; set; } + public global::tryAGI.OpenAI.BetaItemField? Type3512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseProperties? Type3513 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsage? Type3513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3? Type3514 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsageInputTokensDetails? Type3514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Truncation2? Type3515 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsageOutputTokensDetails? Type3515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Object? Type3516 { get; set; } + public global::tryAGI.OpenAI.BetaMessage? Type3516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Status? Type3517 { get; set; } + public global::tryAGI.OpenAI.BetaItemFieldDiscriminator? Type3517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorVariant1? Type3518 { get; set; } + public global::tryAGI.OpenAI.BetaItemFieldDiscriminatorType? Type3518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetails2? Type3519 { get; set; } + public global::tryAGI.OpenAI.BetaMessageType? Type3519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetailsReason? Type3520 { get; set; } + public global::tryAGI.OpenAI.BetaMessageStatus? Type3520 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3521 { get; set; } + public global::System.Collections.Generic.IList? Type3521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItem? Type3522 { get; set; } + public global::tryAGI.OpenAI.ContentItem7? Type3522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheOptions? Type3523 { get; set; } + public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminator? Type3523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModeration? Type3524 { get; set; } + public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminatorType? Type3524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaConversation2? Type3525 { get; set; } + public global::tryAGI.OpenAI.BetaMessagePhase22? Type3525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Input5? Type3526 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent? Type3526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBody? Type3527 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEventType? Type3527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBody? Type3528 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent? Type3528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputDiscriminator? Type3529 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEventType? Type3529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputDiscriminatorType? Type3530 { get; set; } + public global::tryAGI.OpenAI.BetaResponseQueuedEvent? Type3530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Output9? Type3531 { get; set; } + public global::tryAGI.OpenAI.BetaResponseQueuedEventType? Type3531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationOutputDiscriminator? Type3532 { get; set; } + public global::tryAGI.OpenAI.BetaResponse? Type3532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationOutputDiscriminatorType? Type3533 { get; set; } + public global::tryAGI.OpenAI.BetaModelResponseProperties? Type3533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBodyType? Type3534 { get; set; } + public global::tryAGI.OpenAI.BetaResponseProperties? Type3534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBodyType? Type3535 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3? Type3535 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type3536 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Truncation2? Type3536 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3537 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Object? Type3537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputType? Type3538 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Status? Type3538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItemDiscriminator? Type3539 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorVariant1? Type3539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItemDiscriminatorType? Type3540 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetails2? Type3540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorCode? Type3541 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetailsReason? Type3541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptVariant1? Type3542 { get; set; } + public global::System.Collections.Generic.IList? Type3542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3543 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItem? Type3543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaServiceTierEnum2? Type3544 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheOptions? Type3544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention2? Type3545 { get; set; } + public global::tryAGI.OpenAI.BetaModeration? Type3545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent? Type3546 { get; set; } + public global::tryAGI.OpenAI.BetaConversation2? Type3546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType? Type3547 { get; set; } + public global::tryAGI.OpenAI.Input5? Type3547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent? Type3548 { get; set; } + public global::tryAGI.OpenAI.BetaModerationResultBody? Type3548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEventType? Type3549 { get; set; } + public global::tryAGI.OpenAI.BetaModerationErrorBody? Type3549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent? Type3550 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputDiscriminator? Type3550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEventType? Type3551 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputDiscriminatorType? Type3551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent? Type3552 { get; set; } + public global::tryAGI.OpenAI.Output9? Type3552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEventType? Type3553 { get; set; } + public global::tryAGI.OpenAI.BetaModerationOutputDiscriminator? Type3553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent? Type3554 { get; set; } + public global::tryAGI.OpenAI.BetaModerationOutputDiscriminatorType? Type3554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEventType? Type3555 { get; set; } + public global::tryAGI.OpenAI.BetaModerationErrorBodyType? Type3555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent? Type3556 { get; set; } + public global::tryAGI.OpenAI.BetaModerationResultBodyType? Type3556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEventType? Type3557 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type3557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent? Type3558 { get; set; } + public global::System.Collections.Generic.IList? Type3558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEventType? Type3559 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputType? Type3559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent? Type3560 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItemDiscriminator? Type3560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEventType? Type3561 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItemDiscriminatorType? Type3561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent? Type3562 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorCode? Type3562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEventType? Type3563 { get; set; } + public global::tryAGI.OpenAI.BetaPromptVariant1? Type3563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent? Type3564 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEventType? Type3565 { get; set; } + public global::tryAGI.OpenAI.BetaServiceTierEnum2? Type3565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent? Type3566 { get; set; } + public global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention2? Type3566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEventType? Type3567 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent? Type3567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent? Type3568 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType? Type3568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEventType? Type3569 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent? Type3569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent? Type3570 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEventType? Type3570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEventType? Type3571 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent? Type3571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent? Type3572 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEventType? Type3572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEventType? Type3573 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent? Type3573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent? Type3574 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEventType? Type3574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEventType? Type3575 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent? Type3575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent? Type3576 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEventType? Type3576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEventType? Type3577 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent? Type3577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent? Type3578 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEventType? Type3578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEventType? Type3579 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent? Type3579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent? Type3580 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEventType? Type3580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventType? Type3581 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent? Type3581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventStatus? Type3582 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEventType? Type3582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPart? Type3583 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent? Type3583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPartType? Type3584 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEventType? Type3584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent? Type3585 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent? Type3585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventType? Type3586 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEventType? Type3586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPart? Type3587 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent? Type3587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPartType? Type3588 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEventType? Type3588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDoneEvent? Type3589 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent? Type3589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDoneEventType? Type3590 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEventType? Type3590 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3591 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent? Type3591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseLogProb? Type3592 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEventType? Type3592 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3593 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent? Type3593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseLogProbTopLogprob? Type3594 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEventType? Type3594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent? Type3595 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent? Type3595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDeltaEventType? Type3596 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEventType? Type3596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent? Type3597 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent? Type3597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDoneEventType? Type3598 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEventType? Type3598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent? Type3599 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent? Type3599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEventType? Type3600 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEventType? Type3600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent? Type3601 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent? Type3601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEventType? Type3602 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventType? Type3602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent? Type3603 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventStatus? Type3603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType? Type3604 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPart? Type3604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInProgressEvent? Type3605 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPartType? Type3605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInProgressEventType? Type3606 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent? Type3606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent? Type3607 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventType? Type3607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEventType? Type3608 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPart? Type3608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent? Type3609 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPartType? Type3609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEventType? Type3610 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDoneEvent? Type3610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent? Type3611 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDoneEventType? Type3611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEventType? Type3612 { get; set; } + public global::System.Collections.Generic.IList? Type3612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent? Type3613 { get; set; } + public global::tryAGI.OpenAI.BetaResponseLogProb? Type3613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEventType? Type3614 { get; set; } + public global::System.Collections.Generic.IList? Type3614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent? Type3615 { get; set; } + public global::tryAGI.OpenAI.BetaResponseLogProbTopLogprob? Type3615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEventType? Type3616 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent? Type3616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorEvent? Type3617 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDeltaEventType? Type3617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorEventType? Type3618 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent? Type3618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCreatedEvent? Type3619 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDoneEventType? Type3619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCreatedEventType? Type3620 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent? Type3620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent? Type3621 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEventType? Type3621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartDoneEventType? Type3622 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent? Type3622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContent? Type3623 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEventType? Type3623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContentDiscriminator? Type3624 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent? Type3624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContentDiscriminatorType? Type3625 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType? Type3625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent? Type3626 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInProgressEvent? Type3626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartAddedEventType? Type3627 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInProgressEventType? Type3627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompletedEvent? Type3628 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent? Type3628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompletedEventType? Type3629 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEventType? Type3629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent? Type3630 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent? Type3630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEventType? Type3631 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEventType? Type3631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent? Type3632 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent? Type3632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEventType? Type3633 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEventType? Type3633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent? Type3634 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent? Type3634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEventType? Type3635 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEventType? Type3635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent? Type3636 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent? Type3636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEventType? Type3637 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEventType? Type3637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent? Type3638 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorEvent? Type3638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEventType? Type3639 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorEventType? Type3639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent? Type3640 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCreatedEvent? Type3640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEventType? Type3641 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCreatedEventType? Type3641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent? Type3642 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent? Type3642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEventType? Type3643 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartDoneEventType? Type3643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent? Type3644 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContent? Type3644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDoneEventType? Type3645 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContentDiscriminator? Type3645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent? Type3646 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContentDiscriminatorType? Type3646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDeltaEventType? Type3647 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent? Type3647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseIncompleteEvent? Type3648 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartAddedEventType? Type3648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseIncompleteEventType? Type3649 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompletedEvent? Type3649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFailedEvent? Type3650 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompletedEventType? Type3650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFailedEventType? Type3651 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent? Type3651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent? Type3652 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEventType? Type3652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEventType? Type3653 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent? Type3653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent? Type3654 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEventType? Type3654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEventType? Type3655 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent? Type3655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent? Type3656 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEventType? Type3656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEventType? Type3657 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent? Type3657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputAudio? Type3658 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEventType? Type3658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputAudioType? Type3659 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent? Type3659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudio? Type3660 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEventType? Type3660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioType? Type3661 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent? Type3661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioInputAudio? Type3662 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEventType? Type3662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioInputAudioFormat? Type3663 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent? Type3663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputParam? Type3664 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEventType? Type3664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContent? Type3665 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent? Type3665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaIncludeEnum? Type3666 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDoneEventType? Type3666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEvent? Type3667 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent? Type3667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEvent? Type3668 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDeltaEventType? Type3668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent? Type3669 { get; set; } + public global::tryAGI.OpenAI.BetaResponseIncompleteEvent? Type3669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent? Type3670 { get; set; } + public global::tryAGI.OpenAI.BetaResponseIncompleteEventType? Type3670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminator? Type3671 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFailedEvent? Type3671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminatorType? Type3672 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFailedEventType? Type3672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventType? Type3673 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent? Type3673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventError? Type3674 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEventType? Type3674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventErrorCode? Type3675 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent? Type3675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectCreatedEventType? Type3676 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEventType? Type3676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminator? Type3677 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent? Type3677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminatorType? Type3678 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEventType? Type3678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEvent? Type3679 { get; set; } + public global::tryAGI.OpenAI.BetaOutputAudio? Type3679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate? Type3680 { get; set; } + public global::tryAGI.OpenAI.BetaOutputAudioType? Type3680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectEvent? Type3681 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudio? Type3681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminator? Type3682 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioType? Type3682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminatorType? Type3683 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioInputAudio? Type3683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectEventType? Type3684 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioInputAudioFormat? Type3684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1? Type3685 { get; set; } + public global::tryAGI.OpenAI.BetaInputParam? Type3685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type? Type3686 { get; set; } + public global::tryAGI.OpenAI.BetaContent? Type3686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponse? Type3687 { get; set; } + public global::tryAGI.OpenAI.BetaIncludeEnum? Type3687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponseProperties? Type3688 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEvent? Type3688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseVariant3? Type3689 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEvent? Type3689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation2? Type3690 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent? Type3690 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3691 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent? Type3691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationParam? Type3692 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminator? Type3692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1? Type3693 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminatorType? Type3693 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3694 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventType? Type3694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContextManagementParam? Type3695 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventError? Type3695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentParam? Type3696 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventErrorCode? Type3696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationPolicyParam? Type3697 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectCreatedEventType? Type3697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationConfigParam? Type3698 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminator? Type3698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationMode? Type3699 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminatorType? Type3699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2? Type3700 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEvent? Type3700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type3701 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate? Type3701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type3702 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectEvent? Type3702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEvalRequest? Type3703 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminator? Type3703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type3704 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminatorType? Type3704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsOrder? Type3705 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectEventType? Type3705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type3706 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1? Type3706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type3707 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type? Type3707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainersOrder? Type3708 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponse? Type3708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainerFilesOrder? Type3709 { get; set; } + public global::tryAGI.OpenAI.BetaCreateModelResponseProperties? Type3709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListConversationItemsOrder? Type3710 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseVariant3? Type3710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrder? Type3711 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation2? Type3711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrderBy? Type3712 { get; set; } + public global::System.Collections.Generic.IList? Type3712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsOrder? Type3713 { get; set; } + public global::tryAGI.OpenAI.BetaModerationParam? Type3713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsStatus? Type3714 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1? Type3714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type3715 { get; set; } + public global::System.Collections.Generic.IList? Type3715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type3716 { get; set; } + public global::tryAGI.OpenAI.BetaContextManagementParam? Type3716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesOrder? Type3717 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentParam? Type3717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type3718 { get; set; } + public global::tryAGI.OpenAI.BetaModerationPolicyParam? Type3718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type3719 { get; set; } + public global::tryAGI.OpenAI.BetaModerationConfigParam? Type3719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type3720 { get; set; } + public global::tryAGI.OpenAI.BetaModerationMode? Type3720 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3721 { get; set; } + public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2? Type3721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type3722 { get; set; } + public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type3722 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3723 { get; set; } + public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type3723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type3724 { get; set; } + public global::tryAGI.OpenAI.UpdateEvalRequest? Type3724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type3725 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type3725 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3726 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsOrder? Type3726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type3727 { get; set; } + public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type3727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupsOrder? Type3728 { get; set; } + public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type3728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type3729 { get; set; } + public global::tryAGI.OpenAI.ListContainersOrder? Type3729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupUsersOrder? Type3730 { get; set; } + public global::tryAGI.OpenAI.ListContainerFilesOrder? Type3730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectApiKeysOwnerProjectAccess? Type3731 { get; set; } + public global::tryAGI.OpenAI.ListConversationItemsOrder? Type3731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type3732 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrder? Type3732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type3733 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrderBy? Type3733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RetrieveProjectGroupGroupType? Type3734 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsOrder? Type3734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectSpendAlertsOrder? Type3735 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsStatus? Type3735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRolesOrder? Type3736 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type3736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder? Type3737 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type3737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type3738 { get; set; } + public global::tryAGI.OpenAI.ListFilesOrder? Type3738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3739 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type3739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type3740 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type3740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type3741 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type3741 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3742 { get; set; } + public global::System.Collections.Generic.IList? Type3742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type3743 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type3743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type3744 { get; set; } + public global::System.Collections.Generic.IList? Type3744 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3745 { get; set; } + public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type3745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type3746 { get; set; } + public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type3746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type3747 { get; set; } + public global::System.Collections.Generic.IList? Type3747 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3748 { get; set; } + public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type3748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type3749 { get; set; } + public global::tryAGI.OpenAI.ListGroupsOrder? Type3749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type3750 { get; set; } + public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type3750 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3751 { get; set; } + public global::tryAGI.OpenAI.ListGroupUsersOrder? Type3751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type3752 { get; set; } + public global::tryAGI.OpenAI.ListProjectApiKeysOwnerProjectAccess? Type3752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsBucketWidth? Type3753 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type3753 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3754 { get; set; } + public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type3754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsGroupByItem? Type3755 { get; set; } + public global::tryAGI.OpenAI.RetrieveProjectGroupGroupType? Type3755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type3756 { get; set; } + public global::tryAGI.OpenAI.ListProjectSpendAlertsOrder? Type3756 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3757 { get; set; } + public global::tryAGI.OpenAI.ListRolesOrder? Type3757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSource? Type3758 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder? Type3758 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3759 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type3759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSize? Type3760 { get; set; } + public global::System.Collections.Generic.IList? Type3760 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3761 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type3761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type3762 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type3762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type3763 { get; set; } + public global::System.Collections.Generic.IList? Type3763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3764 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type3764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type3765 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type3765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type3766 { get; set; } + public global::System.Collections.Generic.IList? Type3766 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3767 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type3767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type3768 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type3768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsBucketWidth? Type3769 { get; set; } + public global::System.Collections.Generic.IList? Type3769 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3770 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type3770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsContextLevel? Type3771 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type3771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3772 { get; set; } + public global::System.Collections.Generic.IList? Type3772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsGroupByItem? Type3773 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type3773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type3774 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsBucketWidth? Type3774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type3775 { get; set; } + public global::System.Collections.Generic.IList? Type3775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectRolesOrder? Type3776 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsGroupByItem? Type3776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type3777 { get; set; } + public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type3777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListInputItemsOrder? Type3778 { get; set; } + public global::System.Collections.Generic.IList? Type3778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesOrder? Type3779 { get; set; } + public global::tryAGI.OpenAI.UsageImagesSource? Type3779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsOrder? Type3780 { get; set; } + public global::System.Collections.Generic.IList? Type3780 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3781 { get; set; } + public global::tryAGI.OpenAI.UsageImagesSize? Type3781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunIncludeItem? Type3782 { get; set; } + public global::System.Collections.Generic.IList? Type3782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsOrder? Type3783 { get; set; } + public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type3783 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3784 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type3784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type3785 { get; set; } + public global::System.Collections.Generic.IList? Type3785 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3786 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type3786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type3787 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type3787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresOrder? Type3788 { get; set; } + public global::System.Collections.Generic.IList? Type3788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type3789 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type3789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type3790 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsBucketWidth? Type3790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type3791 { get; set; } + public global::System.Collections.Generic.IList? Type3791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type3792 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsContextLevel? Type3792 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3793 { get; set; } + public global::System.Collections.Generic.IList? Type3793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem? Type3794 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsGroupByItem? Type3794 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3795 { get; set; } + public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type3795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem? Type3796 { get; set; } + public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type3796 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3797 { get; set; } + public global::tryAGI.OpenAI.ListProjectRolesOrder? Type3797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem? Type3798 { get; set; } + public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type3798 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3799 { get; set; } + public global::tryAGI.OpenAI.ListInputItemsOrder? Type3799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem? Type3800 { get; set; } + public global::tryAGI.OpenAI.ListMessagesOrder? Type3800 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3801 { get; set; } + public global::tryAGI.OpenAI.ListRunsOrder? Type3801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem? Type3802 { get; set; } + public global::System.Collections.Generic.IList? Type3802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaListInputItemsOrder? Type3803 { get; set; } + public global::tryAGI.OpenAI.CreateRunIncludeItem? Type3803 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3804 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsOrder? Type3804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem? Type3805 { get; set; } + public global::System.Collections.Generic.IList? Type3805 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3806 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type3806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem? Type3807 { get; set; } + public global::System.Collections.Generic.IList? Type3807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3808 { get; set; } + public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type3808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalResponse? Type3809 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoresOrder? Type3809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type3810 { get; set; } + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type3810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type3811 { get; set; } + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type3811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type3812 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type3812 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type3813 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type3814 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem? Type3815 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type3816 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem? Type3817 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type3818 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem? Type3819 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type3820 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem? Type3821 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type3822 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem? Type3823 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaListInputItemsOrder? Type3824 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type3825 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem? Type3826 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type3827 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem? Type3828 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type3829 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalResponse? Type3830 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type3831 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type3832 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type3833 { get; set; } /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResource.Json.g.cs new file mode 100644 index 00000000..4c2482e8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class OrganizationSpendLimitDeletedResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource), + jsonSerializerContext) as global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResource.g.cs new file mode 100644 index 00000000..8179437d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResource.g.cs @@ -0,0 +1,74 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Confirmation payload returned after deleting an organization hard spend limit. + /// + public sealed partial class OrganizationSpendLimitDeletedResource + { + /// + /// The object type, which is always `organization.spend_limit.deleted`.
+ /// Default Value: organization.spend_limit.deleted + ///
+ /// global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject.OrganizationSpendLimitDeleted + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitDeletedResourceObjectJsonConverter))] + public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject Object { get; set; } = global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject.OrganizationSpendLimitDeleted; + + /// + /// Whether the hard spend limit was deleted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Deleted { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether the hard spend limit was deleted. + /// + /// + /// The object type, which is always `organization.spend_limit.deleted`.
+ /// Default Value: organization.spend_limit.deleted + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OrganizationSpendLimitDeletedResource( + bool deleted, + global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject @object = global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject.OrganizationSpendLimitDeleted) + { + this.Object = @object; + this.Deleted = deleted; + } + + /// + /// Initializes a new instance of the class. + /// + public OrganizationSpendLimitDeletedResource() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static OrganizationSpendLimitDeletedResource FromDeleted(bool deleted) + { + return new OrganizationSpendLimitDeletedResource + { + Deleted = deleted, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResourceObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResourceObject.g.cs new file mode 100644 index 00000000..4e92a5ed --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitDeletedResourceObject.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The object type, which is always `organization.spend_limit.deleted`.
+ /// Default Value: organization.spend_limit.deleted + ///
+ public enum OrganizationSpendLimitDeletedResourceObject + { + /// + /// + /// + OrganizationSpendLimitDeleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OrganizationSpendLimitDeletedResourceObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OrganizationSpendLimitDeletedResourceObject value) + { + return value switch + { + OrganizationSpendLimitDeletedResourceObject.OrganizationSpendLimitDeleted => "organization.spend_limit.deleted", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OrganizationSpendLimitDeletedResourceObject? ToEnum(string value) + { + return value switch + { + "organization.spend_limit.deleted" => OrganizationSpendLimitDeletedResourceObject.OrganizationSpendLimitDeleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResource.Json.g.cs new file mode 100644 index 00000000..5e97eab5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class OrganizationSpendLimitResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.OrganizationSpendLimitResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.OrganizationSpendLimitResource), + jsonSerializerContext) as global::tryAGI.OpenAI.OrganizationSpendLimitResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.OrganizationSpendLimitResource? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.OrganizationSpendLimitResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.OrganizationSpendLimitResource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OrganizationSpendLimitResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResource.g.cs new file mode 100644 index 00000000..315925ec --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResource.g.cs @@ -0,0 +1,100 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Represents a hard spend limit configured at the organization level. + /// + public sealed partial class OrganizationSpendLimitResource + { + /// + /// The object type, which is always `organization.spend_limit`.
+ /// Default Value: organization.spend_limit + ///
+ /// global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject.OrganizationSpendLimit + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OrganizationSpendLimitResourceObjectJsonConverter))] + public global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject Object { get; set; } = global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject.OrganizationSpendLimit; + + /// + /// The hard spend limit amount, in cents. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("threshold_amount")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ThresholdAmount { get; set; } + + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("currency")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.SpendLimitCurrency Currency { get; set; } + + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interval")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.SpendLimitInterval Interval { get; set; } + + /// + /// The current enforcement state of the hard spend limit. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enforcement")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.SpendLimitEnforcement Enforcement { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The hard spend limit amount, in cents. + /// + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + /// + /// The current enforcement state of the hard spend limit. + /// + /// + /// The object type, which is always `organization.spend_limit`.
+ /// Default Value: organization.spend_limit + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OrganizationSpendLimitResource( + int thresholdAmount, + global::tryAGI.OpenAI.SpendLimitCurrency currency, + global::tryAGI.OpenAI.SpendLimitInterval interval, + global::tryAGI.OpenAI.SpendLimitEnforcement enforcement, + global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject @object = global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject.OrganizationSpendLimit) + { + this.Object = @object; + this.ThresholdAmount = thresholdAmount; + this.Currency = currency; + this.Interval = interval; + this.Enforcement = enforcement ?? throw new global::System.ArgumentNullException(nameof(enforcement)); + } + + /// + /// Initializes a new instance of the class. + /// + public OrganizationSpendLimitResource() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResourceObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResourceObject.g.cs new file mode 100644 index 00000000..c4e66e9b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OrganizationSpendLimitResourceObject.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The object type, which is always `organization.spend_limit`.
+ /// Default Value: organization.spend_limit + ///
+ public enum OrganizationSpendLimitResourceObject + { + /// + /// + /// + OrganizationSpendLimit, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OrganizationSpendLimitResourceObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OrganizationSpendLimitResourceObject value) + { + return value switch + { + OrganizationSpendLimitResourceObject.OrganizationSpendLimit => "organization.spend_limit", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OrganizationSpendLimitResourceObject? ToEnum(string value) + { + return value switch + { + "organization.spend_limit" => OrganizationSpendLimitResourceObject.OrganizationSpendLimit, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResource.Json.g.cs new file mode 100644 index 00000000..ae287a40 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ProjectSpendLimitDeletedResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource), + jsonSerializerContext) as global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResource.g.cs new file mode 100644 index 00000000..2c216bb1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResource.g.cs @@ -0,0 +1,74 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Confirmation payload returned after deleting a project hard spend limit. + /// + public sealed partial class ProjectSpendLimitDeletedResource + { + /// + /// The object type, which is always `project.spend_limit.deleted`.
+ /// Default Value: project.spend_limit.deleted + ///
+ /// global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject.ProjectSpendLimitDeleted + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitDeletedResourceObjectJsonConverter))] + public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject Object { get; set; } = global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject.ProjectSpendLimitDeleted; + + /// + /// Whether the hard spend limit was deleted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Deleted { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether the hard spend limit was deleted. + /// + /// + /// The object type, which is always `project.spend_limit.deleted`.
+ /// Default Value: project.spend_limit.deleted + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ProjectSpendLimitDeletedResource( + bool deleted, + global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject @object = global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject.ProjectSpendLimitDeleted) + { + this.Object = @object; + this.Deleted = deleted; + } + + /// + /// Initializes a new instance of the class. + /// + public ProjectSpendLimitDeletedResource() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static ProjectSpendLimitDeletedResource FromDeleted(bool deleted) + { + return new ProjectSpendLimitDeletedResource + { + Deleted = deleted, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResourceObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResourceObject.g.cs new file mode 100644 index 00000000..26ca8a8c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitDeletedResourceObject.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The object type, which is always `project.spend_limit.deleted`.
+ /// Default Value: project.spend_limit.deleted + ///
+ public enum ProjectSpendLimitDeletedResourceObject + { + /// + /// + /// + ProjectSpendLimitDeleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ProjectSpendLimitDeletedResourceObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ProjectSpendLimitDeletedResourceObject value) + { + return value switch + { + ProjectSpendLimitDeletedResourceObject.ProjectSpendLimitDeleted => "project.spend_limit.deleted", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ProjectSpendLimitDeletedResourceObject? ToEnum(string value) + { + return value switch + { + "project.spend_limit.deleted" => ProjectSpendLimitDeletedResourceObject.ProjectSpendLimitDeleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResource.Json.g.cs new file mode 100644 index 00000000..409f2903 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ProjectSpendLimitResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ProjectSpendLimitResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ProjectSpendLimitResource), + jsonSerializerContext) as global::tryAGI.OpenAI.ProjectSpendLimitResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ProjectSpendLimitResource? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ProjectSpendLimitResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ProjectSpendLimitResource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ProjectSpendLimitResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResource.g.cs new file mode 100644 index 00000000..46bfc49b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResource.g.cs @@ -0,0 +1,100 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Represents a hard spend limit configured at the project level. + /// + public sealed partial class ProjectSpendLimitResource + { + /// + /// The object type, which is always `project.spend_limit`.
+ /// Default Value: project.spend_limit + ///
+ /// global::tryAGI.OpenAI.ProjectSpendLimitResourceObject.ProjectSpendLimit + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ProjectSpendLimitResourceObjectJsonConverter))] + public global::tryAGI.OpenAI.ProjectSpendLimitResourceObject Object { get; set; } = global::tryAGI.OpenAI.ProjectSpendLimitResourceObject.ProjectSpendLimit; + + /// + /// The hard spend limit amount, in cents. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("threshold_amount")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ThresholdAmount { get; set; } + + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("currency")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitCurrencyJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.SpendLimitCurrency Currency { get; set; } + + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interval")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitIntervalJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.SpendLimitInterval Interval { get; set; } + + /// + /// The current enforcement state of the hard spend limit. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enforcement")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.SpendLimitEnforcement Enforcement { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The hard spend limit amount, in cents. + /// + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + /// + /// The current enforcement state of the hard spend limit. + /// + /// + /// The object type, which is always `project.spend_limit`.
+ /// Default Value: project.spend_limit + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ProjectSpendLimitResource( + int thresholdAmount, + global::tryAGI.OpenAI.SpendLimitCurrency currency, + global::tryAGI.OpenAI.SpendLimitInterval interval, + global::tryAGI.OpenAI.SpendLimitEnforcement enforcement, + global::tryAGI.OpenAI.ProjectSpendLimitResourceObject @object = global::tryAGI.OpenAI.ProjectSpendLimitResourceObject.ProjectSpendLimit) + { + this.Object = @object; + this.ThresholdAmount = thresholdAmount; + this.Currency = currency; + this.Interval = interval; + this.Enforcement = enforcement ?? throw new global::System.ArgumentNullException(nameof(enforcement)); + } + + /// + /// Initializes a new instance of the class. + /// + public ProjectSpendLimitResource() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResourceObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResourceObject.g.cs new file mode 100644 index 00000000..3c4802ef --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ProjectSpendLimitResourceObject.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The object type, which is always `project.spend_limit`.
+ /// Default Value: project.spend_limit + ///
+ public enum ProjectSpendLimitResourceObject + { + /// + /// + /// + ProjectSpendLimit, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ProjectSpendLimitResourceObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ProjectSpendLimitResourceObject value) + { + return value switch + { + ProjectSpendLimitResourceObject.ProjectSpendLimit => "project.spend_limit", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ProjectSpendLimitResourceObject? ToEnum(string value) + { + return value switch + { + "project.spend_limit" => ProjectSpendLimitResourceObject.ProjectSpendLimit, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.Json.g.cs new file mode 100644 index 00000000..e4f52644 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct SpendLimitCurrency + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.SpendLimitCurrency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.SpendLimitCurrency), + jsonSerializerContext) as global::tryAGI.OpenAI.SpendLimitCurrency?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.SpendLimitCurrency? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.SpendLimitCurrency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.SpendLimitCurrency), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.SpendLimitCurrency?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.g.cs new file mode 100644 index 00000000..58673252 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct SpendLimitCurrency : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? SpendLimitCurrencyVariant1 { get; init; } +#else + public string? SpendLimitCurrencyVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SpendLimitCurrencyVariant1))] +#endif + public bool IsSpendLimitCurrencyVariant1 => SpendLimitCurrencyVariant1 != null; + + /// + /// + /// + public bool TryPickSpendLimitCurrencyVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = SpendLimitCurrencyVariant1; + return IsSpendLimitCurrencyVariant1; + } + + /// + /// + /// + public string PickSpendLimitCurrencyVariant1() => IsSpendLimitCurrencyVariant1 + ? SpendLimitCurrencyVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'SpendLimitCurrencyVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Enum { get; init; } +#else + public global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Enum { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] +#endif + public bool IsEnum => Enum != null; + + /// + /// + /// + public bool TryPickEnum( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.SpendLimitCurrencyEnum? value) + { + value = Enum; + return IsEnum; + } + + /// + /// + /// + public global::tryAGI.OpenAI.SpendLimitCurrencyEnum PickEnum() => IsEnum + ? Enum!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator SpendLimitCurrency(string value) => new SpendLimitCurrency((string?)value); + + /// + /// + /// + public static implicit operator string?(SpendLimitCurrency @this) => @this.SpendLimitCurrencyVariant1; + + /// + /// + /// + public SpendLimitCurrency(string? value) + { + SpendLimitCurrencyVariant1 = value; + } + + /// + /// + /// + public static SpendLimitCurrency FromSpendLimitCurrencyVariant1(string? value) => new SpendLimitCurrency(value); + + /// + /// + /// + public static implicit operator SpendLimitCurrency(global::tryAGI.OpenAI.SpendLimitCurrencyEnum value) => new SpendLimitCurrency((global::tryAGI.OpenAI.SpendLimitCurrencyEnum?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.SpendLimitCurrencyEnum?(SpendLimitCurrency @this) => @this.Enum; + + /// + /// + /// + public SpendLimitCurrency(global::tryAGI.OpenAI.SpendLimitCurrencyEnum? value) + { + Enum = value; + } + + /// + /// + /// + public static SpendLimitCurrency FromEnum(global::tryAGI.OpenAI.SpendLimitCurrencyEnum? value) => new SpendLimitCurrency(value); + + /// + /// + /// + public SpendLimitCurrency( + string? spendLimitCurrencyVariant1, + global::tryAGI.OpenAI.SpendLimitCurrencyEnum? @enum + ) + { + SpendLimitCurrencyVariant1 = spendLimitCurrencyVariant1; + Enum = @enum; + } + + /// + /// + /// + public object? Object => + Enum as object ?? + SpendLimitCurrencyVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + SpendLimitCurrencyVariant1?.ToString() ?? + Enum?.ToValueString() + ; + + /// + /// + /// + public bool Validate() + { + return IsSpendLimitCurrencyVariant1 || IsEnum; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? spendLimitCurrencyVariant1 = null, + global::System.Func? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSpendLimitCurrencyVariant1 && spendLimitCurrencyVariant1 != null) + { + return spendLimitCurrencyVariant1(SpendLimitCurrencyVariant1!); + } + else if (IsEnum && @enum != null) + { + return @enum(Enum!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? spendLimitCurrencyVariant1 = null, + + global::System.Action? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSpendLimitCurrencyVariant1) + { + spendLimitCurrencyVariant1?.Invoke(SpendLimitCurrencyVariant1!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? spendLimitCurrencyVariant1 = null, + global::System.Action? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSpendLimitCurrencyVariant1) + { + spendLimitCurrencyVariant1?.Invoke(SpendLimitCurrencyVariant1!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + SpendLimitCurrencyVariant1, + typeof(string), + Enum, + typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(SpendLimitCurrency other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(SpendLimitCurrencyVariant1, other.SpendLimitCurrencyVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) + ; + } + + /// + /// + /// + public static bool operator ==(SpendLimitCurrency obj1, SpendLimitCurrency obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(SpendLimitCurrency obj1, SpendLimitCurrency obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is SpendLimitCurrency o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrencyEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrencyEnum.g.cs new file mode 100644 index 00000000..7d6891d9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrencyEnum.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum SpendLimitCurrencyEnum + { + /// + /// + /// + Usd, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SpendLimitCurrencyEnumExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SpendLimitCurrencyEnum value) + { + return value switch + { + SpendLimitCurrencyEnum.Usd => "USD", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SpendLimitCurrencyEnum? ToEnum(string value) + { + return value switch + { + "USD" => SpendLimitCurrencyEnum.Usd, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcement.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcement.Json.g.cs new file mode 100644 index 00000000..86222247 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcement.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class SpendLimitEnforcement + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.SpendLimitEnforcement? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.SpendLimitEnforcement), + jsonSerializerContext) as global::tryAGI.OpenAI.SpendLimitEnforcement; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.SpendLimitEnforcement? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.SpendLimitEnforcement? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.SpendLimitEnforcement), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.SpendLimitEnforcement; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcement.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcement.g.cs new file mode 100644 index 00000000..cdd77249 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcement.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The current enforcement state of a hard spend limit. + /// + public sealed partial class SpendLimitEnforcement + { + /// + /// Whether the hard spend limit is currently enforcing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.SpendLimitEnforcementStatus Status { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether the hard spend limit is currently enforcing. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SpendLimitEnforcement( + global::tryAGI.OpenAI.SpendLimitEnforcementStatus status) + { + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public SpendLimitEnforcement() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.Json.g.cs new file mode 100644 index 00000000..2412665d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct SpendLimitEnforcementStatus + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.SpendLimitEnforcementStatus? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatus), + jsonSerializerContext) as global::tryAGI.OpenAI.SpendLimitEnforcementStatus?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.SpendLimitEnforcementStatus? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.SpendLimitEnforcementStatus? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatus), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.SpendLimitEnforcementStatus?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.g.cs new file mode 100644 index 00000000..8a3b9320 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct SpendLimitEnforcementStatus : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? SpendLimitEnforcementStatusVariant1 { get; init; } +#else + public string? SpendLimitEnforcementStatusVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SpendLimitEnforcementStatusVariant1))] +#endif + public bool IsSpendLimitEnforcementStatusVariant1 => SpendLimitEnforcementStatusVariant1 != null; + + /// + /// + /// + public bool TryPickSpendLimitEnforcementStatusVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = SpendLimitEnforcementStatusVariant1; + return IsSpendLimitEnforcementStatusVariant1; + } + + /// + /// + /// + public string PickSpendLimitEnforcementStatusVariant1() => IsSpendLimitEnforcementStatusVariant1 + ? SpendLimitEnforcementStatusVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'SpendLimitEnforcementStatusVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Enum { get; init; } +#else + public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Enum { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] +#endif + public bool IsEnum => Enum != null; + + /// + /// + /// + public bool TryPickEnum( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? value) + { + value = Enum; + return IsEnum; + } + + /// + /// + /// + public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum PickEnum() => IsEnum + ? Enum!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator SpendLimitEnforcementStatus(string value) => new SpendLimitEnforcementStatus((string?)value); + + /// + /// + /// + public static implicit operator string?(SpendLimitEnforcementStatus @this) => @this.SpendLimitEnforcementStatusVariant1; + + /// + /// + /// + public SpendLimitEnforcementStatus(string? value) + { + SpendLimitEnforcementStatusVariant1 = value; + } + + /// + /// + /// + public static SpendLimitEnforcementStatus FromSpendLimitEnforcementStatusVariant1(string? value) => new SpendLimitEnforcementStatus(value); + + /// + /// + /// + public static implicit operator SpendLimitEnforcementStatus(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum value) => new SpendLimitEnforcementStatus((global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum?(SpendLimitEnforcementStatus @this) => @this.Enum; + + /// + /// + /// + public SpendLimitEnforcementStatus(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? value) + { + Enum = value; + } + + /// + /// + /// + public static SpendLimitEnforcementStatus FromEnum(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? value) => new SpendLimitEnforcementStatus(value); + + /// + /// + /// + public SpendLimitEnforcementStatus( + string? spendLimitEnforcementStatusVariant1, + global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? @enum + ) + { + SpendLimitEnforcementStatusVariant1 = spendLimitEnforcementStatusVariant1; + Enum = @enum; + } + + /// + /// + /// + public object? Object => + Enum as object ?? + SpendLimitEnforcementStatusVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + SpendLimitEnforcementStatusVariant1?.ToString() ?? + Enum?.ToValueString() + ; + + /// + /// + /// + public bool Validate() + { + return IsSpendLimitEnforcementStatusVariant1 || IsEnum; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? spendLimitEnforcementStatusVariant1 = null, + global::System.Func? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSpendLimitEnforcementStatusVariant1 && spendLimitEnforcementStatusVariant1 != null) + { + return spendLimitEnforcementStatusVariant1(SpendLimitEnforcementStatusVariant1!); + } + else if (IsEnum && @enum != null) + { + return @enum(Enum!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? spendLimitEnforcementStatusVariant1 = null, + + global::System.Action? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSpendLimitEnforcementStatusVariant1) + { + spendLimitEnforcementStatusVariant1?.Invoke(SpendLimitEnforcementStatusVariant1!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? spendLimitEnforcementStatusVariant1 = null, + global::System.Action? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSpendLimitEnforcementStatusVariant1) + { + spendLimitEnforcementStatusVariant1?.Invoke(SpendLimitEnforcementStatusVariant1!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + SpendLimitEnforcementStatusVariant1, + typeof(string), + Enum, + typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(SpendLimitEnforcementStatus other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(SpendLimitEnforcementStatusVariant1, other.SpendLimitEnforcementStatusVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) + ; + } + + /// + /// + /// + public static bool operator ==(SpendLimitEnforcementStatus obj1, SpendLimitEnforcementStatus obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(SpendLimitEnforcementStatus obj1, SpendLimitEnforcementStatus obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is SpendLimitEnforcementStatus o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatusEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatusEnum.g.cs new file mode 100644 index 00000000..a738eda9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatusEnum.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum SpendLimitEnforcementStatusEnum + { + /// + /// + /// + Enforcing, + /// + /// + /// + Inactive, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SpendLimitEnforcementStatusEnumExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SpendLimitEnforcementStatusEnum value) + { + return value switch + { + SpendLimitEnforcementStatusEnum.Enforcing => "enforcing", + SpendLimitEnforcementStatusEnum.Inactive => "inactive", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SpendLimitEnforcementStatusEnum? ToEnum(string value) + { + return value switch + { + "enforcing" => SpendLimitEnforcementStatusEnum.Enforcing, + "inactive" => SpendLimitEnforcementStatusEnum.Inactive, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.Json.g.cs new file mode 100644 index 00000000..573433e5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct SpendLimitInterval + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.SpendLimitInterval? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.SpendLimitInterval), + jsonSerializerContext) as global::tryAGI.OpenAI.SpendLimitInterval?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.SpendLimitInterval? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.SpendLimitInterval? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.SpendLimitInterval), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.SpendLimitInterval?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.g.cs new file mode 100644 index 00000000..b9833c5b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct SpendLimitInterval : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? SpendLimitIntervalVariant1 { get; init; } +#else + public string? SpendLimitIntervalVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SpendLimitIntervalVariant1))] +#endif + public bool IsSpendLimitIntervalVariant1 => SpendLimitIntervalVariant1 != null; + + /// + /// + /// + public bool TryPickSpendLimitIntervalVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = SpendLimitIntervalVariant1; + return IsSpendLimitIntervalVariant1; + } + + /// + /// + /// + public string PickSpendLimitIntervalVariant1() => IsSpendLimitIntervalVariant1 + ? SpendLimitIntervalVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'SpendLimitIntervalVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.SpendLimitIntervalEnum? Enum { get; init; } +#else + public global::tryAGI.OpenAI.SpendLimitIntervalEnum? Enum { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] +#endif + public bool IsEnum => Enum != null; + + /// + /// + /// + public bool TryPickEnum( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.SpendLimitIntervalEnum? value) + { + value = Enum; + return IsEnum; + } + + /// + /// + /// + public global::tryAGI.OpenAI.SpendLimitIntervalEnum PickEnum() => IsEnum + ? Enum!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator SpendLimitInterval(string value) => new SpendLimitInterval((string?)value); + + /// + /// + /// + public static implicit operator string?(SpendLimitInterval @this) => @this.SpendLimitIntervalVariant1; + + /// + /// + /// + public SpendLimitInterval(string? value) + { + SpendLimitIntervalVariant1 = value; + } + + /// + /// + /// + public static SpendLimitInterval FromSpendLimitIntervalVariant1(string? value) => new SpendLimitInterval(value); + + /// + /// + /// + public static implicit operator SpendLimitInterval(global::tryAGI.OpenAI.SpendLimitIntervalEnum value) => new SpendLimitInterval((global::tryAGI.OpenAI.SpendLimitIntervalEnum?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.SpendLimitIntervalEnum?(SpendLimitInterval @this) => @this.Enum; + + /// + /// + /// + public SpendLimitInterval(global::tryAGI.OpenAI.SpendLimitIntervalEnum? value) + { + Enum = value; + } + + /// + /// + /// + public static SpendLimitInterval FromEnum(global::tryAGI.OpenAI.SpendLimitIntervalEnum? value) => new SpendLimitInterval(value); + + /// + /// + /// + public SpendLimitInterval( + string? spendLimitIntervalVariant1, + global::tryAGI.OpenAI.SpendLimitIntervalEnum? @enum + ) + { + SpendLimitIntervalVariant1 = spendLimitIntervalVariant1; + Enum = @enum; + } + + /// + /// + /// + public object? Object => + Enum as object ?? + SpendLimitIntervalVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + SpendLimitIntervalVariant1?.ToString() ?? + Enum?.ToValueString() + ; + + /// + /// + /// + public bool Validate() + { + return IsSpendLimitIntervalVariant1 || IsEnum; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? spendLimitIntervalVariant1 = null, + global::System.Func? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSpendLimitIntervalVariant1 && spendLimitIntervalVariant1 != null) + { + return spendLimitIntervalVariant1(SpendLimitIntervalVariant1!); + } + else if (IsEnum && @enum != null) + { + return @enum(Enum!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? spendLimitIntervalVariant1 = null, + + global::System.Action? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSpendLimitIntervalVariant1) + { + spendLimitIntervalVariant1?.Invoke(SpendLimitIntervalVariant1!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? spendLimitIntervalVariant1 = null, + global::System.Action? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSpendLimitIntervalVariant1) + { + spendLimitIntervalVariant1?.Invoke(SpendLimitIntervalVariant1!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + SpendLimitIntervalVariant1, + typeof(string), + Enum, + typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(SpendLimitInterval other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(SpendLimitIntervalVariant1, other.SpendLimitIntervalVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) + ; + } + + /// + /// + /// + public static bool operator ==(SpendLimitInterval obj1, SpendLimitInterval obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(SpendLimitInterval obj1, SpendLimitInterval obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is SpendLimitInterval o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitIntervalEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitIntervalEnum.g.cs new file mode 100644 index 00000000..aaab05c3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitIntervalEnum.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum SpendLimitIntervalEnum + { + /// + /// + /// + Month, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SpendLimitIntervalEnumExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SpendLimitIntervalEnum value) + { + return value switch + { + SpendLimitIntervalEnum.Month => "month", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SpendLimitIntervalEnum? ToEnum(string value) + { + return value switch + { + "month" => SpendLimitIntervalEnum.Month, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBody.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBody.Json.g.cs new file mode 100644 index 00000000..47f9136e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBody.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class UpdateOrganizationSpendLimitBody + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody), + jsonSerializerContext) as global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBody.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBody.g.cs new file mode 100644 index 00000000..7be4dc90 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBody.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Parameters for the hard spend limit you want to create or replace. + /// + public sealed partial class UpdateOrganizationSpendLimitBody + { + /// + /// The hard spend limit amount, in cents. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("threshold_amount")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ThresholdAmount { get; set; } + + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("currency")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyCurrencyJsonConverter))] + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency Currency { get; set; } + + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interval")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UpdateOrganizationSpendLimitBodyIntervalJsonConverter))] + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval Interval { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The hard spend limit amount, in cents. + /// + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateOrganizationSpendLimitBody( + int thresholdAmount, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency currency, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval interval) + { + this.ThresholdAmount = thresholdAmount; + this.Currency = currency; + this.Interval = interval; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateOrganizationSpendLimitBody() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBodyCurrency.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBodyCurrency.g.cs new file mode 100644 index 00000000..4edaa760 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBodyCurrency.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + public enum UpdateOrganizationSpendLimitBodyCurrency + { + /// + /// + /// + Usd, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateOrganizationSpendLimitBodyCurrencyExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateOrganizationSpendLimitBodyCurrency value) + { + return value switch + { + UpdateOrganizationSpendLimitBodyCurrency.Usd => "USD", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateOrganizationSpendLimitBodyCurrency? ToEnum(string value) + { + return value switch + { + "USD" => UpdateOrganizationSpendLimitBodyCurrency.Usd, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBodyInterval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBodyInterval.g.cs new file mode 100644 index 00000000..4e9a73c5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateOrganizationSpendLimitBodyInterval.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + public enum UpdateOrganizationSpendLimitBodyInterval + { + /// + /// + /// + Month, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateOrganizationSpendLimitBodyIntervalExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateOrganizationSpendLimitBodyInterval value) + { + return value switch + { + UpdateOrganizationSpendLimitBodyInterval.Month => "month", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateOrganizationSpendLimitBodyInterval? ToEnum(string value) + { + return value switch + { + "month" => UpdateOrganizationSpendLimitBodyInterval.Month, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBody.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBody.Json.g.cs new file mode 100644 index 00000000..3cec743f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBody.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class UpdateProjectSpendLimitBody + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.UpdateProjectSpendLimitBody), + jsonSerializerContext) as global::tryAGI.OpenAI.UpdateProjectSpendLimitBody; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.UpdateProjectSpendLimitBody), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.UpdateProjectSpendLimitBody; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBody.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBody.g.cs new file mode 100644 index 00000000..113ced0f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBody.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Parameters for the hard spend limit you want to create or replace. + /// + public sealed partial class UpdateProjectSpendLimitBody + { + /// + /// The hard spend limit amount, in cents. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("threshold_amount")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ThresholdAmount { get; set; } + + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("currency")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyCurrencyJsonConverter))] + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency Currency { get; set; } + + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interval")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UpdateProjectSpendLimitBodyIntervalJsonConverter))] + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval Interval { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The hard spend limit amount, in cents. + /// + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateProjectSpendLimitBody( + int thresholdAmount, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency currency, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval interval) + { + this.ThresholdAmount = thresholdAmount; + this.Currency = currency; + this.Interval = interval; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateProjectSpendLimitBody() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBodyCurrency.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBodyCurrency.g.cs new file mode 100644 index 00000000..26722c69 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBodyCurrency.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + public enum UpdateProjectSpendLimitBodyCurrency + { + /// + /// + /// + Usd, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateProjectSpendLimitBodyCurrencyExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateProjectSpendLimitBodyCurrency value) + { + return value switch + { + UpdateProjectSpendLimitBodyCurrency.Usd => "USD", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateProjectSpendLimitBodyCurrency? ToEnum(string value) + { + return value switch + { + "USD" => UpdateProjectSpendLimitBodyCurrency.Usd, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBodyInterval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBodyInterval.g.cs new file mode 100644 index 00000000..7f3f79ba --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateProjectSpendLimitBodyInterval.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + public enum UpdateProjectSpendLimitBodyInterval + { + /// + /// + /// + Month, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateProjectSpendLimitBodyIntervalExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateProjectSpendLimitBodyInterval value) + { + return value switch + { + UpdateProjectSpendLimitBodyInterval.Month => "month", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateProjectSpendLimitBodyInterval? ToEnum(string value) + { + return value switch + { + "month" => UpdateProjectSpendLimitBodyInterval.Month, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteOrganizationSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteOrganizationSpendLimit.g.cs new file mode 100644 index 00000000..cf0532d3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteOrganizationSpendLimit.g.cs @@ -0,0 +1,417 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class OpenAiClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteOrganizationSpendLimitSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteOrganizationSpendLimitSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_DeleteOrganizationSpendLimitSecurityRequirement0, + }; + partial void PrepareDeleteOrganizationSpendLimitArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareDeleteOrganizationSpendLimitRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessDeleteOrganizationSpendLimitResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteOrganizationSpendLimitResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete the organization's hard spend limit. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DeleteOrganizationSpendLimitAsync( + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DeleteOrganizationSpendLimitAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Delete the organization's hard spend limit. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> DeleteOrganizationSpendLimitAsResponseAsync( + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteOrganizationSpendLimitArguments( + httpClient: HttpClient); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteOrganizationSpendLimitSecurityRequirements, + operationName: "DeleteOrganizationSpendLimitAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: "/organization/spend_limit", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteOrganizationSpendLimitRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteOrganizationSpendLimit", + methodName: "DeleteOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteOrganizationSpendLimit", + methodName: "DeleteOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteOrganizationSpendLimit", + methodName: "DeleteOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeleteOrganizationSpendLimitResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteOrganizationSpendLimit", + methodName: "DeleteOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteOrganizationSpendLimit", + methodName: "DeleteOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteOrganizationSpendLimitResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteProjectSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteProjectSpendLimit.g.cs new file mode 100644 index 00000000..17bc0c1f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteProjectSpendLimit.g.cs @@ -0,0 +1,430 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class OpenAiClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteProjectSpendLimitSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteProjectSpendLimitSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_DeleteProjectSpendLimitSecurityRequirement0, + }; + partial void PrepareDeleteProjectSpendLimitArguments( + global::System.Net.Http.HttpClient httpClient, + ref string projectId); + partial void PrepareDeleteProjectSpendLimitRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string projectId); + partial void ProcessDeleteProjectSpendLimitResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteProjectSpendLimitResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DeleteProjectSpendLimitAsync( + string projectId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DeleteProjectSpendLimitAsResponseAsync( + projectId: projectId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Delete a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> DeleteProjectSpendLimitAsResponseAsync( + string projectId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteProjectSpendLimitArguments( + httpClient: HttpClient, + projectId: ref projectId); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteProjectSpendLimitSecurityRequirements, + operationName: "DeleteProjectSpendLimitAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: $"/organization/projects/{projectId}/spend_limit", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteProjectSpendLimitRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + projectId: projectId!); + + global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteProjectSpendLimit", + methodName: "DeleteProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteProjectSpendLimit", + methodName: "DeleteProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteProjectSpendLimit", + methodName: "DeleteProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeleteProjectSpendLimitResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteProjectSpendLimit", + methodName: "DeleteProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteProjectSpendLimit", + methodName: "DeleteProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteProjectSpendLimitResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveOrganizationSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveOrganizationSpendLimit.g.cs new file mode 100644 index 00000000..942478f0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveOrganizationSpendLimit.g.cs @@ -0,0 +1,417 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class OpenAiClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveOrganizationSpendLimitSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveOrganizationSpendLimitSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_RetrieveOrganizationSpendLimitSecurityRequirement0, + }; + partial void PrepareRetrieveOrganizationSpendLimitArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareRetrieveOrganizationSpendLimitRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessRetrieveOrganizationSpendLimitResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessRetrieveOrganizationSpendLimitResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get the organization's hard spend limit. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task RetrieveOrganizationSpendLimitAsync( + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await RetrieveOrganizationSpendLimitAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get the organization's hard spend limit. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> RetrieveOrganizationSpendLimitAsResponseAsync( + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareRetrieveOrganizationSpendLimitArguments( + httpClient: HttpClient); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RetrieveOrganizationSpendLimitSecurityRequirements, + operationName: "RetrieveOrganizationSpendLimitAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: "/organization/spend_limit", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareRetrieveOrganizationSpendLimitRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveOrganizationSpendLimit", + methodName: "RetrieveOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveOrganizationSpendLimit", + methodName: "RetrieveOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveOrganizationSpendLimit", + methodName: "RetrieveOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessRetrieveOrganizationSpendLimitResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveOrganizationSpendLimit", + methodName: "RetrieveOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveOrganizationSpendLimit", + methodName: "RetrieveOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessRetrieveOrganizationSpendLimitResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::tryAGI.OpenAI.OrganizationSpendLimitResource.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.OrganizationSpendLimitResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveProjectSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveProjectSpendLimit.g.cs new file mode 100644 index 00000000..80b59b53 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveProjectSpendLimit.g.cs @@ -0,0 +1,430 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class OpenAiClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveProjectSpendLimitSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveProjectSpendLimitSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_RetrieveProjectSpendLimitSecurityRequirement0, + }; + partial void PrepareRetrieveProjectSpendLimitArguments( + global::System.Net.Http.HttpClient httpClient, + ref string projectId); + partial void PrepareRetrieveProjectSpendLimitRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string projectId); + partial void ProcessRetrieveProjectSpendLimitResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessRetrieveProjectSpendLimitResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task RetrieveProjectSpendLimitAsync( + string projectId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await RetrieveProjectSpendLimitAsResponseAsync( + projectId: projectId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> RetrieveProjectSpendLimitAsResponseAsync( + string projectId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareRetrieveProjectSpendLimitArguments( + httpClient: HttpClient, + projectId: ref projectId); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RetrieveProjectSpendLimitSecurityRequirements, + operationName: "RetrieveProjectSpendLimitAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: $"/organization/projects/{projectId}/spend_limit", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareRetrieveProjectSpendLimitRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + projectId: projectId!); + + global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveProjectSpendLimit", + methodName: "RetrieveProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveProjectSpendLimit", + methodName: "RetrieveProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveProjectSpendLimit", + methodName: "RetrieveProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessRetrieveProjectSpendLimitResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveProjectSpendLimit", + methodName: "RetrieveProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveProjectSpendLimit", + methodName: "RetrieveProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessRetrieveProjectSpendLimitResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::tryAGI.OpenAI.ProjectSpendLimitResource.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.ProjectSpendLimitResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateOrganizationSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateOrganizationSpendLimit.g.cs new file mode 100644 index 00000000..223d9131 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateOrganizationSpendLimit.g.cs @@ -0,0 +1,471 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class OpenAiClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateOrganizationSpendLimitSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateOrganizationSpendLimitSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_UpdateOrganizationSpendLimitSecurityRequirement0, + }; + partial void PrepareUpdateOrganizationSpendLimitArguments( + global::System.Net.Http.HttpClient httpClient, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody request); + partial void PrepareUpdateOrganizationSpendLimitRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody request); + partial void ProcessUpdateOrganizationSpendLimitResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateOrganizationSpendLimitResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create or replace the organization's hard spend limit. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateOrganizationSpendLimitAsync( + + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateOrganizationSpendLimitAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create or replace the organization's hard spend limit. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> UpdateOrganizationSpendLimitAsResponseAsync( + + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateOrganizationSpendLimitArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateOrganizationSpendLimitSecurityRequirements, + operationName: "UpdateOrganizationSpendLimitAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: "/organization/spend_limit", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateOrganizationSpendLimitRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateOrganizationSpendLimit", + methodName: "UpdateOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateOrganizationSpendLimit", + methodName: "UpdateOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateOrganizationSpendLimit", + methodName: "UpdateOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateOrganizationSpendLimitResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateOrganizationSpendLimit", + methodName: "UpdateOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateOrganizationSpendLimit", + methodName: "UpdateOrganizationSpendLimitAsync", + pathTemplate: "\"/organization/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateOrganizationSpendLimitResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::tryAGI.OpenAI.OrganizationSpendLimitResource.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.OrganizationSpendLimitResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create or replace the organization's hard spend limit. + /// + /// + /// The hard spend limit amount, in cents. + /// + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateOrganizationSpendLimitAsync( + int thresholdAmount, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency currency = default, + global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval interval = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody + { + ThresholdAmount = thresholdAmount, + Currency = currency, + Interval = interval, + }; + + return await UpdateOrganizationSpendLimitAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateProjectSpendLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateProjectSpendLimit.g.cs new file mode 100644 index 00000000..901c8d93 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateProjectSpendLimit.g.cs @@ -0,0 +1,489 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class OpenAiClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateProjectSpendLimitSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateProjectSpendLimitSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_UpdateProjectSpendLimitSecurityRequirement0, + }; + partial void PrepareUpdateProjectSpendLimitArguments( + global::System.Net.Http.HttpClient httpClient, + ref string projectId, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBody request); + partial void PrepareUpdateProjectSpendLimitRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string projectId, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBody request); + partial void ProcessUpdateProjectSpendLimitResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateProjectSpendLimitResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create or replace a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateProjectSpendLimitAsync( + string projectId, + + global::tryAGI.OpenAI.UpdateProjectSpendLimitBody request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateProjectSpendLimitAsResponseAsync( + projectId: projectId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create or replace a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> UpdateProjectSpendLimitAsResponseAsync( + string projectId, + + global::tryAGI.OpenAI.UpdateProjectSpendLimitBody request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateProjectSpendLimitArguments( + httpClient: HttpClient, + projectId: ref projectId, + request: request); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateProjectSpendLimitSecurityRequirements, + operationName: "UpdateProjectSpendLimitAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: $"/organization/projects/{projectId}/spend_limit", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateProjectSpendLimitRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + projectId: projectId!, + request: request); + + global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateProjectSpendLimit", + methodName: "UpdateProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateProjectSpendLimit", + methodName: "UpdateProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateProjectSpendLimit", + methodName: "UpdateProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateProjectSpendLimitResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateProjectSpendLimit", + methodName: "UpdateProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateProjectSpendLimit", + methodName: "UpdateProjectSpendLimitAsync", + pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateProjectSpendLimitResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::tryAGI.OpenAI.ProjectSpendLimitResource.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.ProjectSpendLimitResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create or replace a project's hard spend limit. + /// + /// + /// Example: proj_123 + /// + /// + /// The hard spend limit amount, in cents. + /// + /// + /// The currency for the threshold amount. Currently, only `USD` is supported. + /// + /// + /// The time interval for evaluating spend against the threshold. Currently, only `month` is supported. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateProjectSpendLimitAsync( + string projectId, + int thresholdAmount, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency currency = default, + global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval interval = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::tryAGI.OpenAI.UpdateProjectSpendLimitBody + { + ThresholdAmount = thresholdAmount, + Currency = currency, + Interval = interval, + }; + + return await UpdateProjectSpendLimitAsync( + projectId: projectId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml index 41ddf2d9..73aa312a 100644 --- a/src/libs/tryAGI.OpenAI/openapi.yaml +++ b/src/libs/tryAGI.OpenAI/openapi.yaml @@ -39141,6 +39141,672 @@ paths: "created_at": 1741900000, "metadata": {"topic": "project-x"} } + /organization/spend_limit: + get: + summary: Get the organization's hard spend limit. + operationId: Getorganizationspendlimit + parameters: [] + responses: + '200': + description: Hard spend limit retrieved successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationSpendLimitResource' + x-oaiMeta: + name: Retrieve organization spend limit + group: administration + examples: + request: + curl: | + curl https://api.openai.com/v1/organization/spend_limit \ + -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ + -H "Content-Type: application/json" + node.js: >- + import OpenAI from 'openai'; + + + const client = new OpenAI({ + adminAPIKey: process.env['OPENAI_ADMIN_KEY'], // This is the default and can be omitted + }); + + + const organizationSpendLimit = await + client.admin.organization.spendLimit.retrieve(); + + + console.log(organizationSpendLimit.currency); + python: >- + import os + + from openai import OpenAI + + + client = OpenAI( + admin_api_key=os.environ.get("OPENAI_ADMIN_KEY"), # This is the default and can be omitted + ) + + organization_spend_limit = + client.admin.organization.spend_limit.retrieve() + + print(organization_spend_limit.currency) + go: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/openai/openai-go\"\n\t\"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n\tclient := openai.NewClient(\n\t\toption.WithAdminAPIKey(\"My Admin API Key\"),\n\t)\n\torganizationSpendLimit, err := client.Admin.Organization.SpendLimit.Get(context.TODO())\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", organizationSpendLimit.Currency)\n}\n" + java: >- + package com.openai.example; + + + import com.openai.client.OpenAIClient; + + import com.openai.client.okhttp.OpenAIOkHttpClient; + + import + com.openai.models.admin.organization.spendlimit.OrganizationSpendLimit; + + import + com.openai.models.admin.organization.spendlimit.SpendLimitRetrieveParams; + + + public final class Main { + private Main() {} + + public static void main(String[] args) { + OpenAIClient client = OpenAIOkHttpClient.fromEnv(); + + OrganizationSpendLimit organizationSpendLimit = client.admin().organization().spendLimit().retrieve(); + } + } + ruby: >- + require "openai" + + + openai = OpenAI::Client.new(admin_api_key: "My Admin API Key") + + + organization_spend_limit = + openai.admin.organization.spend_limit.retrieve + + + puts(organization_spend_limit) + response: | + { + "object": "organization.spend_limit", + "threshold_amount": 10000, + "currency": "USD", + "interval": "month", + "enforcement": { + "status": "enforcing" + } + } + security: + - AdminApiKeyAuth: [] + post: + summary: Create or replace the organization's hard spend limit. + operationId: Updateorganizationspendlimit + parameters: [] + requestBody: + description: Parameters for the hard spend limit you want to create or replace. + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateOrganizationSpendLimitBody' + required: true + responses: + '200': + description: Hard spend limit created or replaced successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationSpendLimitResource' + x-oaiMeta: + name: Update organization spend limit + group: administration + examples: + request: + curl: | + curl -X POST https://api.openai.com/v1/organization/spend_limit \ + -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ + -H "Content-Type: application/json" \ + -d '{ + "threshold_amount": 10000, + "currency": "USD", + "interval": "month" + }' + node.js: >- + import OpenAI from 'openai'; + + + const client = new OpenAI({ + adminAPIKey: process.env['OPENAI_ADMIN_KEY'], // This is the default and can be omitted + }); + + + const organizationSpendLimit = await + client.admin.organization.spendLimit.update({ + currency: 'USD', + interval: 'month', + threshold_amount: 1, + }); + + + console.log(organizationSpendLimit.currency); + python: >- + import os + + from openai import OpenAI + + + client = OpenAI( + admin_api_key=os.environ.get("OPENAI_ADMIN_KEY"), # This is the default and can be omitted + ) + + organization_spend_limit = + client.admin.organization.spend_limit.update( + currency="USD", + interval="month", + threshold_amount=1, + ) + + print(organization_spend_limit.currency) + go: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/openai/openai-go\"\n\t\"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n\tclient := openai.NewClient(\n\t\toption.WithAdminAPIKey(\"My Admin API Key\"),\n\t)\n\torganizationSpendLimit, err := client.Admin.Organization.SpendLimit.Update(context.TODO(), openai.AdminOrganizationSpendLimitUpdateParams{\n\t\tCurrency: openai.AdminOrganizationSpendLimitUpdateParamsCurrencyUsd,\n\t\tInterval: openai.AdminOrganizationSpendLimitUpdateParamsIntervalMonth,\n\t\tThresholdAmount: 1,\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", organizationSpendLimit.Currency)\n}\n" + java: >- + package com.openai.example; + + + import com.openai.client.OpenAIClient; + + import com.openai.client.okhttp.OpenAIOkHttpClient; + + import + com.openai.models.admin.organization.spendlimit.OrganizationSpendLimit; + + import + com.openai.models.admin.organization.spendlimit.SpendLimitUpdateParams; + + + public final class Main { + private Main() {} + + public static void main(String[] args) { + OpenAIClient client = OpenAIOkHttpClient.fromEnv(); + + SpendLimitUpdateParams params = SpendLimitUpdateParams.builder() + .currency(SpendLimitUpdateParams.Currency.USD) + .interval(SpendLimitUpdateParams.Interval.MONTH) + .thresholdAmount(1L) + .build(); + OrganizationSpendLimit organizationSpendLimit = client.admin().organization().spendLimit().update(params); + } + } + ruby: >- + require "openai" + + + openai = OpenAI::Client.new(admin_api_key: "My Admin API Key") + + + organization_spend_limit = + openai.admin.organization.spend_limit.update(currency: :USD, + interval: :month, threshold_amount: 1) + + + puts(organization_spend_limit) + response: | + { + "object": "organization.spend_limit", + "threshold_amount": 10000, + "currency": "USD", + "interval": "month", + "enforcement": { + "status": "enforcing" + } + } + security: + - AdminApiKeyAuth: [] + delete: + summary: Delete the organization's hard spend limit. + operationId: Deleteorganizationspendlimit + parameters: [] + responses: + '200': + description: Hard spend limit deleted successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationSpendLimitDeletedResource' + x-oaiMeta: + name: Delete organization spend limit + group: administration + examples: + request: + curl: > + curl -X DELETE https://api.openai.com/v1/organization/spend_limit + \ + -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ + -H "Content-Type: application/json" + node.js: >- + import OpenAI from 'openai'; + + + const client = new OpenAI({ + adminAPIKey: process.env['OPENAI_ADMIN_KEY'], // This is the default and can be omitted + }); + + + const organizationSpendLimitDeleted = await + client.admin.organization.spendLimit.delete(); + + + console.log(organizationSpendLimitDeleted.deleted); + python: >- + import os + + from openai import OpenAI + + + client = OpenAI( + admin_api_key=os.environ.get("OPENAI_ADMIN_KEY"), # This is the default and can be omitted + ) + + organization_spend_limit_deleted = + client.admin.organization.spend_limit.delete() + + print(organization_spend_limit_deleted.deleted) + go: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/openai/openai-go\"\n\t\"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n\tclient := openai.NewClient(\n\t\toption.WithAdminAPIKey(\"My Admin API Key\"),\n\t)\n\torganizationSpendLimitDeleted, err := client.Admin.Organization.SpendLimit.Delete(context.TODO())\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", organizationSpendLimitDeleted.Deleted)\n}\n" + java: >- + package com.openai.example; + + + import com.openai.client.OpenAIClient; + + import com.openai.client.okhttp.OpenAIOkHttpClient; + + import + com.openai.models.admin.organization.spendlimit.OrganizationSpendLimitDeleted; + + import + com.openai.models.admin.organization.spendlimit.SpendLimitDeleteParams; + + + public final class Main { + private Main() {} + + public static void main(String[] args) { + OpenAIClient client = OpenAIOkHttpClient.fromEnv(); + + OrganizationSpendLimitDeleted organizationSpendLimitDeleted = client.admin().organization().spendLimit().delete(); + } + } + ruby: >- + require "openai" + + + openai = OpenAI::Client.new(admin_api_key: "My Admin API Key") + + + organization_spend_limit_deleted = + openai.admin.organization.spend_limit.delete + + + puts(organization_spend_limit_deleted) + response: | + { + "object": "organization.spend_limit.deleted", + "deleted": true + } + security: + - AdminApiKeyAuth: [] + /organization/projects/{project_id}/spend_limit: + get: + summary: Get a project's hard spend limit. + operationId: Getprojectspendlimit + parameters: + - name: project_id + in: path + description: The ID of the project whose hard spend limit is being managed. + required: true + schema: + example: proj_123 + type: string + responses: + '200': + description: Hard spend limit retrieved successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectSpendLimitResource' + x-oaiMeta: + name: Retrieve project spend limit + group: administration + examples: + request: + curl: > + curl + https://api.openai.com/v1/organization/projects/proj_abc/spend_limit + \ + -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ + -H "Content-Type: application/json" + node.js: >- + import OpenAI from 'openai'; + + + const client = new OpenAI({ + adminAPIKey: process.env['OPENAI_ADMIN_KEY'], // This is the default and can be omitted + }); + + + const projectSpendLimit = await + client.admin.organization.projects.spendLimit.retrieve('proj_123'); + + + console.log(projectSpendLimit.currency); + python: >- + import os + + from openai import OpenAI + + + client = OpenAI( + admin_api_key=os.environ.get("OPENAI_ADMIN_KEY"), # This is the default and can be omitted + ) + + project_spend_limit = + client.admin.organization.projects.spend_limit.retrieve( + "proj_123", + ) + + print(project_spend_limit.currency) + go: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/openai/openai-go\"\n\t\"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n\tclient := openai.NewClient(\n\t\toption.WithAdminAPIKey(\"My Admin API Key\"),\n\t)\n\tprojectSpendLimit, err := client.Admin.Organization.Projects.SpendLimit.Get(context.TODO(), \"proj_123\")\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", projectSpendLimit.Currency)\n}\n" + java: >- + package com.openai.example; + + + import com.openai.client.OpenAIClient; + + import com.openai.client.okhttp.OpenAIOkHttpClient; + + import + com.openai.models.admin.organization.projects.spendlimit.ProjectSpendLimit; + + import + com.openai.models.admin.organization.projects.spendlimit.SpendLimitRetrieveParams; + + + public final class Main { + private Main() {} + + public static void main(String[] args) { + OpenAIClient client = OpenAIOkHttpClient.fromEnv(); + + ProjectSpendLimit projectSpendLimit = client.admin().organization().projects().spendLimit().retrieve("proj_123"); + } + } + ruby: >- + require "openai" + + + openai = OpenAI::Client.new(admin_api_key: "My Admin API Key") + + + project_spend_limit = + openai.admin.organization.projects.spend_limit.retrieve("proj_123") + + + puts(project_spend_limit) + response: | + { + "object": "project.spend_limit", + "threshold_amount": 10000, + "currency": "USD", + "interval": "month", + "enforcement": { + "status": "enforcing" + } + } + security: + - AdminApiKeyAuth: [] + delete: + summary: Delete a project's hard spend limit. + operationId: Deleteprojectspendlimit + parameters: + - name: project_id + in: path + description: The ID of the project whose hard spend limit is being managed. + required: true + schema: + example: proj_123 + type: string + responses: + '200': + description: Hard spend limit deleted successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectSpendLimitDeletedResource' + x-oaiMeta: + name: Delete project spend limit + group: administration + examples: + request: + curl: > + curl -X DELETE + https://api.openai.com/v1/organization/projects/proj_abc/spend_limit + \ + -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ + -H "Content-Type: application/json" + node.js: >- + import OpenAI from 'openai'; + + + const client = new OpenAI({ + adminAPIKey: process.env['OPENAI_ADMIN_KEY'], // This is the default and can be omitted + }); + + + const projectSpendLimitDeleted = await + client.admin.organization.projects.spendLimit.delete( + 'proj_123', + ); + + + console.log(projectSpendLimitDeleted.deleted); + python: >- + import os + + from openai import OpenAI + + + client = OpenAI( + admin_api_key=os.environ.get("OPENAI_ADMIN_KEY"), # This is the default and can be omitted + ) + + project_spend_limit_deleted = + client.admin.organization.projects.spend_limit.delete( + "proj_123", + ) + + print(project_spend_limit_deleted.deleted) + go: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/openai/openai-go\"\n\t\"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n\tclient := openai.NewClient(\n\t\toption.WithAdminAPIKey(\"My Admin API Key\"),\n\t)\n\tprojectSpendLimitDeleted, err := client.Admin.Organization.Projects.SpendLimit.Delete(context.TODO(), \"proj_123\")\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", projectSpendLimitDeleted.Deleted)\n}\n" + java: >- + package com.openai.example; + + + import com.openai.client.OpenAIClient; + + import com.openai.client.okhttp.OpenAIOkHttpClient; + + import + com.openai.models.admin.organization.projects.spendlimit.ProjectSpendLimitDeleted; + + import + com.openai.models.admin.organization.projects.spendlimit.SpendLimitDeleteParams; + + + public final class Main { + private Main() {} + + public static void main(String[] args) { + OpenAIClient client = OpenAIOkHttpClient.fromEnv(); + + ProjectSpendLimitDeleted projectSpendLimitDeleted = client.admin().organization().projects().spendLimit().delete("proj_123"); + } + } + ruby: >- + require "openai" + + + openai = OpenAI::Client.new(admin_api_key: "My Admin API Key") + + + project_spend_limit_deleted = + openai.admin.organization.projects.spend_limit.delete("proj_123") + + + puts(project_spend_limit_deleted) + response: | + { + "object": "project.spend_limit.deleted", + "deleted": true + } + security: + - AdminApiKeyAuth: [] + post: + summary: Create or replace a project's hard spend limit. + operationId: Updateprojectspendlimit + parameters: + - name: project_id + in: path + description: The ID of the project whose hard spend limit is being managed. + required: true + schema: + example: proj_123 + type: string + requestBody: + description: Parameters for the hard spend limit you want to create or replace. + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateProjectSpendLimitBody' + required: true + responses: + '200': + description: Hard spend limit created or replaced successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectSpendLimitResource' + x-oaiMeta: + name: Update project spend limit + group: administration + examples: + request: + curl: > + curl -X POST + https://api.openai.com/v1/organization/projects/proj_abc/spend_limit + \ + -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ + -H "Content-Type: application/json" \ + -d '{ + "threshold_amount": 10000, + "currency": "USD", + "interval": "month" + }' + node.js: >- + import OpenAI from 'openai'; + + + const client = new OpenAI({ + adminAPIKey: process.env['OPENAI_ADMIN_KEY'], // This is the default and can be omitted + }); + + + const projectSpendLimit = await + client.admin.organization.projects.spendLimit.update('proj_123', { + currency: 'USD', + interval: 'month', + threshold_amount: 1, + }); + + + console.log(projectSpendLimit.currency); + python: >- + import os + + from openai import OpenAI + + + client = OpenAI( + admin_api_key=os.environ.get("OPENAI_ADMIN_KEY"), # This is the default and can be omitted + ) + + project_spend_limit = + client.admin.organization.projects.spend_limit.update( + project_id="proj_123", + currency="USD", + interval="month", + threshold_amount=1, + ) + + print(project_spend_limit.currency) + go: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/openai/openai-go\"\n\t\"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n\tclient := openai.NewClient(\n\t\toption.WithAdminAPIKey(\"My Admin API Key\"),\n\t)\n\tprojectSpendLimit, err := client.Admin.Organization.Projects.SpendLimit.Update(\n\t\tcontext.TODO(),\n\t\t\"proj_123\",\n\t\topenai.AdminOrganizationProjectSpendLimitUpdateParams{\n\t\t\tCurrency: openai.AdminOrganizationProjectSpendLimitUpdateParamsCurrencyUsd,\n\t\t\tInterval: openai.AdminOrganizationProjectSpendLimitUpdateParamsIntervalMonth,\n\t\t\tThresholdAmount: 1,\n\t\t},\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", projectSpendLimit.Currency)\n}\n" + java: >- + package com.openai.example; + + + import com.openai.client.OpenAIClient; + + import com.openai.client.okhttp.OpenAIOkHttpClient; + + import + com.openai.models.admin.organization.projects.spendlimit.ProjectSpendLimit; + + import + com.openai.models.admin.organization.projects.spendlimit.SpendLimitUpdateParams; + + + public final class Main { + private Main() {} + + public static void main(String[] args) { + OpenAIClient client = OpenAIOkHttpClient.fromEnv(); + + SpendLimitUpdateParams params = SpendLimitUpdateParams.builder() + .projectId("proj_123") + .currency(SpendLimitUpdateParams.Currency.USD) + .interval(SpendLimitUpdateParams.Interval.MONTH) + .thresholdAmount(1L) + .build(); + ProjectSpendLimit projectSpendLimit = client.admin().organization().projects().spendLimit().update(params); + } + } + ruby: >- + require "openai" + + + openai = OpenAI::Client.new(admin_api_key: "My Admin API Key") + + + project_spend_limit = + openai.admin.organization.projects.spend_limit.update( + "proj_123", + currency: :USD, + interval: :month, + threshold_amount: 1 + ) + + + puts(project_spend_limit) + response: | + { + "object": "project.spend_limit", + "threshold_amount": 10000, + "currency": "USD", + "interval": "month", + "enforcement": { + "status": "enforcing" + } + } + security: + - AdminApiKeyAuth: [] /organization/projects/{project_id}/service_accounts/{service_account_id}/api_keys: post: summary: Creates an API key for a service account in the project. @@ -87116,6 +87782,188 @@ components: - object - deleted - id + SpendLimitCurrency: + anyOf: + - type: string + - type: string + enum: + - USD + SpendLimitInterval: + anyOf: + - type: string + - type: string + enum: + - month + SpendLimitEnforcementStatus: + anyOf: + - type: string + - type: string + enum: + - inactive + - enforcing + SpendLimitEnforcement: + properties: + status: + $ref: '#/components/schemas/SpendLimitEnforcementStatus' + description: Whether the hard spend limit is currently enforcing. + type: object + required: + - status + description: The current enforcement state of a hard spend limit. + OrganizationSpendLimitResource: + properties: + object: + type: string + enum: + - organization.spend_limit + description: The object type, which is always `organization.spend_limit`. + default: organization.spend_limit + x-stainless-const: true + threshold_amount: + type: integer + description: The hard spend limit amount, in cents. + currency: + $ref: '#/components/schemas/SpendLimitCurrency' + description: >- + The currency for the threshold amount. Currently, only `USD` is + supported. + interval: + $ref: '#/components/schemas/SpendLimitInterval' + description: >- + The time interval for evaluating spend against the threshold. + Currently, only `month` is supported. + enforcement: + $ref: '#/components/schemas/SpendLimitEnforcement' + description: The current enforcement state of the hard spend limit. + type: object + required: + - object + - threshold_amount + - currency + - interval + - enforcement + description: Represents a hard spend limit configured at the organization level. + UpdateOrganizationSpendLimitBody: + properties: + threshold_amount: + type: integer + minimum: 1 + description: The hard spend limit amount, in cents. + currency: + type: string + enum: + - USD + description: >- + The currency for the threshold amount. Currently, only `USD` is + supported. + interval: + type: string + enum: + - month + description: >- + The time interval for evaluating spend against the threshold. + Currently, only `month` is supported. + type: object + required: + - threshold_amount + - currency + - interval + description: Parameters for the hard spend limit you want to create or replace. + OrganizationSpendLimitDeletedResource: + properties: + object: + type: string + enum: + - organization.spend_limit.deleted + description: The object type, which is always `organization.spend_limit.deleted`. + default: organization.spend_limit.deleted + x-stainless-const: true + deleted: + type: boolean + description: Whether the hard spend limit was deleted. + type: object + required: + - object + - deleted + description: >- + Confirmation payload returned after deleting an organization hard spend + limit. + ProjectSpendLimitResource: + properties: + object: + type: string + enum: + - project.spend_limit + description: The object type, which is always `project.spend_limit`. + default: project.spend_limit + x-stainless-const: true + threshold_amount: + type: integer + description: The hard spend limit amount, in cents. + currency: + $ref: '#/components/schemas/SpendLimitCurrency' + description: >- + The currency for the threshold amount. Currently, only `USD` is + supported. + interval: + $ref: '#/components/schemas/SpendLimitInterval' + description: >- + The time interval for evaluating spend against the threshold. + Currently, only `month` is supported. + enforcement: + $ref: '#/components/schemas/SpendLimitEnforcement' + description: The current enforcement state of the hard spend limit. + type: object + required: + - object + - threshold_amount + - currency + - interval + - enforcement + description: Represents a hard spend limit configured at the project level. + UpdateProjectSpendLimitBody: + properties: + threshold_amount: + type: integer + minimum: 1 + description: The hard spend limit amount, in cents. + currency: + type: string + enum: + - USD + description: >- + The currency for the threshold amount. Currently, only `USD` is + supported. + interval: + type: string + enum: + - month + description: >- + The time interval for evaluating spend against the threshold. + Currently, only `month` is supported. + type: object + required: + - threshold_amount + - currency + - interval + description: Parameters for the hard spend limit you want to create or replace. + ProjectSpendLimitDeletedResource: + properties: + object: + type: string + enum: + - project.spend_limit.deleted + description: The object type, which is always `project.spend_limit.deleted`. + default: project.spend_limit.deleted + x-stainless-const: true + deleted: + type: boolean + description: Whether the hard spend limit was deleted. + type: object + required: + - object + - deleted + description: Confirmation payload returned after deleting a project hard spend limit. CreateProjectServiceAccountApiKeyBody: properties: name: