diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs index 85c2755e7..5fcc85167 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs @@ -15,7 +15,7 @@ internal static partial class AudioCreateSpeechAsEventStreamCommandApiCommand Required = true, }; - private static Option Voice { get; } = new( + private static Option?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>> Voice { get; } = new( name: @"--voice") { Description = @"The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice object with an `id`, for example `{ ""id"": ""voice_1234"" }`. Previews of the voices are available in the [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).", diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs index b18600873..4e413dca2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs @@ -15,7 +15,7 @@ internal static partial class AudioCreateSpeechCommandApiCommand Required = true, }; - private static Option Voice { get; } = new( + private static Option?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>> Voice { get; } = new( name: @"--voice") { Description = @"The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice object with an `id`, for example `{ ""id"": ""voice_1234"" }`. Previews of the voices are available in the [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).", diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs index e6ded3c2b..f60a05c7d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs @@ -13,26 +13,6 @@ internal static partial class FilesDownloadFileCommandApiCommand Description = @"The ID of the file to use for this request.", }; - private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) - { - string? text = null; - CustomizeResponseText(parseResult, value, ref text); - if (!string.IsNullOrWhiteSpace(text)) - { - return text; - } - - var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) - { - }; - CustomizeResponseFormatHints(hints); - return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); - } - - static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text); - static partial void CustomizeResponseFormatHints(Dictionary hints); - - public static Command Create() { var command = new Command(@"download-file", @"Retrieve file content @@ -51,13 +31,7 @@ await CliRuntime.RunAsync(async () => fileId: fileId, cancellationToken: cancellationToken).ConfigureAwait(false); - - await CliRuntime.WriteResponseAsync( - parseResult, - response, - global::tryAGI.OpenAI.SourceGenerationContext.Default, - FormatResponse, - cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); return command; } diff --git a/src/libs/tryAGI.OpenAI/Generated/autosdk.generated-examples.json b/src/libs/tryAGI.OpenAI/Generated/autosdk.generated-examples.json index 9f844d58a..47b0eb1a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/autosdk.generated-examples.json +++ b/src/libs/tryAGI.OpenAI/Generated/autosdk.generated-examples.json @@ -6,7 +6,7 @@ "Slug": "cancelchatsessionmethod", "Description": "Cancel an active ChatKit session and return its most recent metadata.\n\nCancelling prevents new requests from using the issued client secret.", "Language": "http", - "Code": "### Cancel a ChatKit session\n# @name CancelChatSessionMethod\nPOST {{host}}/chatkit/sessions/{{session_id}}/cancel\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json", + "Code": "### Cancel a ChatKit session\n# @name CancelChatSessionMethod\nPOST {{host}}/chatkit/sessions/{{session_id}}/cancel\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 400\n# Description: The request is invalid or the required ChatKit beta header is missing or invalid.\n# Content-Type: application/json\n# 404\n# Description: The session was not found or is not accessible.\n# Content-Type: application/json\n# 429\n# Description: The request rate limit has been exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "CancelChatSessionMethod", "Setup": null @@ -17,7 +17,7 @@ "Slug": "createchatsessionmethod", "Description": "Create a ChatKit session.", "Language": "http", - "Code": "### Create a ChatKit session\n# @name CreateChatSessionMethod\nPOST {{host}}/chatkit/sessions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022workflow\u0022: {\n \u0022id\u0022: \u0022string\u0022,\n \u0022version\u0022: \u0022string\u0022,\n \u0022state_variables\u0022: {},\n \u0022tracing\u0022: {\n \u0022enabled\u0022: true\n }\n },\n \u0022user\u0022: \u0022string\u0022,\n \u0022expires_after\u0022: {\n \u0022anchor\u0022: \u0022created_at\u0022,\n \u0022seconds\u0022: 0\n },\n \u0022rate_limits\u0022: {\n \u0022max_requests_per_1_minute\u0022: 0\n },\n \u0022chatkit_configuration\u0022: {\n \u0022automatic_thread_titling\u0022: {\n \u0022enabled\u0022: true\n },\n \u0022file_upload\u0022: {\n \u0022enabled\u0022: true,\n \u0022max_file_size\u0022: 0,\n \u0022max_files\u0022: 0\n },\n \u0022history\u0022: {\n \u0022enabled\u0022: true,\n \u0022recent_threads\u0022: 0\n }\n }\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json", + "Code": "### Create a ChatKit session\n# @name CreateChatSessionMethod\nPOST {{host}}/chatkit/sessions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022workflow\u0022: {\n \u0022id\u0022: \u0022string\u0022,\n \u0022version\u0022: \u0022string\u0022,\n \u0022state_variables\u0022: {},\n \u0022tracing\u0022: {\n \u0022enabled\u0022: true\n }\n },\n \u0022user\u0022: \u0022string\u0022,\n \u0022expires_after\u0022: {\n \u0022anchor\u0022: \u0022created_at\u0022,\n \u0022seconds\u0022: 0\n },\n \u0022rate_limits\u0022: {\n \u0022max_requests_per_1_minute\u0022: 0\n },\n \u0022chatkit_configuration\u0022: {\n \u0022automatic_thread_titling\u0022: {\n \u0022enabled\u0022: true\n },\n \u0022file_upload\u0022: {\n \u0022enabled\u0022: true,\n \u0022max_file_size\u0022: 0,\n \u0022max_files\u0022: 0\n },\n \u0022history\u0022: {\n \u0022enabled\u0022: true,\n \u0022recent_threads\u0022: 0\n }\n }\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 400\n# Description: The request is invalid or the required ChatKit beta header is missing or invalid.\n# Content-Type: application/json\n# 404\n# Description: The requested workflow or workflow version was not found or is not accessible.\n# Content-Type: application/json\n# 429\n# Description: The request rate limit has been exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "CreateChatSessionMethod", "Setup": null @@ -28,7 +28,7 @@ "Slug": "getthreadmethod", "Description": "Retrieve a ChatKit thread by its identifier.", "Language": "http", - "Code": "### Retrieve a ChatKit thread\n# @name GetThreadMethod\nGET {{host}}/chatkit/threads/{{thread_id}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json", + "Code": "### Retrieve a ChatKit thread\n# @name GetThreadMethod\nGET {{host}}/chatkit/threads/{{thread_id}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 400\n# Description: The request is invalid or the required ChatKit beta header is missing or invalid.\n# Content-Type: application/json\n# 404\n# Description: The thread was not found or is not accessible.\n# Content-Type: application/json\n# 429\n# Description: The request rate limit has been exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "GetThreadMethod", "Setup": null @@ -39,7 +39,7 @@ "Slug": "createspeech", "Description": "Generates audio from the input text.\n\nReturns the audio file content, or a stream of audio events.", "Language": "http", - "Code": "### Create speech\n# @name createSpeech\nPOST {{host}}/audio/speech\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, application/octet-stream, text/event-stream\n\n{\n \u0022model\u0022: \u0022string\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022voice\u0022: \u0022ash\u0022,\n \u0022response_format\u0022: \u0022mp3\u0022,\n \u0022speed\u0022: 1,\n \u0022stream_format\u0022: \u0022audio\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/octet-stream, text/event-stream\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create speech\n# @name createSpeech\nPOST {{host}}/audio/speech\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, application/octet-stream, text/event-stream, text/plain\n\n{\n \u0022model\u0022: \u0022string\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022voice\u0022: \u0022ash\u0022,\n \u0022response_format\u0022: \u0022mp3\u0022,\n \u0022speed\u0022: 1,\n \u0022stream_format\u0022: \u0022audio\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/octet-stream, text/event-stream\n# 400\n# Description: Invalid speech request, input, output format, or voice.\n# Content-Type: application/json\n# 401\n# Description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.\n# Content-Type: application/json, text/plain\n# 403\n# Description: Access to a personal API organization is blocked by the organization policy.\n# Content-Type: text/plain\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The voice or speech audio could not be processed.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createSpeech", "Setup": null @@ -50,7 +50,7 @@ "Slug": "createtranscription", "Description": "Transcribes audio into the input language.\n\nReturns a transcription object in \u0060json\u0060, \u0060diarized_json\u0060, or \u0060verbose_json\u0060\nformat, or a stream of transcript events.", "Language": "http", - "Code": "### Create transcription\n# @name createTranscription\nPOST {{host}}/audio/transcriptions\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json, text/event-stream\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022file\u0022; filename=\u0022file.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./file.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022model\u0022\n\ngpt-4o-transcribe\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022language\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022languages\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022keywords\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022response_format\u0022\n\njson\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022temperature\u0022\n\n0\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022include\u0022\n\n[]\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022timestamp_granularities\u0022\n\nword\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022stream\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022chunking_strategy\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022known_speaker_names\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022known_speaker_references\u0022\n\nstring\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create transcription\n# @name createTranscription\nPOST {{host}}/audio/transcriptions\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json, text/event-stream, text/plain\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022file\u0022; filename=\u0022file.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./file.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022model\u0022\n\ngpt-4o-transcribe\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022language\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022languages\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022keywords\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022response_format\u0022\n\njson\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022temperature\u0022\n\n0\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022include\u0022\n\n[]\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022timestamp_granularities\u0022\n\nword\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022stream\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022chunking_strategy\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022known_speaker_names\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022known_speaker_references\u0022\n\nstring\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 400\n# Description: Invalid audio input or request parameters.\n# Content-Type: application/json\n# 401\n# Description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.\n# Content-Type: application/json, text/plain\n# 403\n# Description: Access to a personal API organization is blocked by the organization policy.\n# Content-Type: text/plain\n# 413\n# Description: The audio request exceeds the supported size limit.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The audio could not be processed.\n# Content-Type: application/json\n# 502\n# Description: The upstream audio service connection failed.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createTranscription", "Setup": null @@ -61,7 +61,7 @@ "Slug": "createtranslation", "Description": "Translates audio into English.", "Language": "http", - "Code": "### Create translation\n# @name createTranslation\nPOST {{host}}/audio/translations\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022file\u0022; filename=\u0022file.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./file.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022model\u0022\n\nwhisper-1\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022response_format\u0022\n\njson\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022temperature\u0022\n\n0\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create translation\n# @name createTranslation\nPOST {{host}}/audio/translations\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json, text/plain\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022file\u0022; filename=\u0022file.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./file.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022model\u0022\n\nwhisper-1\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022response_format\u0022\n\njson\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022temperature\u0022\n\n0\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 400\n# Description: Invalid audio input or request parameters.\n# Content-Type: application/json\n# 401\n# Description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.\n# Content-Type: application/json, text/plain\n# 403\n# Description: Access to a personal API organization is blocked by the organization policy.\n# Content-Type: text/plain\n# 413\n# Description: The audio request exceeds the supported size limit.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The audio could not be processed.\n# Content-Type: application/json\n# 502\n# Description: The upstream audio service connection failed.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createTranslation", "Setup": null @@ -72,7 +72,7 @@ "Slug": "createchatcompletion", "Description": "**Starting a new project?** We recommend trying [Responses](https://developers.openai.com/api/reference/resources/responses)\nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](https://developers.openai.com/api/docs/guides/migrate-to-responses?api-mode=responses).\n\n---\n\nCreates a model response for the given chat conversation. Learn more in the\n[text generation](https://developers.openai.com/api/docs/guides/text), [vision](https://developers.openai.com/api/docs/guides/images-vision),\nand [audio](https://developers.openai.com/api/docs/guides/audio) guides.\n\nParameter support can differ depending on the model used to generate the\nresponse, particularly for newer reasoning models. Parameters that are only\nsupported for reasoning models are noted below. For the current state of\nunsupported parameters in reasoning models,\n[refer to the reasoning guide](https://developers.openai.com/api/docs/guides/reasoning).\n\nReturns a chat completion object, or a streamed sequence of chat completion\nchunk objects if the request is streamed.", "Language": "http", - "Code": "### Create chat completion\n# @name createChatCompletion\nPOST {{host}}/chat/completions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022messages\u0022: [\n {\n \u0022content\u0022: \u0022string\u0022,\n \u0022role\u0022: \u0022developer\u0022,\n \u0022name\u0022: \u0022string\u0022\n }\n ],\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022service_tier\u0022: \u0022auto\u0022,\n \u0022modalities\u0022: [\n \u0022text\u0022\n ],\n \u0022verbosity\u0022: \u0022medium\u0022,\n \u0022reasoning_effort\u0022: \u0022medium\u0022,\n \u0022max_completion_tokens\u0022: 0,\n \u0022frequency_penalty\u0022: 0,\n \u0022presence_penalty\u0022: 0,\n \u0022web_search_options\u0022: {\n \u0022user_location\u0022: {\n \u0022type\u0022: \u0022approximate\u0022,\n \u0022approximate\u0022: {}\n },\n \u0022search_context_size\u0022: \u0022medium\u0022\n },\n \u0022top_logprobs\u0022: 0,\n \u0022response_format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022audio\u0022: {\n \u0022voice\u0022: \u0022ash\u0022,\n \u0022format\u0022: \u0022wav\u0022\n },\n \u0022store\u0022: false,\n \u0022moderation\u0022: {\n \u0022model\u0022: \u0022string\u0022,\n \u0022policy\u0022: {\n \u0022input\u0022: {},\n \u0022output\u0022: {}\n }\n },\n \u0022stream\u0022: false,\n \u0022stop\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022logit_bias\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022logprobs\u0022: false,\n \u0022max_tokens\u0022: 0,\n \u0022n\u0022: 1,\n \u0022prediction\u0022: {\n \u0022type\u0022: \u0022content\u0022,\n \u0022content\u0022: \u0022string\u0022\n },\n \u0022seed\u0022: 0,\n \u0022stream_options\u0022: {\n \u0022include_usage\u0022: true,\n \u0022include_obfuscation\u0022: true\n },\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022function\u0022: {}\n }\n ],\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022parallel_tool_calls\u0022: true,\n \u0022function_call\u0022: \u0022none\u0022,\n \u0022functions\u0022: [\n {\n \u0022description\u0022: \u0022string\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {}\n }\n ]\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create chat completion\n# @name createChatCompletion\nPOST {{host}}/chat/completions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/event-stream, text/plain\n\n{\n \u0022messages\u0022: [\n {\n \u0022content\u0022: \u0022string\u0022,\n \u0022role\u0022: \u0022developer\u0022,\n \u0022name\u0022: \u0022string\u0022\n }\n ],\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022service_tier\u0022: \u0022auto\u0022,\n \u0022modalities\u0022: [\n \u0022text\u0022\n ],\n \u0022verbosity\u0022: \u0022medium\u0022,\n \u0022reasoning_effort\u0022: \u0022medium\u0022,\n \u0022max_completion_tokens\u0022: 0,\n \u0022frequency_penalty\u0022: 0,\n \u0022presence_penalty\u0022: 0,\n \u0022web_search_options\u0022: {\n \u0022user_location\u0022: {\n \u0022type\u0022: \u0022approximate\u0022,\n \u0022approximate\u0022: {}\n },\n \u0022search_context_size\u0022: \u0022medium\u0022\n },\n \u0022top_logprobs\u0022: 0,\n \u0022response_format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022audio\u0022: {\n \u0022voice\u0022: \u0022ash\u0022,\n \u0022format\u0022: \u0022wav\u0022\n },\n \u0022store\u0022: false,\n \u0022moderation\u0022: {\n \u0022model\u0022: \u0022string\u0022,\n \u0022policy\u0022: {\n \u0022input\u0022: {},\n \u0022output\u0022: {}\n }\n },\n \u0022stream\u0022: false,\n \u0022stop\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022logit_bias\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022logprobs\u0022: false,\n \u0022max_tokens\u0022: 0,\n \u0022n\u0022: 1,\n \u0022prediction\u0022: {\n \u0022type\u0022: \u0022content\u0022,\n \u0022content\u0022: \u0022string\u0022\n },\n \u0022seed\u0022: 0,\n \u0022stream_options\u0022: {\n \u0022include_usage\u0022: true,\n \u0022include_obfuscation\u0022: true\n },\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022function\u0022: {}\n }\n ],\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022parallel_tool_calls\u0022: true,\n \u0022function_call\u0022: \u0022none\u0022,\n \u0022functions\u0022: [\n {\n \u0022description\u0022: \u0022string\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {}\n }\n ]\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 400\n# Description: Invalid chat completion request or incompatible request parameters.\n# Content-Type: application/json\n# 401\n# Description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.\n# Content-Type: application/json, text/plain\n# 403\n# Description: Access to a personal API organization is blocked by the organization policy.\n# Content-Type: text/plain\n# 404\n# Description: The requested model or a referenced resource was not found or is unavailable to this caller.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The chat completion could not be processed due to an internal error.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createChatCompletion", "Setup": null @@ -83,7 +83,7 @@ "Slug": "createcompletion", "Description": "Creates a completion for the provided prompt and parameters.\n\nReturns a completion object, or a sequence of completion objects if the request is streamed.", "Language": "http", - "Code": "### Create completion\n# @name createCompletion\nPOST {{host}}/completions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model\u0022: \u0022string\u0022,\n \u0022prompt\u0022: \u0022\\u003C|endoftext|\\u003E\u0022,\n \u0022best_of\u0022: 1,\n \u0022echo\u0022: false,\n \u0022frequency_penalty\u0022: 0,\n \u0022logit_bias\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022logprobs\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022max_tokens\u0022: 16,\n \u0022n\u0022: 1,\n \u0022presence_penalty\u0022: 0,\n \u0022seed\u0022: 0,\n \u0022stop\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022stream\u0022: false,\n \u0022stream_options\u0022: {\n \u0022include_usage\u0022: true,\n \u0022include_obfuscation\u0022: true\n },\n \u0022suffix\u0022: \u0022test.\u0022,\n \u0022temperature\u0022: 1,\n \u0022top_p\u0022: 1,\n \u0022user\u0022: \u0022user-1234\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create completion\n# @name createCompletion\nPOST {{host}}/completions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/plain\n\n{\n \u0022model\u0022: \u0022string\u0022,\n \u0022prompt\u0022: \u0022\\u003C|endoftext|\\u003E\u0022,\n \u0022best_of\u0022: 1,\n \u0022echo\u0022: false,\n \u0022frequency_penalty\u0022: 0,\n \u0022logit_bias\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022logprobs\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022max_tokens\u0022: 16,\n \u0022n\u0022: 1,\n \u0022presence_penalty\u0022: 0,\n \u0022seed\u0022: 0,\n \u0022stop\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022stream\u0022: false,\n \u0022stream_options\u0022: {\n \u0022include_usage\u0022: true,\n \u0022include_obfuscation\u0022: true\n },\n \u0022suffix\u0022: \u0022test.\u0022,\n \u0022temperature\u0022: 1,\n \u0022top_p\u0022: 1,\n \u0022user\u0022: \u0022user-1234\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 400\n# Description: Invalid completion request or incompatible request parameters.\n# Content-Type: application/json\n# 401\n# Description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.\n# Content-Type: application/json, text/plain\n# 403\n# Description: Access to a personal API organization is blocked by the organization policy.\n# Content-Type: text/plain\n# 404\n# Description: The requested model was not found, is unavailable, or does not support this endpoint.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The completion could not be processed due to an internal error.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createCompletion", "Setup": null @@ -94,7 +94,7 @@ "Slug": "createembedding", "Description": "Creates an embedding vector representing the input text.", "Language": "http", - "Code": "### Create embeddings\n# @name createEmbedding\nPOST {{host}}/embeddings\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022input\u0022: \u0022The quick brown fox jumped over the lazy dog\u0022,\n \u0022model\u0022: \u0022text-embedding-3-small\u0022,\n \u0022encoding_format\u0022: \u0022float\u0022,\n \u0022dimensions\u0022: 0,\n \u0022user\u0022: \u0022user-1234\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create embeddings\n# @name createEmbedding\nPOST {{host}}/embeddings\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/plain\n\n{\n \u0022input\u0022: \u0022The quick brown fox jumped over the lazy dog\u0022,\n \u0022model\u0022: \u0022text-embedding-3-small\u0022,\n \u0022encoding_format\u0022: \u0022float\u0022,\n \u0022dimensions\u0022: 0,\n \u0022user\u0022: \u0022user-1234\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 400\n# Description: Invalid embedding input or request parameters.\n# Content-Type: application/json\n# 401\n# Description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.\n# Content-Type: application/json, text/plain\n# 403\n# Description: Access to a personal API organization is blocked by the organization policy.\n# Content-Type: text/plain\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The embedding request could not be processed due to an internal error.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createEmbedding", "Setup": null @@ -105,7 +105,7 @@ "Slug": "createimage", "Description": "Creates an image given a prompt. [Learn more](https://developers.openai.com/api/docs/guides/images-vision).", "Language": "http", - "Code": "### Create image\n# @name createImage\nPOST {{host}}/images/generations\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022prompt\u0022: \u0022A cute baby sea otter\u0022,\n \u0022model\u0022: \u0022gpt-image-2.5-flare\u0022,\n \u0022n\u0022: 1,\n \u0022quality\u0022: \u0022medium\u0022,\n \u0022response_format\u0022: \u0022url\u0022,\n \u0022output_format\u0022: \u0022png\u0022,\n \u0022output_compression\u0022: 100,\n \u0022stream\u0022: false,\n \u0022partial_images\u0022: 1,\n \u0022size\u0022: \u00221024x1024\u0022,\n \u0022moderation\u0022: \u0022low\u0022,\n \u0022background\u0022: \u0022transparent\u0022,\n \u0022style\u0022: \u0022vivid\u0022,\n \u0022user\u0022: \u0022user-1234\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create image\n# @name createImage\nPOST {{host}}/images/generations\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022prompt\u0022: \u0022A cute baby sea otter\u0022,\n \u0022model\u0022: \u0022gpt-image-2.5-flare\u0022,\n \u0022n\u0022: 1,\n \u0022quality\u0022: \u0022medium\u0022,\n \u0022response_format\u0022: \u0022url\u0022,\n \u0022output_format\u0022: \u0022png\u0022,\n \u0022output_compression\u0022: 100,\n \u0022stream\u0022: false,\n \u0022partial_images\u0022: 1,\n \u0022size\u0022: \u00221024x1024\u0022,\n \u0022moderation\u0022: \u0022low\u0022,\n \u0022background\u0022: \u0022transparent\u0022,\n \u0022style\u0022: \u0022vivid\u0022,\n \u0022user\u0022: \u0022user-1234\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 400\n# Description: Invalid image request, including invalid DALL-E parameters or input.\n# Content-Type: application/json\n# 403\n# Description: The project does not have access to the requested model.\n# Content-Type: application/json\n# 410\n# Description: The requested DALL-E image endpoint is unavailable because it has been retired.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The image could not be generated or processed.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createImage", "Setup": null @@ -116,7 +116,7 @@ "Slug": "createimageedit", "Description": "Creates an edited or extended image given one or more source images and a prompt. This endpoint supports GPT Image models and \u0060dall-e-2\u0060.", "Language": "http", - "Code": "### Create image edit\n# @name createImageEdit\nPOST {{host}}/images/edits\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json, text/event-stream\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022image\u0022; filename=\u0022image.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./image.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nA cute baby sea otter wearing a beret\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022mask\u0022; filename=\u0022mask.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./mask.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022background\u0022\n\ntransparent\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022model\u0022\n\ngpt-image-1.5\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022n\u0022\n\n1\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022size\u0022\n\n1024x1024\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022response_format\u0022\n\nurl\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022output_format\u0022\n\npng\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022output_compression\u0022\n\n100\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022user\u0022\n\nuser-1234\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022input_fidelity\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022stream\u0022\n\nfalse\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022partial_images\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022quality\u0022\n\nhigh\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create image edit\n# @name createImageEdit\nPOST {{host}}/images/edits\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json, text/event-stream\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022image\u0022; filename=\u0022image.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./image.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nA cute baby sea otter wearing a beret\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022mask\u0022; filename=\u0022mask.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./mask.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022background\u0022\n\ntransparent\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022model\u0022\n\ngpt-image-1.5\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022n\u0022\n\n1\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022size\u0022\n\n1024x1024\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022response_format\u0022\n\nurl\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022output_format\u0022\n\npng\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022output_compression\u0022\n\n100\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022user\u0022\n\nuser-1234\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022input_fidelity\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022stream\u0022\n\nfalse\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022partial_images\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022quality\u0022\n\nhigh\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 400\n# Description: Invalid image request, including invalid DALL-E parameters or input.\n# Content-Type: application/json\n# 403\n# Description: The project does not have access to the requested model.\n# Content-Type: application/json\n# 410\n# Description: The requested DALL-E image endpoint is unavailable because it has been retired.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The image could not be generated or processed.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createImageEdit", "Setup": null @@ -127,7 +127,7 @@ "Slug": "create-live", "Description": "Create a Live WebRTC session. Start with the [Live prompting guide](https://developers.openai.com/api/docs/guides/live-prompting).", "Language": "http", - "Code": "### Create session\n# @name create-live\nPOST {{host}}/live/sessions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022session\u0022: {\n \u0022model\u0022: \u0022gpt-live-1\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022audio\u0022: {\n \u0022output\u0022: {}\n },\n \u0022delegation\u0022: {\n \u0022type\u0022: \u0022client\u0022\n },\n \u0022store\u0022: true,\n \u0022input\u0022: [\n {}\n ],\n \u0022client\u0022: {\n \u0022data_channel\u0022: {}\n }\n },\n \u0022transport\u0022: {\n \u0022type\u0022: \u0022webrtc\u0022,\n \u0022sdp\u0022: \u0022string\u0022\n }\n}\n\n## Responses\n# 201\n# Description: Live session created with a WebRTC answer.\n# Content-Type: application/json", + "Code": "### Create session\n# @name create-live\nPOST {{host}}/live/sessions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/plain\n\n{\n \u0022session\u0022: {\n \u0022model\u0022: \u0022gpt-live-1\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022audio\u0022: {\n \u0022output\u0022: {}\n },\n \u0022delegation\u0022: {\n \u0022type\u0022: \u0022client\u0022\n },\n \u0022store\u0022: true,\n \u0022input\u0022: [\n {}\n ],\n \u0022client\u0022: {\n \u0022data_channel\u0022: {}\n }\n },\n \u0022transport\u0022: {\n \u0022type\u0022: \u0022webrtc\u0022,\n \u0022sdp\u0022: \u0022string\u0022\n }\n}\n\n## Responses\n# 201\n# Description: Live session created with a WebRTC answer.\n# Content-Type: application/json\n# 400\n# Description: Invalid Live session request.\n# Content-Type: application/json, text/plain\n# 413\n# Description: The Live session request exceeds the supported size limit.\n# Content-Type: application/json, text/plain\n# 429\n# Description: The session could not start because a rate or quota limit was exceeded.\n# Content-Type: application/json\n# 500\n# Description: An internal error occurred. The response body is plain text.\n# Content-Type: text/plain\n# 503\n# Description: The session is temporarily unavailable.\n# Content-Type: application/json, text/plain", "Format": "http", "OperationId": "create-live", "Setup": null @@ -138,7 +138,7 @@ "Slug": "createmoderation", "Description": "Classifies if text and/or image inputs are potentially harmful. Learn\nmore in the [moderation guide](https://developers.openai.com/api/docs/guides/moderation).", "Language": "http", - "Code": "### Create moderation\n# @name createModeration\nPOST {{host}}/moderations\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022input\u0022: \u0022I want to kill them.\u0022,\n \u0022model\u0022: \u0022omni-moderation-2024-09-26\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create moderation\n# @name createModeration\nPOST {{host}}/moderations\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022input\u0022: \u0022I want to kill them.\u0022,\n \u0022model\u0022: \u0022omni-moderation-2024-09-26\u0022\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 400\n# Description: Invalid moderation input or unsupported request parameters.\n# Content-Type: application/json\n# 403\n# Description: Access to the requested moderation model was denied.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The moderation request could not be processed due to an internal error.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createModeration", "Setup": null @@ -160,7 +160,7 @@ "Slug": "beta-compactconversation", "Description": "Compact a conversation. Returns a compacted response object.\n\nLearn when and how to compact long-running conversations in the [conversation state guide](https://developers.openai.com/api/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](https://developers.openai.com/api/docs/guides/conversation-state#compaction-advanced).", "Language": "http", - "Code": "### Compact conversation\n# @name beta_Compactconversation\nPOST {{host}}/responses/compact?beta=true\nAuthorization: Bearer {{token}}\nopenai-beta: {{openai-beta}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022previous_response_id\u0022: \u0022resp_123\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022prompt_cache_key\u0022: \u0022string\u0022,\n \u0022prompt_cache_retention\u0022: \u0022in_memory\u0022,\n \u0022prompt_cache_options\u0022: {\n \u0022ttl\u0022: \u002230m\u0022,\n \u0022mode\u0022: \u0022implicit\u0022\n },\n \u0022service_tier\u0022: \u0022auto\u0022\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Compact conversation\n# @name beta_Compactconversation\nPOST {{host}}/responses/compact?beta=true\nAuthorization: Bearer {{token}}\nopenai-beta: {{openai-beta}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022previous_response_id\u0022: \u0022resp_123\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022prompt_cache_key\u0022: \u0022string\u0022,\n \u0022prompt_cache_retention\u0022: \u0022in_memory\u0022,\n \u0022prompt_cache_options\u0022: {\n \u0022ttl\u0022: \u002230m\u0022,\n \u0022mode\u0022: \u0022implicit\u0022\n },\n \u0022service_tier\u0022: \u0022auto\u0022\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 400\n# Description: Invalid compaction request or incompatible input parameters.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "beta_Compactconversation", "Setup": null @@ -171,7 +171,7 @@ "Slug": "beta-createresponse", "Description": "Creates a model response. Provide [text](https://developers.openai.com/api/docs/guides/text) or\n[image](https://developers.openai.com/api/docs/guides/images-vision) inputs to generate [text](https://developers.openai.com/api/docs/guides/text)\nor [JSON](https://developers.openai.com/api/docs/guides/structured-outputs) outputs. Have the model call\nyour own [custom code](https://developers.openai.com/api/docs/guides/function-calling) or use built-in\n[tools](https://developers.openai.com/api/docs/guides/tools) like [web search](https://developers.openai.com/api/docs/guides/tools-web-search)\nor [file search](https://developers.openai.com/api/docs/guides/tools-file-search) to use your own data\nas input for the model\u0027s response.", "Language": "http", - "Code": "### Create a model response\n# @name beta_createResponse\nPOST {{host}}/responses?beta=true\nAuthorization: Bearer {{token}}\nopenai-beta: {{openai-beta}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022previous_response_id\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022background\u0022: false,\n \u0022max_tool_calls\u0022: 0,\n \u0022text\u0022: {\n \u0022format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022verbosity\u0022: \u0022medium\u0022\n },\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022async\u0022: true,\n \u0022description\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {},\n \u0022output_schema\u0022: {},\n \u0022strict\u0022: true,\n \u0022defer_loading\u0022: true,\n \u0022allowed_callers\u0022: []\n }\n ],\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022prompt\u0022: {\n \u0022id\u0022: \u0022string\u0022,\n \u0022version\u0022: \u0022string\u0022,\n \u0022variables\u0022: {}\n },\n \u0022access_programs\u0022: {\n \u0022cyber\u0022: \u0022standard\u0022\n },\n \u0022prompt_cache_options\u0022: {\n \u0022ttl\u0022: \u002230m\u0022,\n \u0022mode\u0022: \u0022implicit\u0022,\n \u0022prewarm\u0022: true,\n \u0022comparison_response_id\u0022: \u0022resp_123\u0022\n },\n \u0022service_tier\u0022: \u0022auto\u0022,\n \u0022truncation\u0022: \u0022disabled\u0022,\n \u0022reasoning\u0022: {\n \u0022mode\u0022: \u0022string\u0022,\n \u0022effort\u0022: \u0022medium\u0022,\n \u0022summary\u0022: \u0022auto\u0022,\n \u0022context\u0022: \u0022auto\u0022,\n \u0022generate_summary\u0022: \u0022auto\u0022\n },\n \u0022input\u0022: \u0022string\u0022,\n \u0022include\u0022: [\n \u0022file_search_call.results\u0022\n ],\n \u0022parallel_tool_calls\u0022: true,\n \u0022store\u0022: true,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022moderation\u0022: {\n \u0022model\u0022: \u0022string\u0022,\n \u0022policy\u0022: {\n \u0022input\u0022: {},\n \u0022output\u0022: {}\n }\n },\n \u0022stream\u0022: false,\n \u0022stream_options\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022conversation\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022context_management\u0022: [\n {\n \u0022type\u0022: \u0022compaction\u0022,\n \u0022compact_threshold\u0022: 1000\n }\n ],\n \u0022max_output_tokens\u0022: 0,\n \u0022multi_agent\u0022: {\n \u0022enabled\u0022: true,\n \u0022max_concurrent_subagents\u0022: 0\n }\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create a model response\n# @name beta_createResponse\nPOST {{host}}/responses?beta=true\nAuthorization: Bearer {{token}}\nopenai-beta: {{openai-beta}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022previous_response_id\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022background\u0022: false,\n \u0022max_tool_calls\u0022: 0,\n \u0022text\u0022: {\n \u0022format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022verbosity\u0022: \u0022medium\u0022\n },\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022async\u0022: true,\n \u0022description\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {},\n \u0022output_schema\u0022: {},\n \u0022strict\u0022: true,\n \u0022defer_loading\u0022: true,\n \u0022allowed_callers\u0022: []\n }\n ],\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022prompt\u0022: {\n \u0022id\u0022: \u0022string\u0022,\n \u0022version\u0022: \u0022string\u0022,\n \u0022variables\u0022: {}\n },\n \u0022access_programs\u0022: {\n \u0022cyber\u0022: \u0022standard\u0022\n },\n \u0022prompt_cache_options\u0022: {\n \u0022ttl\u0022: \u002230m\u0022,\n \u0022mode\u0022: \u0022implicit\u0022,\n \u0022prewarm\u0022: true,\n \u0022comparison_response_id\u0022: \u0022resp_123\u0022\n },\n \u0022service_tier\u0022: \u0022auto\u0022,\n \u0022truncation\u0022: \u0022disabled\u0022,\n \u0022reasoning\u0022: {\n \u0022mode\u0022: \u0022string\u0022,\n \u0022effort\u0022: \u0022medium\u0022,\n \u0022summary\u0022: \u0022auto\u0022,\n \u0022context\u0022: \u0022auto\u0022,\n \u0022generate_summary\u0022: \u0022auto\u0022\n },\n \u0022input\u0022: \u0022string\u0022,\n \u0022include\u0022: [\n \u0022file_search_call.results\u0022\n ],\n \u0022parallel_tool_calls\u0022: true,\n \u0022store\u0022: true,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022moderation\u0022: {\n \u0022model\u0022: \u0022string\u0022,\n \u0022policy\u0022: {\n \u0022input\u0022: {},\n \u0022output\u0022: {}\n }\n },\n \u0022stream\u0022: false,\n \u0022stream_options\u0022: {\n \u0022include_obfuscation\u0022: true\n },\n \u0022conversation\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022context_management\u0022: [\n {\n \u0022type\u0022: \u0022compaction\u0022,\n \u0022compact_threshold\u0022: 1000\n }\n ],\n \u0022max_output_tokens\u0022: 0,\n \u0022multi_agent\u0022: {\n \u0022enabled\u0022: true,\n \u0022max_concurrent_subagents\u0022: 0\n }\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 400\n# Description: Invalid response request or incompatible request parameters.\n# Content-Type: application/json\n# 404\n# Description: The requested model or a referenced resource was not found or is unavailable to this caller.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "beta_createResponse", "Setup": null @@ -182,7 +182,7 @@ "Slug": "beta-getresponse", "Description": "Retrieves a model response with the given ID.", "Language": "http", - "Code": "### Get a model response\n# @name beta_getResponse\nGET {{host}}/responses/{{response_id}}?beta=true?include={{include}}\u0026stream={{stream}}\u0026starting_after={{starting_after}}\u0026include_obfuscation={{include_obfuscation}}\nAuthorization: Bearer {{token}}\nopenai-beta: {{openai-beta}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded.\n# Content-Type: application/json", + "Code": "### Get a model response\n# @name beta_getResponse\nGET {{host}}/responses/{{response_id}}?beta=true?include={{include}}\u0026stream={{stream}}\u0026starting_after={{starting_after}}\u0026include_obfuscation={{include_obfuscation}}\nAuthorization: Bearer {{token}}\nopenai-beta: {{openai-beta}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 404\n# Description: The response was not found.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "beta_getResponse", "Setup": null @@ -193,7 +193,7 @@ "Slug": "beta-getinputtokencounts", "Description": "Returns input token counts of the request.\n\nReturns an object with \u0060object\u0060 set to \u0060response.input_tokens\u0060 and an \u0060input_tokens\u0060 count.", "Language": "http", - "Code": "### Get input token counts\n# @name beta_Getinputtokencounts\nPOST {{host}}/responses/input_tokens?beta=true\nAuthorization: Bearer {{token}}\nopenai-beta: {{openai-beta}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model\u0022: \u0022string\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022previous_response_id\u0022: \u0022resp_123\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022async\u0022: true,\n \u0022description\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {},\n \u0022output_schema\u0022: {},\n \u0022strict\u0022: true,\n \u0022defer_loading\u0022: true,\n \u0022allowed_callers\u0022: []\n }\n ],\n \u0022text\u0022: {\n \u0022format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022verbosity\u0022: \u0022medium\u0022\n },\n \u0022reasoning\u0022: {\n \u0022mode\u0022: \u0022string\u0022,\n \u0022effort\u0022: \u0022medium\u0022,\n \u0022summary\u0022: \u0022auto\u0022,\n \u0022context\u0022: \u0022auto\u0022,\n \u0022generate_summary\u0022: \u0022auto\u0022\n },\n \u0022truncation\u0022: \u0022auto\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022personality\u0022: \u0022string\u0022,\n \u0022conversation\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022parallel_tool_calls\u0022: true\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded.\n# Content-Type: application/json", + "Code": "### Get input token counts\n# @name beta_Getinputtokencounts\nPOST {{host}}/responses/input_tokens?beta=true\nAuthorization: Bearer {{token}}\nopenai-beta: {{openai-beta}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model\u0022: \u0022string\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022previous_response_id\u0022: \u0022resp_123\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022async\u0022: true,\n \u0022description\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {},\n \u0022output_schema\u0022: {},\n \u0022strict\u0022: true,\n \u0022defer_loading\u0022: true,\n \u0022allowed_callers\u0022: []\n }\n ],\n \u0022text\u0022: {\n \u0022format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022verbosity\u0022: \u0022medium\u0022\n },\n \u0022reasoning\u0022: {\n \u0022mode\u0022: \u0022string\u0022,\n \u0022effort\u0022: \u0022medium\u0022,\n \u0022summary\u0022: \u0022auto\u0022,\n \u0022context\u0022: \u0022auto\u0022,\n \u0022generate_summary\u0022: \u0022auto\u0022\n },\n \u0022truncation\u0022: \u0022auto\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022personality\u0022: \u0022string\u0022,\n \u0022conversation\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022parallel_tool_calls\u0022: true\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 400\n# Description: The request to count input tokens is invalid or contains incompatible parameters.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "beta_Getinputtokencounts", "Setup": null @@ -215,7 +215,7 @@ "Slug": "compactconversation", "Description": "Compact a conversation. Returns a compacted response object.\n\nLearn when and how to compact long-running conversations in the [conversation state guide](https://developers.openai.com/api/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](https://developers.openai.com/api/docs/guides/conversation-state#compaction-advanced).", "Language": "http", - "Code": "### Compact conversation\n# @name Compactconversation\nPOST {{host}}/responses/compact\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022previous_response_id\u0022: \u0022resp_123\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022prompt_cache_key\u0022: \u0022string\u0022,\n \u0022prompt_cache_retention\u0022: \u0022in_memory\u0022,\n \u0022prompt_cache_options\u0022: {\n \u0022ttl\u0022: \u002230m\u0022,\n \u0022mode\u0022: \u0022implicit\u0022\n },\n \u0022service_tier\u0022: \u0022auto\u0022\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Compact conversation\n# @name Compactconversation\nPOST {{host}}/responses/compact\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022previous_response_id\u0022: \u0022resp_123\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022prompt_cache_key\u0022: \u0022string\u0022,\n \u0022prompt_cache_retention\u0022: \u0022in_memory\u0022,\n \u0022prompt_cache_options\u0022: {\n \u0022ttl\u0022: \u002230m\u0022,\n \u0022mode\u0022: \u0022implicit\u0022\n },\n \u0022service_tier\u0022: \u0022auto\u0022\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 400\n# Description: Invalid compaction request or incompatible input parameters.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "Compactconversation", "Setup": null @@ -226,7 +226,7 @@ "Slug": "createresponse", "Description": "Creates a model response. Provide [text](https://developers.openai.com/api/docs/guides/text) or\n[image](https://developers.openai.com/api/docs/guides/images-vision) inputs to generate [text](https://developers.openai.com/api/docs/guides/text)\nor [JSON](https://developers.openai.com/api/docs/guides/structured-outputs) outputs. Have the model call\nyour own [custom code](https://developers.openai.com/api/docs/guides/function-calling) or use built-in\n[tools](https://developers.openai.com/api/docs/guides/tools) like [web search](https://developers.openai.com/api/docs/guides/tools-web-search)\nor [file search](https://developers.openai.com/api/docs/guides/tools-file-search) to use your own data\nas input for the model\u0027s response.", "Language": "http", - "Code": "### Create a model response\n# @name createResponse\nPOST {{host}}/responses\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022previous_response_id\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022background\u0022: false,\n \u0022max_tool_calls\u0022: 0,\n \u0022text\u0022: {\n \u0022format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022verbosity\u0022: \u0022medium\u0022\n },\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022async\u0022: true,\n \u0022description\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {},\n \u0022output_schema\u0022: {},\n \u0022strict\u0022: true,\n \u0022defer_loading\u0022: true,\n \u0022allowed_callers\u0022: []\n }\n ],\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022prompt\u0022: {\n \u0022id\u0022: \u0022string\u0022,\n \u0022version\u0022: \u0022string\u0022,\n \u0022variables\u0022: {}\n },\n \u0022access_programs\u0022: {\n \u0022cyber\u0022: \u0022standard\u0022\n },\n \u0022prompt_cache_options\u0022: {\n \u0022ttl\u0022: \u002230m\u0022,\n \u0022mode\u0022: \u0022implicit\u0022,\n \u0022prewarm\u0022: true,\n \u0022comparison_response_id\u0022: \u0022resp_123\u0022\n },\n \u0022service_tier\u0022: \u0022auto\u0022,\n \u0022truncation\u0022: \u0022disabled\u0022,\n \u0022reasoning\u0022: {\n \u0022mode\u0022: \u0022string\u0022,\n \u0022effort\u0022: \u0022medium\u0022,\n \u0022summary\u0022: \u0022auto\u0022,\n \u0022context\u0022: \u0022auto\u0022,\n \u0022generate_summary\u0022: \u0022auto\u0022\n },\n \u0022input\u0022: \u0022string\u0022,\n \u0022include\u0022: [\n \u0022file_search_call.results\u0022\n ],\n \u0022parallel_tool_calls\u0022: true,\n \u0022store\u0022: true,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022moderation\u0022: {\n \u0022model\u0022: \u0022string\u0022,\n \u0022policy\u0022: {\n \u0022input\u0022: {},\n \u0022output\u0022: {}\n }\n },\n \u0022stream\u0022: false,\n \u0022stream_options\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022conversation\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022context_management\u0022: [\n {\n \u0022type\u0022: \u0022compaction\u0022,\n \u0022compact_threshold\u0022: 1000\n }\n ],\n \u0022max_output_tokens\u0022: 0\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", + "Code": "### Create a model response\n# @name createResponse\nPOST {{host}}/responses\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022previous_response_id\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022gpt-6-astra\u0022,\n \u0022background\u0022: false,\n \u0022max_tool_calls\u0022: 0,\n \u0022text\u0022: {\n \u0022format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022verbosity\u0022: \u0022medium\u0022\n },\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022async\u0022: true,\n \u0022description\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {},\n \u0022output_schema\u0022: {},\n \u0022strict\u0022: true,\n \u0022defer_loading\u0022: true,\n \u0022allowed_callers\u0022: []\n }\n ],\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022prompt\u0022: {\n \u0022id\u0022: \u0022string\u0022,\n \u0022version\u0022: \u0022string\u0022,\n \u0022variables\u0022: {}\n },\n \u0022access_programs\u0022: {\n \u0022cyber\u0022: \u0022standard\u0022\n },\n \u0022prompt_cache_options\u0022: {\n \u0022ttl\u0022: \u002230m\u0022,\n \u0022mode\u0022: \u0022implicit\u0022,\n \u0022prewarm\u0022: true,\n \u0022comparison_response_id\u0022: \u0022resp_123\u0022\n },\n \u0022service_tier\u0022: \u0022auto\u0022,\n \u0022truncation\u0022: \u0022disabled\u0022,\n \u0022reasoning\u0022: {\n \u0022mode\u0022: \u0022string\u0022,\n \u0022effort\u0022: \u0022medium\u0022,\n \u0022summary\u0022: \u0022auto\u0022,\n \u0022context\u0022: \u0022auto\u0022,\n \u0022generate_summary\u0022: \u0022auto\u0022\n },\n \u0022input\u0022: \u0022string\u0022,\n \u0022include\u0022: [\n \u0022file_search_call.results\u0022\n ],\n \u0022parallel_tool_calls\u0022: true,\n \u0022store\u0022: true,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022moderation\u0022: {\n \u0022model\u0022: \u0022string\u0022,\n \u0022policy\u0022: {\n \u0022input\u0022: {},\n \u0022output\u0022: {}\n }\n },\n \u0022stream\u0022: false,\n \u0022stream_options\u0022: {\n \u0022include_obfuscation\u0022: true\n },\n \u0022conversation\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022context_management\u0022: [\n {\n \u0022type\u0022: \u0022compaction\u0022,\n \u0022compact_threshold\u0022: 1000\n }\n ],\n \u0022max_output_tokens\u0022: 0\n}\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream\n# 400\n# Description: Invalid response request or incompatible request parameters.\n# Content-Type: application/json\n# 404\n# Description: The requested model or a referenced resource was not found or is unavailable to this caller.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json", "Format": "http", "OperationId": "createResponse", "Setup": null @@ -237,7 +237,7 @@ "Slug": "getresponse", "Description": "Retrieves a model response with the given ID.", "Language": "http", - "Code": "### Get a model response\n# @name getResponse\nGET {{host}}/responses/{{response_id}}?include={{include}}\u0026stream={{stream}}\u0026starting_after={{starting_after}}\u0026include_obfuscation={{include_obfuscation}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded.\n# Content-Type: application/json", + "Code": "### Get a model response\n# @name getResponse\nGET {{host}}/responses/{{response_id}}?include={{include}}\u0026stream={{stream}}\u0026starting_after={{starting_after}}\u0026include_obfuscation={{include_obfuscation}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json\n# 404\n# Description: The response was not found.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "getResponse", "Setup": null @@ -248,7 +248,7 @@ "Slug": "getinputtokencounts", "Description": "Returns input token counts of the request.\n\nReturns an object with \u0060object\u0060 set to \u0060response.input_tokens\u0060 and an \u0060input_tokens\u0060 count.", "Language": "http", - "Code": "### Get input token counts\n# @name Getinputtokencounts\nPOST {{host}}/responses/input_tokens\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model\u0022: \u0022string\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022previous_response_id\u0022: \u0022resp_123\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022async\u0022: true,\n \u0022description\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {},\n \u0022output_schema\u0022: {},\n \u0022strict\u0022: true,\n \u0022defer_loading\u0022: true,\n \u0022allowed_callers\u0022: []\n }\n ],\n \u0022text\u0022: {\n \u0022format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022verbosity\u0022: \u0022medium\u0022\n },\n \u0022reasoning\u0022: {\n \u0022mode\u0022: \u0022string\u0022,\n \u0022effort\u0022: \u0022medium\u0022,\n \u0022summary\u0022: \u0022auto\u0022,\n \u0022context\u0022: \u0022auto\u0022,\n \u0022generate_summary\u0022: \u0022auto\u0022\n },\n \u0022truncation\u0022: \u0022auto\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022personality\u0022: \u0022string\u0022,\n \u0022conversation\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022parallel_tool_calls\u0022: true\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded.\n# Content-Type: application/json", + "Code": "### Get input token counts\n# @name Getinputtokencounts\nPOST {{host}}/responses/input_tokens\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model\u0022: \u0022string\u0022,\n \u0022input\u0022: \u0022string\u0022,\n \u0022previous_response_id\u0022: \u0022resp_123\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022function\u0022,\n \u0022name\u0022: \u0022string\u0022,\n \u0022async\u0022: true,\n \u0022description\u0022: \u0022string\u0022,\n \u0022parameters\u0022: {},\n \u0022output_schema\u0022: {},\n \u0022strict\u0022: true,\n \u0022defer_loading\u0022: true,\n \u0022allowed_callers\u0022: []\n }\n ],\n \u0022text\u0022: {\n \u0022format\u0022: {\n \u0022type\u0022: \u0022text\u0022\n },\n \u0022verbosity\u0022: \u0022medium\u0022\n },\n \u0022reasoning\u0022: {\n \u0022mode\u0022: \u0022string\u0022,\n \u0022effort\u0022: \u0022medium\u0022,\n \u0022summary\u0022: \u0022auto\u0022,\n \u0022context\u0022: \u0022auto\u0022,\n \u0022generate_summary\u0022: \u0022auto\u0022\n },\n \u0022truncation\u0022: \u0022auto\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022personality\u0022: \u0022string\u0022,\n \u0022conversation\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n \u0022tool_choice\u0022: \u0022none\u0022,\n \u0022parallel_tool_calls\u0022: true\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 400\n# Description: The request to count input tokens is invalid or contains incompatible parameters.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "Getinputtokencounts", "Setup": null diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs index 752844456..a65ce9517 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs @@ -411,6 +411,43 @@ partial void ProcessCreateAgentResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs index 9f7ead713..c34c1a06d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs @@ -418,6 +418,43 @@ partial void ProcessCreateAgentEnvironmentFileResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentTemplate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentTemplate.g.cs index 100d2b33f..fbb21d2b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentTemplate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentTemplate.g.cs @@ -666,7 +666,7 @@ partial void ProcessCreateAgentEnvironmentTemplateResponseContent( /// Ordered, confidential setup commands. Command bodies are never returned. /// /// - /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for alpha/beta requests. + /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests. /// /// /// Environment variables made available to the agent. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgent.g.cs index 0248a6c4a..1fa3c7e5b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgent.g.cs @@ -400,6 +400,43 @@ partial void ProcessDeleteAgentResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentFiles.g.cs index 80cf8232c..62d5ba3e9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentFiles.g.cs @@ -446,6 +446,43 @@ partial void ProcessListAgentEnvironmentFilesResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionTurns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionTurns.g.cs index 17e4d8d50..8dd51dfa6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionTurns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionTurns.g.cs @@ -442,6 +442,43 @@ partial void ProcessListAgentSessionTurnsResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgents.g.cs index c09d1644e..235ba6e09 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgents.g.cs @@ -429,6 +429,43 @@ partial void ProcessListAgentsResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgent.g.cs index 09fd977ea..ab2eabe35 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgent.g.cs @@ -400,6 +400,43 @@ partial void ProcessRetrieveAgentResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironment.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironment.g.cs index f8f84d23e..c35c78fe9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironment.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironment.g.cs @@ -400,6 +400,43 @@ partial void ProcessRetrieveAgentEnvironmentResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionTurn.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionTurn.g.cs index 40b3fce8f..5ad22ce09 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionTurn.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionTurn.g.cs @@ -409,6 +409,43 @@ partial void ProcessRetrieveAgentSessionTurnResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs index 0e58c83cc..88d897e82 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs @@ -420,6 +420,43 @@ partial void ProcessUpdateAgentResponseContent( h => h.Key, h => h.Value)); } + // The API key lacks the required permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The requested session or event was not found. if ((int)__response.StatusCode == 404) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentEnvironmentTemplate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentEnvironmentTemplate.g.cs index 51e74539b..3f066811d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentEnvironmentTemplate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentEnvironmentTemplate.g.cs @@ -716,7 +716,7 @@ partial void ProcessUpdateAgentEnvironmentTemplateResponseContent( /// Replacement confidential setup commands, never included in returned resources. /// /// - /// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for alpha/beta requests. + /// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for beta requests. /// /// /// Replacement confidential environment values. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Audio.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Audio.JsonSerializerContext.g.cs index 8f992e9a5..5a708da27 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Audio.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Audio.JsonSerializerContext.g.cs @@ -29,12 +29,16 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AudioResponseFormat), TypeInfoPropertyName = "AudioResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoice), TypeInfoPropertyName = "VoiceIdsOrCustomVoice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateSpeechRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestModel), TypeInfoPropertyName = "CreateSpeechRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>), TypeInfoPropertyName = "AnyOfAnyOfVoiceIdsSharedCreateSpeechRequestVoiceCreateSpeechRequestVoice22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfVoiceIdsSharedCreateSpeechRequestVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice), TypeInfoPropertyName = "CreateSpeechRequestVoice2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat), TypeInfoPropertyName = "CreateSpeechRequestResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat), TypeInfoPropertyName = "CreateSpeechRequestStreamFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent), TypeInfoPropertyName = "CreateSpeechResponseStreamEvent2")] @@ -90,7 +94,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEventType), TypeInfoPropertyName = "SpeechAudioDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEventType), TypeInfoPropertyName = "SpeechAudioDoneEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEventUsage))] @@ -114,7 +117,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentResourceObject), TypeInfoPropertyName = "VoiceConsentResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), TypeInfoPropertyName = "VoiceIdsSharedEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceResourceObject), TypeInfoPropertyName = "VoiceResourceObject2")] @@ -127,9 +129,12 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AudioResponseFormat?), TypeInfoPropertyName = "NullableAudioResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoice?), TypeInfoPropertyName = "NullableVoiceIdsOrCustomVoice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringCreateSpeechRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestModel?), TypeInfoPropertyName = "NullableCreateSpeechRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>?), TypeInfoPropertyName = "NullableAnyOfAnyOfVoiceIdsSharedCreateSpeechRequestVoiceCreateSpeechRequestVoice22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfVoiceIdsSharedCreateSpeechRequestVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared?), TypeInfoPropertyName = "NullableVoiceIdsShared2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice?), TypeInfoPropertyName = "NullableCreateSpeechRequestVoice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat?), TypeInfoPropertyName = "NullableCreateSpeechRequestResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat?), TypeInfoPropertyName = "NullableCreateSpeechRequestStreamFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent?), TypeInfoPropertyName = "NullableCreateSpeechResponseStreamEvent2")] @@ -149,7 +154,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationRequestModel?), TypeInfoPropertyName = "NullableCreateTranslationRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat?), TypeInfoPropertyName = "NullableCreateTranslationRequestResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(float?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared?), TypeInfoPropertyName = "NullableVoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEventType?), TypeInfoPropertyName = "NullableSpeechAudioDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEventType?), TypeInfoPropertyName = "NullableSpeechAudioDoneEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEventType?), TypeInfoPropertyName = "NullableTranscriptTextDeltaEventType2")] @@ -228,7 +232,6 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoiceJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); @@ -237,6 +240,8 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); @@ -285,6 +290,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestModel?) + || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice) + + || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice?) + || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat) || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat?) @@ -418,6 +427,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice)) + { + return new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoiceJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice?)) + { + return new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoiceNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat)) { return new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs index 081a2479a..abb85918d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs @@ -343,6 +343,117 @@ partial void ProcessCreateSpeechResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid speech request, input, output format, or voice. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -380,6 +491,43 @@ partial void ProcessCreateSpeechResponseContent( h => h.Key, h => h.Value)); } + // The voice or speech audio could not be processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { @@ -746,6 +894,117 @@ partial void ProcessCreateSpeechResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid speech request, input, output format, or voice. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -783,6 +1042,43 @@ partial void ProcessCreateSpeechResponseContent( h => h.Key, h => h.Value)); } + // The voice or speech audio could not be processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { @@ -943,7 +1239,7 @@ partial void ProcessCreateSpeechResponseContent( public async global::System.Threading.Tasks.Task CreateSpeechAsync( global::tryAGI.OpenAI.AnyOf model, string input, - global::tryAGI.OpenAI.VoiceIdsOrCustomVoice voice, + global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2> voice, string? instructions = default, global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? responseFormat = default, double? speed = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsEventStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsEventStream.g.cs index d9bc03c6d..bad800808 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsEventStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsEventStream.g.cs @@ -416,7 +416,7 @@ partial void ProcessCreateSpeechAsEventStreamResponse( public async global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsEventStreamAsync( global::tryAGI.OpenAI.AnyOf model, string input, - global::tryAGI.OpenAI.VoiceIdsOrCustomVoice voice, + global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2> voice, string? instructions = default, global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? responseFormat = default, double? speed = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs index 0fa5bc473..904862ac6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs @@ -500,6 +500,154 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid audio input or request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio request exceeds the supported size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -537,6 +685,80 @@ request.Filename is null h => h.Key, h => h.Value)); } + // The audio could not be processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upstream audio service connection failed. + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { @@ -1269,6 +1491,154 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid audio input or request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio request exceeds the supported size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -1306,6 +1676,80 @@ request.Filename is null h => h.Key, h => h.Value)); } + // The audio could not be processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upstream audio service connection failed. + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { @@ -1927,6 +2371,154 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid audio input or request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio request exceeds the supported size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -1964,6 +2556,80 @@ request.Filename is null h => h.Key, h => h.Value)); } + // The audio could not be processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upstream audio service connection failed. + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs index 80b548b99..6b32d8cf1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs @@ -402,6 +402,154 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid audio input or request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio request exceeds the supported size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -439,6 +587,80 @@ request.Filename is null h => h.Key, h => h.Value)); } + // The audio could not be processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upstream audio service connection failed. + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { @@ -997,6 +1219,154 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid audio input or request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio request exceeds the supported size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -1034,6 +1404,80 @@ request.Filename is null h => h.Key, h => h.Value)); } + // The audio could not be processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upstream audio service connection failed. + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { @@ -1530,6 +1974,154 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid audio input or request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio request exceeds the supported size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -1567,6 +2159,80 @@ request.Filename is null h => h.Key, h => h.Value)); } + // The audio could not be processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upstream audio service connection failed. + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs index 7afc825a8..cb7eb8673 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs @@ -381,6 +381,117 @@ request.AudioSamplename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid voice request, consent recording, or audio sample. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or the consent recording was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio sample could not be processed or the voice could not be created. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -863,6 +974,117 @@ request.AudioSamplename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid voice request, consent recording, or audio sample. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or the consent recording was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio sample could not be processed or the voice could not be created. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -1292,6 +1514,117 @@ request.AudioSamplename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid voice request, consent recording, or audio sample. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or the consent recording was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio sample could not be processed or the voice could not be created. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs index e2f9acccd..da9770ce3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs @@ -381,6 +381,80 @@ request.Recordingname is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid consent recording or consent phrase. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -863,6 +937,80 @@ request.Recordingname is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid consent recording or consent phrase. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -1292,6 +1440,80 @@ request.Recordingname is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid consent recording or consent phrase. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs index ea1d0b631..7a8f7fdf1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs @@ -326,6 +326,80 @@ partial void ProcessDeleteVoiceConsentResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid consent recording ID. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or the consent recording was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.GetVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.GetVoiceConsent.g.cs index 147f91a73..b1380acfe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.GetVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.GetVoiceConsent.g.cs @@ -326,6 +326,80 @@ partial void ProcessGetVoiceConsentResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid consent recording ID. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or the consent recording was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs index fd6af6bce..ff808436e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs @@ -343,6 +343,80 @@ partial void ProcessListVoiceConsentsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid pagination parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or the pagination cursor was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs index 1052a42fa..22dca3d6d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs @@ -346,6 +346,80 @@ partial void ProcessUpdateVoiceConsentResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid consent recording ID or update. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or the consent recording was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs index 62678d72e..b03f09352 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs @@ -432,6 +432,80 @@ partial void ProcessListAuditLogsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // No audit log was found with the specified pagination cursor. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Batch.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Batch.JsonSerializerContext.g.cs index e0cd93ba7..1f0d8f167 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Batch.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Batch.JsonSerializerContext.g.cs @@ -38,9 +38,15 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestEndpoint), TypeInfoPropertyName = "CreateBatchRequestEndpoint2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow), TypeInfoPropertyName = "CreateBatchRequestCompletionWindow2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListBatchesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListBatchesResponseObject), TypeInfoPropertyName = "ListBatchesResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] @@ -50,6 +56,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestEndpoint?), TypeInfoPropertyName = "NullableCreateBatchRequestEndpoint2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow?), TypeInfoPropertyName = "NullableCreateBatchRequestCompletionWindow2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListBatchesResponseObject?), TypeInfoPropertyName = "NullableListBatchesResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [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 BatchSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -96,11 +104,13 @@ private BatchSourceGenerationContext(global::System.Text.Json.JsonSerializerOpti [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>()); @@ -154,7 +164,11 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ListBatchesResponseObject) - || typeToConvert == typeof(global::tryAGI.OpenAI.ListBatchesResponseObject?); + || typeToConvert == typeof(global::tryAGI.OpenAI.ListBatchesResponseObject?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -220,6 +234,16 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectNullableJsonConverter(); } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs index a7004bb35..0c7a9ad55 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs @@ -326,6 +326,154 @@ partial void ProcessCancelBatchResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid batch ID. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // No batch was found with the specified ID. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The batch's current status does not allow cancellation. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs index 702897384..af53f2c25 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs @@ -337,6 +337,154 @@ partial void ProcessCreateBatchResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request is invalid or the account cannot create a batch. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error prevented the batch from being created. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The batch could not be created because the service is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs index f71591a77..1b47e1c8a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs @@ -343,6 +343,117 @@ partial void ProcessListBatchesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid pagination parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // No batch was found with the specified pagination cursor. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs index 7be89da66..671936c5e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs @@ -326,6 +326,117 @@ partial void ProcessRetrieveBatchResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid batch ID. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // No batch was found with the specified ID. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Certificates.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Certificates.JsonSerializerContext.g.cs index fd81523b6..1b161ce1e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Certificates.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Certificates.JsonSerializerContext.g.cs @@ -52,6 +52,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponseObject), TypeInfoPropertyName = "OrganizationProjectCertificateActivationResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponseObject), TypeInfoPropertyName = "OrganizationProjectCertificateDeactivationResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToggleCertificatesRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadCertificateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] @@ -73,6 +75,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationProjectCertificateObject?), TypeInfoPropertyName = "NullableOrganizationProjectCertificateObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponseObject?), TypeInfoPropertyName = "NullableOrganizationProjectCertificateActivationResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponseObject?), TypeInfoPropertyName = "NullableOrganizationProjectCertificateDeactivationResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListOrganizationCertificatesOrder?), TypeInfoPropertyName = "NullableListOrganizationCertificatesOrder2")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs index 5cdbe3faa..c3a8dd6e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs @@ -341,6 +341,117 @@ partial void ProcessActivateOrganizationCertificatesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A certificate was not found in this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -378,6 +489,43 @@ partial void ProcessActivateOrganizationCertificatesResponseContent( h => h.Key, h => h.Value)); } + // The certificate update could not be completed because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs index c3e95e898..f70a94d05 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs @@ -350,6 +350,117 @@ partial void ProcessActivateProjectCertificatesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A certificate was not found in this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -387,6 +498,43 @@ partial void ProcessActivateProjectCertificatesResponseContent( h => h.Key, h => h.Value)); } + // The certificate update could not be completed because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs index 197bf9741..ca9796cf6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs @@ -341,6 +341,117 @@ partial void ProcessDeactivateOrganizationCertificatesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A certificate was not found in this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -378,6 +489,43 @@ partial void ProcessDeactivateOrganizationCertificatesResponseContent( h => h.Key, h => h.Value)); } + // The certificate update could not be completed because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs index d58e27298..2acdc5b36 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs @@ -350,6 +350,117 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A certificate was not found in this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -387,6 +498,43 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( h => h.Key, h => h.Value)); } + // The certificate update could not be completed because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs index 3a642da3c..364a60a4a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs @@ -330,6 +330,117 @@ partial void ProcessDeleteCertificateResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A certificate was not found in this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs index 762bacd0e..4a1d18395 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs @@ -342,6 +342,117 @@ partial void ProcessGetCertificateResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A certificate was not found in this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs index 4d227139f..c6b665490 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs @@ -359,6 +359,80 @@ partial void ProcessListOrganizationCertificatesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs index d0d06fe3c..e3241d417 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs @@ -368,6 +368,80 @@ partial void ProcessListProjectCertificatesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs index 604910ec3..adb43d377 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs @@ -348,6 +348,117 @@ partial void ProcessModifyCertificateResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A certificate was not found in this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -385,6 +496,43 @@ partial void ProcessModifyCertificateResponseContent( h => h.Key, h => h.Value)); } + // The certificate update could not be completed because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs index f6cff2219..6ab256f0a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs @@ -341,6 +341,80 @@ partial void ProcessUploadCertificateResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Chat.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Chat.JsonSerializerContext.g.cs index 77cddd7fb..3259c4996 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Chat.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Chat.JsonSerializerContext.g.cs @@ -201,6 +201,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelResponseProperties))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheOptionsParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsType), TypeInfoPropertyName = "CustomToolChatCompletionsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustom))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCustomToolChatCompletionsCustomFormatTextFormatCustomToolChatCompletionsCustomFormatGrammarFormat2")] @@ -216,7 +217,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), TypeInfoPropertyName = "ModelIdsSharedEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention), TypeInfoPropertyName = "ModelResponsePropertiesPromptCacheRetention2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PredictionContentType), TypeInfoPropertyName = "PredictionContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObjectType), TypeInfoPropertyName = "ResponseFormatJsonObjectType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchemaType), TypeInfoPropertyName = "ResponseFormatJsonSchemaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema))] @@ -225,6 +225,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseModalitiesVariant1Item), TypeInfoPropertyName = "ResponseModalitiesVariant1Item2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), TypeInfoPropertyName = "VoiceIdsSharedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationInputType), TypeInfoPropertyName = "ModerationInputType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationResultBodyType), TypeInfoPropertyName = "ModerationResultBodyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -236,9 +239,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationMode), TypeInfoPropertyName = "ModerationMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationConfigParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationPolicyParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateChatCompletionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListChatCompletionsOrder), TypeInfoPropertyName = "ListChatCompletionsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetChatCompletionMessagesOrder), TypeInfoPropertyName = "GetChatCompletionMessagesOrder2")] @@ -315,6 +315,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseObject?), TypeInfoPropertyName = "NullableCreateChatCompletionResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason?), TypeInfoPropertyName = "NullableCreateChatCompletionStreamResponseChoiceFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject?), TypeInfoPropertyName = "NullableCreateChatCompletionStreamResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared?), TypeInfoPropertyName = "NullableVoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsType?), TypeInfoPropertyName = "NullableCustomToolChatCompletionsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfCustomToolChatCompletionsCustomFormatTextFormatCustomToolChatCompletionsCustomFormatGrammarFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType?), TypeInfoPropertyName = "NullableCustomToolChatCompletionsCustomFormatTextFormatType2")] @@ -323,20 +324,19 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum?), TypeInfoPropertyName = "NullableModelIdsSharedEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention?), TypeInfoPropertyName = "NullableModelResponsePropertiesPromptCacheRetention2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PredictionContentType?), TypeInfoPropertyName = "NullablePredictionContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared?), TypeInfoPropertyName = "NullableVoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObjectType?), TypeInfoPropertyName = "NullableResponseFormatJsonObjectType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchemaType?), TypeInfoPropertyName = "NullableResponseFormatJsonSchemaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextType?), TypeInfoPropertyName = "NullableResponseFormatTextType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseModalitiesVariant1Item?), TypeInfoPropertyName = "NullableResponseModalitiesVariant1Item2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum?), TypeInfoPropertyName = "NullableVoiceIdsSharedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationInputType?), TypeInfoPropertyName = "NullableModerationInputType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationResultBodyType?), TypeInfoPropertyName = "NullableModerationResultBodyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheTTLEnum?), TypeInfoPropertyName = "NullablePromptCacheTTLEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheModeEnum?), TypeInfoPropertyName = "NullablePromptCacheModeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointParamMode?), TypeInfoPropertyName = "NullablePromptCacheBreakpointParamMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationMode?), TypeInfoPropertyName = "NullableModerationMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListChatCompletionsOrder?), TypeInfoPropertyName = "NullableListChatCompletionsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetChatCompletionMessagesOrder?), TypeInfoPropertyName = "NullableGetChatCompletionMessagesOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -714,6 +714,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.WebSearchContextSize?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ModerationInputType) || typeToConvert == typeof(global::tryAGI.OpenAI.ModerationInputType?) @@ -738,10 +742,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ModerationMode?) - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) - - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) - || typeToConvert == typeof(global::tryAGI.OpenAI.ListChatCompletionsOrder) || typeToConvert == typeof(global::tryAGI.OpenAI.ListChatCompletionsOrder?) @@ -1345,6 +1345,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ModerationInputType)) { return new global::tryAGI.OpenAI.JsonConverters.ModerationInputTypeJsonConverter(); @@ -1405,16 +1415,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ModerationModeNullableJsonConverter(); } - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); - } - - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); - } - if (typeToConvert == typeof(global::tryAGI.OpenAI.ListChatCompletionsOrder)) { return new global::tryAGI.OpenAI.JsonConverters.ListChatCompletionsOrderJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs index cbcee8e73..5582a6d51 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs @@ -365,6 +365,154 @@ partial void ProcessCreateChatCompletionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid chat completion request or incompatible request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested model or a referenced resource was not found or is unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -402,6 +550,43 @@ partial void ProcessCreateChatCompletionResponseContent( h => h.Key, h => h.Value)); } + // The chat completion could not be processed due to an internal error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs index b6c8ec2e6..c38209614 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs @@ -328,6 +328,117 @@ partial void ProcessDeleteChatCompletionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // No stored chat completion was found with the specified ID. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error prevented the request from being completed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs index 1d16faa18..f31988cda 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs @@ -328,6 +328,117 @@ partial void ProcessGetChatCompletionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // No stored chat completion was found with the specified ID. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error prevented the request from being completed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs index cf9a0831c..b89c15c5a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs @@ -370,6 +370,154 @@ partial void ProcessGetChatCompletionMessagesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid message pagination parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // No stored chat completion was found with the specified ID. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error prevented the request from being completed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs index 8f137c706..a996409ef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs @@ -379,6 +379,117 @@ partial void ProcessListChatCompletionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid pagination or filter parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error prevented the request from being completed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs index ac1495cda..b136b33b4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs @@ -350,6 +350,154 @@ partial void ProcessUpdateChatCompletionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid metadata update. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // No stored chat completion was found with the specified ID. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error prevented the request from being completed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs index 30df06910..c203f1b22 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs @@ -339,6 +339,154 @@ partial void ProcessCreateCompletionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid completion request or incompatible request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested model was not found, is unavailable, or does not support this endpoint. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -376,6 +524,43 @@ partial void ProcessCreateCompletionResponseContent( h => h.Key, h => h.Value)); } + // The completion could not be processed due to an internal error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Conversations.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Conversations.JsonSerializerContext.g.cs index c473e050b..9ba058e74 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Conversations.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Conversations.JsonSerializerContext.g.cs @@ -284,6 +284,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallAction), TypeInfoPropertyName = "WebSearchToolCallAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType), TypeInfoPropertyName = "WebSearchToolCallActionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointParamMode), TypeInfoPropertyName = "PromptCacheBreakpointParamMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType), TypeInfoPropertyName = "SkillReferenceParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParam))] @@ -511,9 +514,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType), TypeInfoPropertyName = "ApplyPatchCreateFileOperationParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType), TypeInfoPropertyName = "ApplyPatchDeleteFileOperationParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType), TypeInfoPropertyName = "ApplyPatchUpdateFileOperationParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParam), TypeInfoPropertyName = "ApplyPatchOperationParam2")] internal sealed partial class ConversationsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -526,6 +526,9 @@ internal sealed partial class ConversationsSourceGenerationContextChunk0 : globa Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType), TypeInfoPropertyName = "ApplyPatchUpdateFileOperationParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParam), TypeInfoPropertyName = "ApplyPatchOperationParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType), TypeInfoPropertyName = "ApplyPatchOperationParamDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType), TypeInfoPropertyName = "ApplyPatchToolCallItemParamType2")] @@ -538,9 +541,6 @@ internal sealed partial class ConversationsSourceGenerationContextChunk0 : globa [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemParamType), TypeInfoPropertyName = "ProgramOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResourceObject), TypeInfoPropertyName = "ConversationResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [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")] @@ -653,6 +653,8 @@ internal sealed partial class ConversationsSourceGenerationContextChunk0 : globa [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchCallStatus?), TypeInfoPropertyName = "NullableWebSearchCallStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallAction?), TypeInfoPropertyName = "NullableWebSearchToolCallAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType?), TypeInfoPropertyName = "NullableWebSearchToolCallActionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointParamMode?), TypeInfoPropertyName = "NullablePromptCacheBreakpointParamMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType?), TypeInfoPropertyName = "NullableSkillReferenceParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamType?), TypeInfoPropertyName = "NullableInlineSkillSourceParamType2")] @@ -815,8 +817,6 @@ internal sealed partial class ConversationsSourceGenerationContextChunk0 : globa [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemStatus?), TypeInfoPropertyName = "NullableProgramOutputItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemParamType?), TypeInfoPropertyName = "NullableProgramOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResourceObject?), TypeInfoPropertyName = "NullableConversationResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversationResourceObject?), TypeInfoPropertyName = "NullableDeletedConversationResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListConversationItemsOrder?), TypeInfoPropertyName = "NullableListConversationItemsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -916,6 +916,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputMessageContentJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnnotationJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContentItem3JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolCallCallerJsonConverter()); @@ -934,7 +935,6 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant13JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); @@ -1275,6 +1275,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.PromptCacheBreakpointParamMode) || typeToConvert == typeof(global::tryAGI.OpenAI.PromptCacheBreakpointParamMode?) @@ -1907,10 +1911,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ConversationResourceObject?) - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) - - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) - || typeToConvert == typeof(global::tryAGI.OpenAI.DeletedConversationResourceObject) || typeToConvert == typeof(global::tryAGI.OpenAI.DeletedConversationResourceObject?) @@ -2644,6 +2644,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.PromptCacheBreakpointParamMode)) { return new global::tryAGI.OpenAI.JsonConverters.PromptCacheBreakpointParamModeJsonConverter(); @@ -4224,16 +4234,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectNullableJsonConverter(); } - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); - } - - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); - } - if (typeToConvert == typeof(global::tryAGI.OpenAI.DeletedConversationResourceObject)) { return new global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversation.g.cs index b64ec656b..20ba02aec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversation.g.cs @@ -337,6 +337,43 @@ partial void ProcessCreateConversationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The conversation input is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -374,6 +411,43 @@ partial void ProcessCreateConversationResponseContent( h => h.Key, h => h.Value)); } + // The conversation update could not be finalized. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversationItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversationItems.g.cs index 032ec2d9d..d89a40e8c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversationItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversationItems.g.cs @@ -362,6 +362,80 @@ partial void ProcessCreateConversationItemsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The items are invalid, are already in the conversation, or the conversation is locked. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The conversation was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -399,6 +473,43 @@ partial void ProcessCreateConversationItemsResponseContent( h => h.Key, h => h.Value)); } + // The conversation update could not be finalized. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversation.g.cs index 6611aba24..ac709f744 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversation.g.cs @@ -330,6 +330,43 @@ partial void ProcessDeleteConversationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The conversation was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversationItem.g.cs index a3c6bc166..7aaf3d15a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversationItem.g.cs @@ -343,6 +343,80 @@ partial void ProcessDeleteConversationItemResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The item cannot be removed while the conversation is locked. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The conversation or the item in that conversation was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -380,6 +454,43 @@ partial void ProcessDeleteConversationItemResponseContent( h => h.Key, h => h.Value)); } + // The conversation update could not be finalized. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversation.g.cs index 64a5e12b0..ac94d3b30 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversation.g.cs @@ -330,6 +330,43 @@ partial void ProcessGetConversationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The conversation was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversationItem.g.cs index a91167efe..dbf313427 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversationItem.g.cs @@ -355,6 +355,43 @@ partial void ProcessGetConversationItemResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The conversation or the item in that conversation was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListConversationItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListConversationItems.g.cs index 87b67c717..9524da659 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListConversationItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListConversationItems.g.cs @@ -376,6 +376,80 @@ partial void ProcessListConversationItemsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The stored encrypted item content could not be validated. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The conversation or the item specified by `after` was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateConversation.g.cs index 9b5e956ee..a43fcb194 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateConversation.g.cs @@ -350,6 +350,80 @@ partial void ProcessUpdateConversationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The conversation metadata is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The conversation was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -387,6 +461,43 @@ partial void ProcessUpdateConversationResponseContent( h => h.Key, h => h.Value)); } + // The conversation update could not be finalized. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetention.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetention.JsonSerializerContext.g.cs index 2b65937bc..33690e5fb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetention.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetention.JsonSerializerContext.g.cs @@ -19,9 +19,15 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationDataRetention))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationDataRetentionObject), TypeInfoPropertyName = "OrganizationDataRetentionObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationDataRetentionType), TypeInfoPropertyName = "OrganizationDataRetentionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectDataRetention))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectDataRetentionObject), TypeInfoPropertyName = "ProjectDataRetentionObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectDataRetentionType), TypeInfoPropertyName = "ProjectDataRetentionType2")] @@ -29,12 +35,18 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBodyRetentionType), TypeInfoPropertyName = "UpdateOrganizationDataRetentionBodyRetentionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateProjectDataRetentionBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType), TypeInfoPropertyName = "UpdateProjectDataRetentionBodyRetentionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationDataRetentionObject?), TypeInfoPropertyName = "NullableOrganizationDataRetentionObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationDataRetentionType?), TypeInfoPropertyName = "NullableOrganizationDataRetentionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectDataRetentionObject?), TypeInfoPropertyName = "NullableProjectDataRetentionObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectDataRetentionType?), TypeInfoPropertyName = "NullableProjectDataRetentionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBodyRetentionType?), TypeInfoPropertyName = "NullableUpdateOrganizationDataRetentionBodyRetentionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType?), TypeInfoPropertyName = "NullableUpdateProjectDataRetentionBodyRetentionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] internal sealed partial class DataRetentionSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -79,11 +91,13 @@ private DataRetentionSourceGenerationContext(global::System.Text.Json.JsonSerial [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>()); @@ -137,7 +151,11 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType) - || typeToConvert == typeof(global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType?); + || typeToConvert == typeof(global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -203,6 +221,16 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::tryAGI.OpenAI.JsonConverters.UpdateProjectDataRetentionBodyRetentionTypeNullableJsonConverter(); } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveOrganizationDataRetention.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveOrganizationDataRetention.g.cs index e8a1e30c4..27a3abde9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveOrganizationDataRetention.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveOrganizationDataRetention.g.cs @@ -319,6 +319,80 @@ partial void ProcessRetrieveOrganizationDataRetentionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveProjectDataRetention.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveProjectDataRetention.g.cs index 1c14fa03e..26cf0da97 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveProjectDataRetention.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveProjectDataRetention.g.cs @@ -328,6 +328,117 @@ partial void ProcessRetrieveProjectDataRetentionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project ID is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateOrganizationDataRetention.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateOrganizationDataRetention.g.cs index 8d4d676ab..ff2ea86ed 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateOrganizationDataRetention.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateOrganizationDataRetention.g.cs @@ -339,6 +339,117 @@ partial void ProcessUpdateOrganizationDataRetentionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested data retention setting or transition is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateProjectDataRetention.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateProjectDataRetention.g.cs index f24a22fa1..37353f9c5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateProjectDataRetention.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateProjectDataRetention.g.cs @@ -348,6 +348,117 @@ partial void ProcessUpdateProjectDataRetentionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested data retention setting or transition is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs index ea1aef14c..1fe8ce182 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs @@ -337,6 +337,117 @@ partial void ProcessCreateEmbeddingResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid embedding input or request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication failed because the API key is missing or revoked, or the client IP is not authorized. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to a personal API organization is blocked by the organization policy. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -374,6 +485,43 @@ partial void ProcessCreateEmbeddingResponseContent( h => h.Key, h => h.Value)); } + // The embedding request could not be processed due to an internal error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Evals.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Evals.JsonSerializerContext.g.cs index 07ed8a338..428dd25b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Evals.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Evals.JsonSerializerContext.g.cs @@ -252,6 +252,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolType), TypeInfoPropertyName = "WebSearchToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolFilters))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolSearchContextSize), TypeInfoPropertyName = "WebSearchToolSearchContextSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType), TypeInfoPropertyName = "SkillReferenceParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamType), TypeInfoPropertyName = "InlineSkillSourceParamType2")] @@ -329,9 +332,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchPreviewToolType), TypeInfoPropertyName = "WebSearchPreviewToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolParamType), TypeInfoPropertyName = "ApplyPatchToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateEvalRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListEvalsOrder), TypeInfoPropertyName = "ListEvalsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListEvalsOrderBy), TypeInfoPropertyName = "ListEvalsOrderBy2")] @@ -439,6 +439,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type?), TypeInfoPropertyName = "NullableWebSearchApproximateLocationWebSearchApproximateLocation1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolType?), TypeInfoPropertyName = "NullableWebSearchToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolSearchContextSize?), TypeInfoPropertyName = "NullableWebSearchToolSearchContextSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType?), TypeInfoPropertyName = "NullableSkillReferenceParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamType?), TypeInfoPropertyName = "NullableInlineSkillSourceParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamMediaType?), TypeInfoPropertyName = "NullableInlineSkillSourceParamMediaType2")] @@ -490,8 +492,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SearchContentType?), TypeInfoPropertyName = "NullableSearchContentType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchPreviewToolType?), TypeInfoPropertyName = "NullableWebSearchPreviewToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolParamType?), TypeInfoPropertyName = "NullableApplyPatchToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListEvalsOrder?), TypeInfoPropertyName = "NullableListEvalsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListEvalsOrderBy?), TypeInfoPropertyName = "NullableListEvalsOrderBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetEvalRunsOrder?), TypeInfoPropertyName = "NullableGetEvalRunsOrder2")] @@ -602,6 +602,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputContentJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.TextResponseFormatConfigurationJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.Filters2JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.NetworkPolicy2JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.NetworkPolicy3JsonConverter()); @@ -609,7 +610,6 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant1JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.Format2JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem13JsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); @@ -926,6 +926,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.WebSearchToolSearchContextSize?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.SkillReferenceParamType) || typeToConvert == typeof(global::tryAGI.OpenAI.SkillReferenceParamType?) @@ -1118,10 +1122,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ApplyPatchToolParamType?) - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) - - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) - || typeToConvert == typeof(global::tryAGI.OpenAI.ListEvalsOrder) || typeToConvert == typeof(global::tryAGI.OpenAI.ListEvalsOrder?) @@ -1791,6 +1791,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.WebSearchToolSearchContextSizeNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.SkillReferenceParamType)) { return new global::tryAGI.OpenAI.JsonConverters.SkillReferenceParamTypeJsonConverter(); @@ -2271,16 +2281,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolParamTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); - } - - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); - } - if (typeToConvert == typeof(global::tryAGI.OpenAI.ListEvalsOrder)) { return new global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs index d97bf82dc..a0e2d532d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs @@ -343,6 +343,43 @@ partial void ProcessCreateEvalResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The evaluation input or grader configuration is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs index ef82ed55b..81fa4b041 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs @@ -351,19 +351,19 @@ partial void ProcessCreateEvalRunResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::tryAGI.OpenAI.Error? __value_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -372,7 +372,7 @@ partial void ProcessCreateEvalRunResponseContent( } - throw global::tryAGI.OpenAI.ApiException.Create( + throw global::tryAGI.OpenAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -383,6 +383,43 @@ partial void ProcessCreateEvalRunResponseContent( h => h.Key, h => h.Value)); } + // The evaluation or a referenced resource was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -420,6 +457,43 @@ partial void ProcessCreateEvalRunResponseContent( h => h.Key, h => h.Value)); } + // The evaluation run could not be created. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs index 9cf5da21f..15c834c1c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs @@ -326,24 +326,61 @@ partial void ProcessDeleteEvalResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The evaluation cannot be deleted while it has unfinished runs. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // Evaluation not found. if ((int)__response.StatusCode == 404) { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::tryAGI.OpenAI.Error? __value_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -352,7 +389,7 @@ partial void ProcessDeleteEvalResponseContent( } - throw global::tryAGI.OpenAI.ApiException.Create( + throw global::tryAGI.OpenAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs index 160a8e147..5c1a1b068 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs @@ -335,24 +335,61 @@ partial void ProcessDeleteEvalRunResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The evaluation run cannot be deleted until it is finished. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // Run not found if ((int)__response.StatusCode == 404) { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::tryAGI.OpenAI.Error? __value_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -361,7 +398,7 @@ partial void ProcessDeleteEvalRunResponseContent( } - throw global::tryAGI.OpenAI.ApiException.Create( + throw global::tryAGI.OpenAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs index 58ce59d15..702d4cab8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs @@ -326,6 +326,43 @@ partial void ProcessGetEvalResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The evaluation was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs index 3fb09672d..947afd691 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs @@ -335,6 +335,80 @@ partial void ProcessGetEvalRunResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The evaluation run does not belong to the specified evaluation. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The evaluation or evaluation run was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs index 80fccef81..dd96acfd4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs @@ -344,6 +344,80 @@ partial void ProcessGetEvalRunOutputItemResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The output item was not found, its identifier is invalid, or the run does not belong to the evaluation. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The evaluation or evaluation run was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs index 445fe2698..a4e480cfd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs @@ -385,6 +385,80 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The output item list parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The evaluation or evaluation run was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs index 6db1713c9..3caeb5488 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs @@ -376,6 +376,80 @@ partial void ProcessGetEvalRunsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The run list parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The evaluation or the run specified by `after` was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs index 860212091..305542a50 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs @@ -346,6 +346,80 @@ partial void ProcessUpdateEvalResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The evaluation name or metadata is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The evaluation was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Files.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Files.JsonSerializerContext.g.cs index cf31a6897..bf419fec7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Files.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Files.JsonSerializerContext.g.cs @@ -20,6 +20,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] @@ -28,6 +29,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFileResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFileResponseObject), TypeInfoPropertyName = "DeleteFileResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfterAnchor), TypeInfoPropertyName = "FileExpirationAfterAnchor2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -35,6 +39,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileObject), TypeInfoPropertyName = "OpenAIFileObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFilePurpose), TypeInfoPropertyName = "OpenAIFilePurpose2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileStatus), TypeInfoPropertyName = "OpenAIFileStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesOrder), TypeInfoPropertyName = "ListFilesOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -45,6 +52,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileObject?), TypeInfoPropertyName = "NullableOpenAIFileObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFilePurpose?), TypeInfoPropertyName = "NullableOpenAIFilePurpose2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileStatus?), TypeInfoPropertyName = "NullableOpenAIFileStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesOrder?), TypeInfoPropertyName = "NullableListFilesOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class FilesSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -91,11 +100,13 @@ private FilesSourceGenerationContext(global::System.Text.Json.JsonSerializerOpti [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); @@ -152,6 +163,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.OpenAIFileStatus?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ListFilesOrder) || typeToConvert == typeof(global::tryAGI.OpenAI.ListFilesOrder?); @@ -221,6 +236,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.OpenAIFileStatusNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ListFilesOrder)) { return new global::tryAGI.OpenAI.JsonConverters.ListFilesOrderJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs index 3bd6d63dc..2a4d6eed3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs @@ -430,6 +430,117 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file upload request is invalid or exceeds a file size or storage quota limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many file requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The file could not be uploaded because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -965,6 +1076,117 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file upload request is invalid or exceeds a file size or storage quota limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many file requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The file could not be uploaded because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -1423,6 +1645,117 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file upload request is invalid or exceeds a file size or storage quota limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many file requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The file could not be uploaded because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs index 7a23f9acc..c4ccf4ce9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs @@ -326,6 +326,80 @@ partial void ProcessDeleteFileResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many file requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs index 1f9c65aa5..ccee46083 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs @@ -39,7 +39,7 @@ partial void ProcessDownloadFileResponse( partial void ProcessDownloadFileResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); + ref byte[] content); /// /// Retrieve file content
@@ -49,7 +49,7 @@ partial void ProcessDownloadFileResponseContent( /// 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 DownloadFileAsync( + public async global::System.Threading.Tasks.Task DownloadFileAsync( string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -70,7 +70,470 @@ partial void ProcessDownloadFileResponseContent( /// 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> DownloadFileAsResponseAsync( + public async global::System.Threading.Tasks.Task DownloadFileAsStreamAsync( + string fileId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDownloadFileArguments( + httpClient: HttpClient, + fileId: ref fileId); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DownloadFileSecurityRequirements, + operationName: "DownloadFileAsync"); + + 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: $"/files/{fileId}/content", + 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); + PrepareDownloadFileRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + fileId: fileId!); + + 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: "DownloadFile", + methodName: "DownloadFileAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + 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.ResponseHeadersRead, + 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: "DownloadFile", + methodName: "DownloadFileAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + 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: "DownloadFile", + methodName: "DownloadFileAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + 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."); + } + + try + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDownloadFileResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DownloadFile", + methodName: "DownloadFileAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + 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: "DownloadFile", + methodName: "DownloadFileAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + 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); + } + // The file cannot be downloaded for its purpose or the account does not have permission to download it. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The file was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many file requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The file could not be downloaded because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::tryAGI.OpenAI.ResponseStream(__response, __content); + } + 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)); + } + + } + catch + { + __response.Dispose(); + throw; + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Retrieve file content
+ /// Returns a response containing the contents of the specified file. + ///
+ /// + /// 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> DownloadFileAsResponseAsync( string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -326,19 +789,163 @@ partial void ProcessDownloadFileResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file cannot be downloaded for its purpose or the account does not have permission to download it. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The file was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many file requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The file could not be downloaded because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { - var __content = await __response.Content.ReadAsStringAsync( + var __content = await __response.Content.ReadAsByteArrayAsync( #if NET5_0_OR_GREATER __effectiveCancellationToken #endif ).ConfigureAwait(false); - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); ProcessDownloadFileResponseContent( httpClient: HttpClient, httpResponseMessage: __response, @@ -348,7 +955,7 @@ partial void ProcessDownloadFileResponseContent( { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -358,9 +965,9 @@ partial void ProcessDownloadFileResponseContent( { throw global::tryAGI.OpenAI.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __response.ReasonPhrase ?? string.Empty, innerException: __ex, - responseBody: __content, + responseBody: null, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, @@ -372,13 +979,13 @@ partial void ProcessDownloadFileResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( + var __content = await __response.Content.ReadAsByteArrayAsync( #if NET5_0_OR_GREATER __effectiveCancellationToken #endif ).ConfigureAwait(false); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs index 4c320f1ff..ed9928458 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs @@ -367,6 +367,117 @@ partial void ProcessListFilesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file listing parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The file specified by the after cursor was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many file requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs index 12e8e41e9..75be2f5bf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs @@ -326,6 +326,80 @@ partial void ProcessRetrieveFileResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many file requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuning.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuning.JsonSerializerContext.g.cs index 1af8404b7..267d0673a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuning.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuning.JsonSerializerContext.g.cs @@ -45,6 +45,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneMethod))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject), TypeInfoPropertyName = "DeleteFineTuningCheckpointPermissionResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderLabelModel))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderPython))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderScoreModel))] @@ -153,6 +156,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunGraderResponseMetadataErrors))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ValidateGraderRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ValidateGraderResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode), TypeInfoPropertyName = "PromptCacheBreakpointConfigMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentType), TypeInfoPropertyName = "InputTextContentType2")] @@ -233,6 +239,8 @@ namespace tryAGI.OpenAI [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.ListPaginatedFineTuningJobsResponseObject?), TypeInfoPropertyName = "NullableListPaginatedFineTuningJobsResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode?), TypeInfoPropertyName = "NullablePromptCacheBreakpointConfigMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentType?), TypeInfoPropertyName = "NullableInputTextContentType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder?), TypeInfoPropertyName = "NullableListFineTuningCheckpointPermissionsOrder2")] @@ -292,6 +300,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions { options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EvalItemContentJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EvalItemContentItemJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); @@ -319,6 +328,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); @@ -557,6 +567,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ReasoningEffortEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode) || typeToConvert == typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode?) @@ -1084,6 +1098,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ReasoningEffortEnumNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode)) { return new global::tryAGI.OpenAI.JsonConverters.PromptCacheBreakpointConfigModeJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs index b06801bcd..6795eb712 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs @@ -330,6 +330,117 @@ partial void ProcessCancelFineTuningJobResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The fine-tuning job cannot be cancelled in its current state. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The fine-tuning job was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs index 5c97967a8..4167255e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs @@ -352,6 +352,117 @@ partial void ProcessCreateFineTuningCheckpointPermissionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request is invalid or checkpoint permissions cannot be changed for the requested projects or job state. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The checkpoint or its fine-tuning job was not found, or the checkpoint cannot be shared. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs index 70432d5e1..006c847f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs @@ -343,6 +343,80 @@ partial void ProcessCreateFineTuningJobResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request is invalid or the organization does not meet the requirements to create a fine-tuning job. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A request or fine-tuning job limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs index c137c6f01..7e0064cd8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs @@ -345,6 +345,117 @@ partial void ProcessDeleteFineTuningCheckpointPermissionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The checkpoint permission cannot be removed for the requested project or job state. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The checkpoint, permission, associated project, or fine-tuning job was not found, or the checkpoint cannot be shared. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs index 5cb6c3d5e..368705236 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs @@ -382,6 +382,80 @@ partial void ProcessListFineTuningCheckpointPermissionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The query parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs index 248cc03b4..84f6d3f8f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs @@ -356,6 +356,117 @@ partial void ProcessListFineTuningEventsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The query parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The fine-tuning job was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs index 7c41321e2..c068cde10 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs @@ -356,6 +356,117 @@ partial void ProcessListFineTuningJobCheckpointsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The query parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The fine-tuning job was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs index 9c7700c5f..56df06930 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs @@ -353,6 +353,80 @@ partial void ProcessListPaginatedFineTuningJobsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The query parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs index 0eb571e64..0da1e4223 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs @@ -330,6 +330,117 @@ partial void ProcessPauseFineTuningJobResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The fine-tuning job cannot be paused in its current state or does not support pausing. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The fine-tuning job was not found or is not accessible, or this operation is unavailable. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs index ac09d7600..8105332a0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs @@ -330,6 +330,117 @@ partial void ProcessResumeFineTuningJobResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The fine-tuning job cannot be resumed in its current state or does not support resuming. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The fine-tuning job was not found or is not accessible, or this operation is unavailable. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A request or fine-tuning job limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs index e03aba81c..cdd35b5f5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs @@ -332,6 +332,80 @@ partial void ProcessRetrieveFineTuningJobResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The fine-tuning job was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs index 37df0e1c4..32fc33c27 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs @@ -337,6 +337,80 @@ partial void ProcessRunGraderResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The grader definition or request is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs index 34bb79dbd..4a9c0ac1d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs @@ -337,6 +337,80 @@ partial void ProcessValidateGraderResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The grader definition or request is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignments.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignments.JsonSerializerContext.g.cs index f28f0b2e1..22edde6fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignments.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignments.JsonSerializerContext.g.cs @@ -35,6 +35,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignment))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignmentObject), TypeInfoPropertyName = "GroupRoleAssignmentObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Role))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject), TypeInfoPropertyName = "RoleObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResource))] @@ -48,6 +50,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupObject?), TypeInfoPropertyName = "NullableGroupObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignmentObject?), TypeInfoPropertyName = "NullableGroupRoleAssignmentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject?), TypeInfoPropertyName = "NullableRoleObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResourceObject?), TypeInfoPropertyName = "NullableRoleListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignGroupRole.g.cs index db3cd9170..7f072efd7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignGroupRole.g.cs @@ -348,6 +348,117 @@ partial void ProcessAssignGroupRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupRoleAssignments.g.cs index 20680fe60..72ad3ce08 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupRoleAssignments.g.cs @@ -360,6 +360,117 @@ partial void ProcessListGroupRoleAssignmentsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.RetrieveGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.RetrieveGroupRole.g.cs index effaae4fb..5160e6157 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.RetrieveGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.RetrieveGroupRole.g.cs @@ -337,6 +337,117 @@ partial void ProcessRetrieveGroupRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignGroupRole.g.cs index 099f09f08..ca6b0cbde 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignGroupRole.g.cs @@ -337,6 +337,117 @@ partial void ProcessUnassignGroupRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs index a9224b2c0..5ad9eeedf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs @@ -368,6 +368,117 @@ partial void ProcessListGroupUsersResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -405,6 +516,43 @@ partial void ProcessListGroupUsersResponseContent( h => h.Key, h => h.Value)); } + // The upstream group service returned an invalid pagination cursor. + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RetrieveGroupUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RetrieveGroupUser.g.cs index d9ce07b70..18d882f78 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RetrieveGroupUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RetrieveGroupUser.g.cs @@ -337,6 +337,117 @@ partial void ProcessRetrieveGroupUserResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Groups.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Groups.JsonSerializerContext.g.cs index 4e26d7b7c..61793db85 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Groups.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Groups.JsonSerializerContext.g.cs @@ -34,6 +34,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResourceWithSuccess))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResponseGroupType), TypeInfoPropertyName = "GroupResponseGroupType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateGroupBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] @@ -44,6 +46,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupDeletedResourceObject?), TypeInfoPropertyName = "NullableGroupDeletedResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupListResourceObject?), TypeInfoPropertyName = "NullableGroupListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResponseGroupType?), TypeInfoPropertyName = "NullableGroupResponseGroupType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListGroupsOrder?), TypeInfoPropertyName = "NullableListGroupsOrder2")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs index 7b4c46009..4f9bef590 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs @@ -339,6 +339,154 @@ partial void ProcessCreateGroupResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization has reached its maximum number of groups. + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -376,6 +524,43 @@ partial void ProcessCreateGroupResponseContent( h => h.Key, h => h.Value)); } + // The group operation could not be completed because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs index bf09f5615..792b9c215 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs @@ -328,6 +328,117 @@ partial void ProcessDeleteGroupResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs index 848c6ce66..02368ecf6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs @@ -359,6 +359,117 @@ partial void ProcessListGroupsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.RetrieveGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.RetrieveGroup.g.cs index 135312c99..7ffa1c9ff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.RetrieveGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.RetrieveGroup.g.cs @@ -328,6 +328,117 @@ partial void ProcessRetrieveGroupResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -365,6 +476,43 @@ partial void ProcessRetrieveGroupResponseContent( h => h.Key, h => h.Value)); } + // The group operation could not be completed because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs index c6f510b5f..9b462e69f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs @@ -348,6 +348,117 @@ partial void ProcessUpdateGroupResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -385,6 +496,43 @@ partial void ProcessUpdateGroupResponseContent( h => h.Key, h => h.Value)); } + // The group operation could not be completed because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedTools.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedTools.JsonSerializerContext.g.cs index 8940dda40..901f3cb49 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedTools.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedTools.JsonSerializerContext.g.cs @@ -21,11 +21,22 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedToolPermission))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedToolPermissionUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectHostedToolPermissions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectHostedToolPermissionsUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] internal sealed partial class HostedToolsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -70,11 +81,13 @@ private HostedToolsSourceGenerationContext(global::System.Text.Json.JsonSerializ [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>()); @@ -85,6 +98,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter()); + options.Converters.Add(new LazyEnumJsonConverterFactory()); } private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() @@ -99,6 +113,34 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions return options; } + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver { private readonly object _gate = new(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.RetrieveProjectHostedToolPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.RetrieveProjectHostedToolPermissions.g.cs index eaef3bf23..490728101 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.RetrieveProjectHostedToolPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.RetrieveProjectHostedToolPermissions.g.cs @@ -328,6 +328,154 @@ partial void ProcessRetrieveProjectHostedToolPermissionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project ID is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.UpdateProjectHostedToolPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.UpdateProjectHostedToolPermissions.g.cs index 5eb9549f1..83bfd25df 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.UpdateProjectHostedToolPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.UpdateProjectHostedToolPermissions.g.cs @@ -348,6 +348,191 @@ partial void ProcessUpdateProjectHostedToolPermissionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The hosted tool permission request is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested project setting conflicts with the organization policy. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.CreateAgentEnvironmentTemplate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.CreateAgentEnvironmentTemplate.g.cs index 53a3a51e5..c43cd552c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.CreateAgentEnvironmentTemplate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.CreateAgentEnvironmentTemplate.g.cs @@ -41,7 +41,7 @@ public partial interface IAgentsClient /// Ordered, confidential setup commands. Command bodies are never returned. /// /// - /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for alpha/beta requests. + /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests. /// /// /// Environment variables made available to the agent. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.UpdateAgentEnvironmentTemplate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.UpdateAgentEnvironmentTemplate.g.cs index 2c35f0061..eb640b76f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.UpdateAgentEnvironmentTemplate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.UpdateAgentEnvironmentTemplate.g.cs @@ -49,7 +49,7 @@ public partial interface IAgentsClient /// Replacement confidential setup commands, never included in returned resources. /// /// - /// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for alpha/beta requests. + /// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for beta requests. /// /// /// Replacement confidential environment values. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs index da83b5b06..9388844ad 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs @@ -81,7 +81,7 @@ public partial interface IAudioClient global::System.Threading.Tasks.Task CreateSpeechAsync( global::tryAGI.OpenAI.AnyOf model, string input, - global::tryAGI.OpenAI.VoiceIdsOrCustomVoice voice, + global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2> voice, string? instructions = default, global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? responseFormat = default, double? speed = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeechAsEventStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeechAsEventStream.g.cs index d9a150a23..62975581d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeechAsEventStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeechAsEventStream.g.cs @@ -53,7 +53,7 @@ public partial interface IAudioClient global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsEventStreamAsync( global::tryAGI.OpenAI.AnyOf model, string input, - global::tryAGI.OpenAI.VoiceIdsOrCustomVoice voice, + global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2> voice, string? instructions = default, global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? responseFormat = default, double? speed = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DownloadFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DownloadFile.g.cs index 5708a8fcc..9a62365d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DownloadFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DownloadFile.g.cs @@ -12,7 +12,7 @@ public partial interface IFilesClient /// 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 DownloadFileAsync( + global::System.Threading.Tasks.Task DownloadFileAsync( string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -24,7 +24,19 @@ public partial interface IFilesClient /// 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> DownloadFileAsResponseAsync( + global::System.Threading.Tasks.Task DownloadFileAsStreamAsync( + string fileId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Retrieve file content
+ /// Returns a response containing the contents of the specified file. + ///
+ /// + /// 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> DownloadFileAsResponseAsync( string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Images.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Images.JsonSerializerContext.g.cs index 8de65aa0a..df4fc4ac4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Images.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Images.JsonSerializerContext.g.cs @@ -486,13 +486,13 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ImagesResponseQuality?) - || typeToConvert == typeof(global::tryAGI.OpenAI.InputFidelity) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) - || typeToConvert == typeof(global::tryAGI.OpenAI.InputFidelity?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + || typeToConvert == typeof(global::tryAGI.OpenAI.InputFidelity) - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?); + || typeToConvert == typeof(global::tryAGI.OpenAI.InputFidelity?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -999,24 +999,24 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ImagesResponseQualityNullableJsonConverter(); } - if (typeToConvert == typeof(global::tryAGI.OpenAI.InputFidelity)) + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) { - return new global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter(); + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); } - if (typeToConvert == typeof(global::tryAGI.OpenAI.InputFidelity?)) + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) { - return new global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter(); + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); } - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + if (typeToConvert == typeof(global::tryAGI.OpenAI.InputFidelity)) { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + return new global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter(); } - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + if (typeToConvert == typeof(global::tryAGI.OpenAI.InputFidelity?)) { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + return new global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter(); } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs index 999d6da2d..a8f45cd5d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs @@ -358,6 +358,117 @@ partial void ProcessCreateImageResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid image request, including invalid DALL-E parameters or input. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project does not have access to the requested model. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested DALL-E image endpoint is unavailable because it has been retired. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -395,6 +506,43 @@ partial void ProcessCreateImageResponseContent( h => h.Key, h => h.Value)); } + // The image could not be generated or processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs index b343abed6..78ce69723 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs @@ -590,6 +590,117 @@ request.Maskname is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid image request, including invalid DALL-E parameters or input. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project does not have access to the requested model. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested DALL-E image endpoint is unavailable because it has been retired. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -627,6 +738,43 @@ request.Maskname is null h => h.Key, h => h.Value)); } + // The image could not be generated or processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs index 5841abfab..6ef0a7bf4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs @@ -414,6 +414,191 @@ request.Imagename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid image or request, or the request cannot be processed for this account. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project does not have access to the requested model. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The image variations endpoint is no longer available. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The image rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The image variation could not be generated or processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -969,6 +1154,191 @@ request.Imagename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid image or request, or the request cannot be processed for this account. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project does not have access to the requested model. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The image variations endpoint is no longer available. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The image rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The image variation could not be generated or processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -1451,6 +1821,191 @@ request.Imagename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid image or request, or the request cannot be processed for this account. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project does not have access to the requested model. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The image variations endpoint is no longer available. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The image rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The image variation could not be generated or processed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs index c74bd7786..a0649749c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs @@ -339,6 +339,117 @@ partial void ProcessInviteUserResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The invite request is invalid or the user has already joined or been invited. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs index 79751d098..39fa2c75b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs @@ -345,6 +345,154 @@ partial void ProcessListInvitesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The invite listing parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The invite specified by the after cursor was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs index 29ee811cd..193f0bfc6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs @@ -328,6 +328,191 @@ partial void ProcessRetrieveInviteResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The invite request is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The invite was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The invite could not be retrieved because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoice.g.cs new file mode 100644 index 000000000..95743bb9a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoice.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateSpeechRequestVoiceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateSpeechRequestVoice 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.CreateSpeechRequestVoiceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateSpeechRequestVoice)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateSpeechRequestVoice); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateSpeechRequestVoice value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.CreateSpeechRequestVoiceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoiceNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoiceNullable.g.cs new file mode 100644 index 000000000..893b2909d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoiceNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateSpeechRequestVoiceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateSpeechRequestVoice? 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.CreateSpeechRequestVoiceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateSpeechRequestVoice)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateSpeechRequestVoice?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateSpeechRequestVoice? 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.CreateSpeechRequestVoiceExtensions.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 94723a2a6..b6bcca585 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs @@ -813,6 +813,11 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateSpeechRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestModel), TypeInfoPropertyName = "CreateSpeechRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>), TypeInfoPropertyName = "AnyOfAnyOfVoiceIdsSharedCreateSpeechRequestVoiceCreateSpeechRequestVoice22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfVoiceIdsSharedCreateSpeechRequestVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice), TypeInfoPropertyName = "CreateSpeechRequestVoice2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat), TypeInfoPropertyName = "CreateSpeechRequestResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat), TypeInfoPropertyName = "CreateSpeechRequestStreamFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent), TypeInfoPropertyName = "CreateSpeechResponseStreamEvent2")] @@ -1023,11 +1028,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemListObject), TypeInfoPropertyName = "EvalRunOutputItemListObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType), TypeInfoPropertyName = "EvalStoredCompletionsDataSourceConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSourceType), TypeInfoPropertyName = "EvalStoredCompletionsSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfterAnchor), TypeInfoPropertyName = "FileExpirationAfterAnchor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FilePath))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1081,6 +1081,11 @@ internal sealed partial class SourceGenerationContextChunk1 : 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.EvalStoredCompletionsDataSourceConfigType), TypeInfoPropertyName = "EvalStoredCompletionsDataSourceConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSourceType), TypeInfoPropertyName = "EvalStoredCompletionsSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfterAnchor), TypeInfoPropertyName = "FileExpirationAfterAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FilePath))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FilePathType), TypeInfoPropertyName = "FilePathType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchRanker), TypeInfoPropertyName = "FileSearchRanker2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolCallType), TypeInfoPropertyName = "FileSearchToolCallType2")] @@ -1536,11 +1541,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NoiseReductionType), TypeInfoPropertyName = "NoiseReductionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileObject), TypeInfoPropertyName = "OpenAIFileObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFilePurpose), TypeInfoPropertyName = "OpenAIFilePurpose2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileStatus), TypeInfoPropertyName = "OpenAIFileStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateObject), TypeInfoPropertyName = "OrganizationCertificateObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateCertificateDetails))] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1594,6 +1594,11 @@ internal sealed partial class SourceGenerationContextChunk2 : 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.OpenAIFileObject), TypeInfoPropertyName = "OpenAIFileObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFilePurpose), TypeInfoPropertyName = "OpenAIFilePurpose2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileStatus), TypeInfoPropertyName = "OpenAIFileStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateObject), TypeInfoPropertyName = "OrganizationCertificateObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateCertificateDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateActivationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateActivationResponseObject), TypeInfoPropertyName = "OrganizationCertificateActivationResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponse))] @@ -1769,7 +1774,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseModalitie), TypeInfoPropertyName = "RealtimeBetaResponseModalitie2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat), TypeInfoPropertyName = "RealtimeBetaResponseOutputAudioFormat2")] @@ -2050,10 +2054,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted))] internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2107,6 +2107,10 @@ internal sealed partial class SourceGenerationContextChunk3 : 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.RealtimeServerEventInputAudioBufferTimeoutTriggered))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone))] @@ -2563,10 +2567,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDelta2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseAudioDoneEventResponsesServerEventResponseAudioWsDone22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDone2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseAudioTranscriptDeltaEventResponsesServerEventResponseAudioTranscriptWsDelta22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDelta2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseAudioTranscriptDoneEventResponsesServerEventResponseAudioTranscriptWsDone22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDone2))] internal sealed partial class SourceGenerationContextChunk4 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2620,6 +2620,10 @@ internal sealed partial class SourceGenerationContextChunk4 : 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.AllOf), TypeInfoPropertyName = "AllOfResponseAudioTranscriptDeltaEventResponsesServerEventResponseAudioTranscriptWsDelta22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDelta2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseAudioTranscriptDoneEventResponsesServerEventResponseAudioTranscriptWsDone22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDone2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseCodeInterpreterCallCodeDeltaEventResponsesServerEventResponseCodeInterpreterCallCodeWsDelta22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallCodeWsDelta2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseCodeInterpreterCallCodeDoneEventResponsesServerEventResponseCodeInterpreterCallCodeWsDone22")] @@ -3076,10 +3080,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailed))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject), TypeInfoPropertyName = "WebhookFineTuningJobFailedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedType), TypeInfoPropertyName = "WebhookFineTuningJobFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject), TypeInfoPropertyName = "WebhookFineTuningJobSucceededObject2")] internal sealed partial class SourceGenerationContextChunk5 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3133,6 +3133,10 @@ 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.WebhookFineTuningJobFailedType), TypeInfoPropertyName = "WebhookFineTuningJobFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject), TypeInfoPropertyName = "WebhookFineTuningJobSucceededObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType), TypeInfoPropertyName = "WebhookFineTuningJobSucceededType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncoming))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncomingData))] @@ -3191,6 +3195,9 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject), TypeInfoPropertyName = "WebhookSafetyWarningIssuedObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType), TypeInfoPropertyName = "WebhookSafetyWarningIssuedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyWarningIssuedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationInputType), TypeInfoPropertyName = "ModerationInputType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationResultBodyType), TypeInfoPropertyName = "ModerationResultBodyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -3449,9 +3456,6 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemParamType), TypeInfoPropertyName = "ProgramOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResourceObject), TypeInfoPropertyName = "ConversationResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenOutputTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenInputUsageDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveCustomVoiceParam))] @@ -3589,10 +3593,6 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderParamsType), TypeInfoPropertyName = "GcpExternalStorageProviderParamsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateExternalStorageBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Provider3), TypeInfoPropertyName = "Provider32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminatorType), TypeInfoPropertyName = "CreateExternalStorageBodyProviderDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExternalStorageDeletedResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExternalStorageDeletedResourceObject), TypeInfoPropertyName = "ExternalStorageDeletedResourceObject2")] internal sealed partial class SourceGenerationContextChunk6 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3646,6 +3646,10 @@ 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::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminatorType), TypeInfoPropertyName = "CreateExternalStorageBodyProviderDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExternalStorageDeletedResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExternalStorageDeletedResourceObject), TypeInfoPropertyName = "ExternalStorageDeletedResourceObject2")] [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")] @@ -4102,10 +4106,6 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedSkillParamDiscriminatorType), TypeInfoPropertyName = "HostedSkillParamDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamInline))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamInlineType), TypeInfoPropertyName = "HostedPluginParamInlineType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParam), TypeInfoPropertyName = "HostedPluginParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamDiscriminatorType), TypeInfoPropertyName = "HostedPluginParamDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEnvironmentTemplateParams))] internal sealed partial class SourceGenerationContextChunk7 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -4159,6 +4159,10 @@ 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.HostedPluginParam), TypeInfoPropertyName = "HostedPluginParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamDiscriminatorType), TypeInfoPropertyName = "HostedPluginParamDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEnvironmentTemplateParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -4615,10 +4619,6 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCustomToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam))] internal sealed partial class SourceGenerationContextChunk8 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -4672,6 +4672,10 @@ 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.BetaNamespaceToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolDiscriminatorType), TypeInfoPropertyName = "BetaToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParamType), TypeInfoPropertyName = "BetaApplyPatchToolParamType2")] @@ -5087,6 +5091,7 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModelIdsShared), TypeInfoPropertyName = "BetaModelIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModelIdsResponsesEnum), TypeInfoPropertyName = "BetaModelIdsResponsesEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModelIdsSharedEnum), TypeInfoPropertyName = "BetaModelIdsSharedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaError))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMisalignmentErrorDetailsResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMisalignmentErrorType), TypeInfoPropertyName = "BetaMisalignmentErrorType2")] @@ -5127,11 +5132,6 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType), TypeInfoPropertyName = "BetaApplyPatchToolCallOutputType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus), TypeInfoPropertyName = "BetaApplyPatchCallOutputStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallType), TypeInfoPropertyName = "BetaApplyPatchToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchCallStatus), TypeInfoPropertyName = "BetaApplyPatchCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Operation2), TypeInfoPropertyName = "Operation22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation))] internal sealed partial class SourceGenerationContextChunk9 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -5185,6 +5185,11 @@ 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.BetaApplyPatchCallStatus), TypeInfoPropertyName = "BetaApplyPatchCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Operation2), TypeInfoPropertyName = "Operation22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminatorType), TypeInfoPropertyName = "BetaApplyPatchToolCallOperationDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationType), TypeInfoPropertyName = "BetaApplyPatchUpdateFileOperationType2")] @@ -5640,11 +5645,6 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponse), TypeInfoPropertyName = "BetaCreateResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateModelResponseProperties), TypeInfoPropertyName = "BetaCreateModelResponseProperties2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponseVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAccessProgramsParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsePromptCacheOptionsParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation), TypeInfoPropertyName = "BetaCreateResponseVariant3Truncation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModerationParam))] internal sealed partial class SourceGenerationContextChunk10 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -5698,6 +5698,11 @@ 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.BetaAccessProgramsParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsePromptCacheOptionsParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation), TypeInfoPropertyName = "BetaCreateResponseVariant3Truncation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModerationParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaContextManagementParam))] @@ -6090,6 +6095,10 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfAssistantsApiToolChoiceOptionObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringCreateSpeechRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestModel?), TypeInfoPropertyName = "NullableCreateSpeechRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>?), TypeInfoPropertyName = "NullableAnyOfAnyOfVoiceIdsSharedCreateSpeechRequestVoiceCreateSpeechRequestVoice22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfVoiceIdsSharedCreateSpeechRequestVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared?), TypeInfoPropertyName = "NullableVoiceIdsShared2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice?), TypeInfoPropertyName = "NullableCreateSpeechRequestVoice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat?), TypeInfoPropertyName = "NullableCreateSpeechRequestResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat?), TypeInfoPropertyName = "NullableCreateSpeechRequestStreamFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent?), TypeInfoPropertyName = "NullableCreateSpeechResponseStreamEvent2")] @@ -6149,15 +6158,6 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamQuality?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamQuality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamInputFidelity2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringEditImageBodyJsonParamSizeObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamSize?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModeration?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamModeration2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamBackground?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(float?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EmbeddingObject?), TypeInfoPropertyName = "NullableEmbeddingObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorEventEvent?), TypeInfoPropertyName = "NullableErrorEventEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalObject?), TypeInfoPropertyName = "NullableEvalObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfEvalCustomDataSourceConfigEvalLogsDataSourceConfigEvalStoredCompletionsDataSourceConfig2")] internal sealed partial class SourceGenerationContextChunk11 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -6211,6 +6211,15 @@ 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::tryAGI.OpenAI.EditImageBodyJsonParamSize?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModeration?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamModeration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamBackground?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(float?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EmbeddingObject?), TypeInfoPropertyName = "NullableEmbeddingObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorEventEvent?), TypeInfoPropertyName = "NullableErrorEventEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalObject?), TypeInfoPropertyName = "NullableEvalObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfEvalCustomDataSourceConfigEvalLogsDataSourceConfigEvalStoredCompletionsDataSourceConfig2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfEvalGraderLabelModelEvalGraderStringCheckEvalGraderTextSimilarityEvalGraderPythonEvalGraderScoreModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderLabelModel?), TypeInfoPropertyName = "NullableEvalGraderLabelModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfigType?), TypeInfoPropertyName = "NullableEvalCustomDataSourceConfigType2")] @@ -6524,7 +6533,6 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatus?), TypeInfoPropertyName = "NullableRealtimeBetaResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType?), TypeInfoPropertyName = "NullableRealtimeBetaResponseStatusDetailsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason?), TypeInfoPropertyName = "NullableRealtimeBetaResponseStatusDetailsReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared?), TypeInfoPropertyName = "NullableVoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseModalitie?), TypeInfoPropertyName = "NullableRealtimeBetaResponseModalitie2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat?), TypeInfoPropertyName = "NullableRealtimeBetaResponseOutputAudioFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfInt32RealtimeBetaResponseMaxOutputTokens2")] @@ -6663,14 +6671,6 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemRetrievedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemTruncatedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventErrorType?), TypeInfoPropertyName = "NullableRealtimeServerEventErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferClearedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferCommittedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferDtmfEventReceivedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferSpeechStartedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferSpeechStoppedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferTimeoutTriggeredType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType?), TypeInfoPropertyName = "NullableRealtimeServerEventMCPListToolsCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType?), TypeInfoPropertyName = "NullableRealtimeServerEventMCPListToolsFailedType2")] internal sealed partial class SourceGenerationContextChunk12 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -6724,6 +6724,14 @@ internal sealed partial class SourceGenerationContextChunk12 : 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.RealtimeServerEventInputAudioBufferClearedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferClearedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferCommittedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferDtmfEventReceivedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferSpeechStartedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferSpeechStoppedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferTimeoutTriggeredType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType?), TypeInfoPropertyName = "NullableRealtimeServerEventMCPListToolsCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType?), TypeInfoPropertyName = "NullableRealtimeServerEventMCPListToolsFailedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType?), TypeInfoPropertyName = "NullableRealtimeServerEventMCPListToolsInProgressType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType?), TypeInfoPropertyName = "NullableRealtimeServerEventOutputAudioBufferClearedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType?), TypeInfoPropertyName = "NullableRealtimeServerEventOutputAudioBufferStartedType2")] @@ -7176,14 +7184,6 @@ internal sealed partial class SourceGenerationContextChunk12 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyAlertCreatedType?), TypeInfoPropertyName = "NullableWebhookSafetyAlertCreatedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedObject?), TypeInfoPropertyName = "NullableWebhookSafetyDeactivationIssuedObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedType?), TypeInfoPropertyName = "NullableWebhookSafetyDeactivationIssuedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedObject?), TypeInfoPropertyName = "NullableWebhookSafetyOrgAlertCreatedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedType?), TypeInfoPropertyName = "NullableWebhookSafetyOrgAlertCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject?), TypeInfoPropertyName = "NullableWebhookSafetyWarningIssuedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType?), TypeInfoPropertyName = "NullableWebhookSafetyWarningIssuedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationInputType?), TypeInfoPropertyName = "NullableModerationInputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationResultBodyType?), TypeInfoPropertyName = "NullableModerationResultBodyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheTTLEnum?), TypeInfoPropertyName = "NullablePromptCacheTTLEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheModeEnum?), TypeInfoPropertyName = "NullablePromptCacheModeEnum2")] internal sealed partial class SourceGenerationContextChunk13 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -7237,6 +7237,16 @@ internal sealed partial class SourceGenerationContextChunk13 : 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.WebhookSafetyOrgAlertCreatedObject?), TypeInfoPropertyName = "NullableWebhookSafetyOrgAlertCreatedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedType?), TypeInfoPropertyName = "NullableWebhookSafetyOrgAlertCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject?), TypeInfoPropertyName = "NullableWebhookSafetyWarningIssuedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType?), TypeInfoPropertyName = "NullableWebhookSafetyWarningIssuedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationInputType?), TypeInfoPropertyName = "NullableModerationInputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationResultBodyType?), TypeInfoPropertyName = "NullableModerationResultBodyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheTTLEnum?), TypeInfoPropertyName = "NullablePromptCacheTTLEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheModeEnum?), TypeInfoPropertyName = "NullablePromptCacheModeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointParamMode?), TypeInfoPropertyName = "NullablePromptCacheBreakpointParamMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationMode?), TypeInfoPropertyName = "NullableModerationMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType?), TypeInfoPropertyName = "NullableSkillReferenceParamType2")] @@ -7403,8 +7413,6 @@ internal sealed partial class SourceGenerationContextChunk13 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemStatus?), TypeInfoPropertyName = "NullableProgramOutputItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemParamType?), TypeInfoPropertyName = "NullableProgramOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResourceObject?), TypeInfoPropertyName = "NullableConversationResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?, global::tryAGI.OpenAI.LiveCustomVoiceParam>?), TypeInfoPropertyName = "NullableOneOfAnyOfStringLiveInitialSessionAudioOutputParamVoiceVariant1LiveCustomVoiceParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringLiveInitialSessionAudioOutputParamVoiceVariant12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1?), TypeInfoPropertyName = "NullableLiveInitialSessionAudioOutputParamVoiceVariant12")] @@ -7689,14 +7697,6 @@ internal sealed partial class SourceGenerationContextChunk13 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminatorType?), TypeInfoPropertyName = "NullablePersistedMcpTransportConfigParamDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.McpConnectionOriginParam?), TypeInfoPropertyName = "NullableMcpConnectionOriginParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcpType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamMcpType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchModeParam?), TypeInfoPropertyName = "NullableWebSearchModeParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchContextSizeParam?), TypeInfoPropertyName = "NullableWebSearchContextSizeParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearchType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamWebSearchType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParam?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminatorType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedAgentResourceObject?), TypeInfoPropertyName = "NullableDeletedAgentResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkAccessResource?), TypeInfoPropertyName = "NullableNetworkAccessResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReferenceType?), TypeInfoPropertyName = "NullableHostedTemplateSkillResourceSkillReferenceType2")] internal sealed partial class SourceGenerationContextChunk14 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -7750,6 +7750,14 @@ internal sealed partial class SourceGenerationContextChunk14 : 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.WebSearchModeParam?), TypeInfoPropertyName = "NullableWebSearchModeParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchContextSizeParam?), TypeInfoPropertyName = "NullableWebSearchContextSizeParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearchType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamWebSearchType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParam?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminatorType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedAgentResourceObject?), TypeInfoPropertyName = "NullableDeletedAgentResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkAccessResource?), TypeInfoPropertyName = "NullableNetworkAccessResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReferenceType?), TypeInfoPropertyName = "NullableHostedTemplateSkillResourceSkillReferenceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedTemplateSkillResourceInlineType?), TypeInfoPropertyName = "NullableHostedTemplateSkillResourceInlineType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedTemplateSkillResource?), TypeInfoPropertyName = "NullableHostedTemplateSkillResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminatorType?), TypeInfoPropertyName = "NullableHostedTemplateSkillResourceDiscriminatorType2")] @@ -8202,14 +8210,6 @@ internal sealed partial class SourceGenerationContextChunk14 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaClickButtonType?), TypeInfoPropertyName = "NullableBetaClickButtonType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCallType?), TypeInfoPropertyName = "NullableBetaFileSearchToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCallStatus?), TypeInfoPropertyName = "NullableBetaFileSearchToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageType?), TypeInfoPropertyName = "NullableBetaOutputMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageRole?), TypeInfoPropertyName = "NullableBetaOutputMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageContent?), TypeInfoPropertyName = "NullableBetaOutputMessageContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMessagePhase?), TypeInfoPropertyName = "NullableBetaMessagePhase2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageStatus?), TypeInfoPropertyName = "NullableBetaOutputMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType?), TypeInfoPropertyName = "NullableBetaOutputMessageContentDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaRefusalContentType?), TypeInfoPropertyName = "NullableBetaRefusalContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputTextContentType?), TypeInfoPropertyName = "NullableBetaOutputTextContentType2")] internal sealed partial class SourceGenerationContextChunk15 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -8263,6 +8263,14 @@ internal sealed partial class SourceGenerationContextChunk15 : 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.BetaOutputMessageType?), TypeInfoPropertyName = "NullableBetaOutputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageRole?), TypeInfoPropertyName = "NullableBetaOutputMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageContent?), TypeInfoPropertyName = "NullableBetaOutputMessageContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMessagePhase?), TypeInfoPropertyName = "NullableBetaMessagePhase2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageStatus?), TypeInfoPropertyName = "NullableBetaOutputMessageStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType?), TypeInfoPropertyName = "NullableBetaOutputMessageContentDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaRefusalContentType?), TypeInfoPropertyName = "NullableBetaRefusalContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputTextContentType?), TypeInfoPropertyName = "NullableBetaOutputTextContentType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAnnotation?), TypeInfoPropertyName = "NullableBetaAnnotation2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAnnotationDiscriminatorType?), TypeInfoPropertyName = "NullableBetaAnnotationDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFilePathType?), TypeInfoPropertyName = "NullableBetaFilePathType2")] @@ -8715,14 +8723,6 @@ internal sealed partial class SourceGenerationContextChunk15 : 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::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>))] - [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 SourceGenerationContextChunk16 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -8776,6 +8776,14 @@ internal sealed partial class SourceGenerationContextChunk16 : 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::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>))] + [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))] @@ -9177,6 +9185,7 @@ static void AddConverters(global::System.Text.Json.JsonSerializerOptions options options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoiceJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnnotationJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContentItem3JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolCallCallerJsonConverter()); @@ -9195,7 +9204,6 @@ static void AddConverters(global::System.Text.Json.JsonSerializerOptions options options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant13JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem14JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DelegationVariant1JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContentItem4JsonConverter()); @@ -9393,6 +9401,8 @@ static void AddConverters(global::System.Text.Json.JsonSerializerOptions options options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); @@ -10328,6 +10338,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestModel?) + || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice) + + || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice?) + || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat) || typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat?) @@ -13504,6 +13518,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ModerationInputType) || typeToConvert == typeof(global::tryAGI.OpenAI.ModerationInputType?) @@ -14168,10 +14186,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ConversationResourceObject?) - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) - - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) - || typeToConvert == typeof(global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1) || typeToConvert == typeof(global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1?) @@ -19447,6 +19461,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice)) + { + return new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoiceJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice?)) + { + return new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestVoiceNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat)) { return new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatJsonConverter(); @@ -27387,6 +27411,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.WebhookSafetyWarningIssuedTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ModerationInputType)) { return new global::tryAGI.OpenAI.JsonConverters.ModerationInputTypeJsonConverter(); @@ -29047,16 +29081,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectNullableJsonConverter(); } - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); - } - - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); - } - if (typeToConvert == typeof(global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1)) { return new global::tryAGI.OpenAI.JsonConverters.LiveInitialSessionAudioOutputParamVoiceVariant1JsonConverter(); 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 be472706b..fdbc1b5db 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs @@ -2837,17887 +2837,17907 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type701 { get; set; } + public global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>? Type701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type702 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type703 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsShared? Type703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type704 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestVoice? Type704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type705 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestVoice2? Type705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type706 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? Type707 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpendAlertBody? Type708 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpendAlertBodyCurrency? Type709 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpendAlertBodyInterval? Type710 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendAlertNotificationChannel? Type711 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type712 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? Type712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequest? Type713 { get; set; } + public global::tryAGI.OpenAI.CreateSpendAlertBody? Type713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type714 { get; set; } + public global::tryAGI.OpenAI.CreateSpendAlertBodyCurrency? Type714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type715 { get; set; } + public global::tryAGI.OpenAI.CreateSpendAlertBodyInterval? Type715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type716 { get; set; } + public global::tryAGI.OpenAI.SpendAlertNotificationChannel? Type716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type717 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type718 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequest? Type718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResources? Type719 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type720 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type721 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type721 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type722 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type723 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type724 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResources? Type724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type725 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type726 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type727 { get; set; } + public global::System.Collections.Generic.IList? Type727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type728 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type729 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type730 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type731 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type731 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type732 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionInclude? Type733 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type733 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type734 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type735 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type736 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1? Type737 { get; set; } + public global::System.Collections.Generic.IList? Type737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfig? Type738 { get; set; } + public global::tryAGI.OpenAI.TranscriptionInclude? Type738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson? Type739 { get; set; } + public global::System.Collections.Generic.IList? Type739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask? Type740 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type740 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type741 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegment? Type742 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1? Type742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage? Type743 { get; set; } + public global::tryAGI.OpenAI.VadConfig? Type743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type744 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson? Type744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type745 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask? Type745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator? Type746 { get; set; } + public global::System.Collections.Generic.IList? Type746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? Type747 { get; set; } + public global::tryAGI.OpenAI.TranscriptionDiarizedSegment? Type747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type748 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage? Type748 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type749 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionLanguage? Type750 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type750 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type751 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator? Type751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type752 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? Type752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type753 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type754 { get; set; } + public global::System.Collections.Generic.IList? Type754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEvent? Type755 { get; set; } + public global::tryAGI.OpenAI.TranscriptionLanguage? Type755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type756 { get; set; } + public global::System.Collections.Generic.IList? Type756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type757 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type758 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? Type759 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type760 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextSegmentEvent? Type760 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type761 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionWord? Type762 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type762 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type763 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionSegment? Type764 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? Type764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequest? Type765 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type766 { get; set; } + public global::System.Collections.Generic.IList? Type766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type767 { get; set; } + public global::tryAGI.OpenAI.TranscriptionWord? Type767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type768 { get; set; } + public global::System.Collections.Generic.IList? Type768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type769 { get; set; } + public global::tryAGI.OpenAI.TranscriptionSegment? Type769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type770 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequest? Type770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequest? Type771 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type772 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type773 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type773 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type774 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type775 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type776 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequest? Type776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type777 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type778 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVoiceConsentRequest? Type779 { get; set; } + public global::System.Collections.Generic.IList? Type779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVoiceRequest? Type780 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallType? Type781 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCaller? Type782 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputType? Type783 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerParam? Type784 { get; set; } + public global::tryAGI.OpenAI.CreateVoiceConsentRequest? Type784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type785 { get; set; } + public global::tryAGI.OpenAI.CreateVoiceRequest? Type785 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type786 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallType? Type786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput? Type787 { get; set; } + public global::tryAGI.OpenAI.ToolCallCaller? Type787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputResource? Type788 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputType? Type788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Type789 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerParam? Type789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputStatusEnum? Type790 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallResource? Type791 { get; set; } + public global::System.Collections.Generic.IList? Type791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Type792 { get; set; } + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput? Type792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallStatus? Type793 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputResource? Type793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type794 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Type794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type795 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputStatusEnum? Type795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type796 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallResource? Type796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat? Type797 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Type797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType? Type798 { get; set; } + public global::tryAGI.OpenAI.FunctionCallStatus? Type798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat? Type799 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType? Type800 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar? Type801 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax? Type802 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat? Type802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponse? Type803 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType? Type803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type804 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat? Type804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponse? Type805 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType? Type805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type806 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar? Type806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponse? Type807 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax? Type807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponseObject? Type808 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponse? Type808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type809 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type810 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponse? Type810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponse? Type811 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type812 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponse? Type812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteModelResponse? Type813 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponseObject? Type813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponse? Type814 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type815 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type816 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponse? Type816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type817 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type818 { get; set; } + public global::tryAGI.OpenAI.DeleteModelResponse? Type818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type819 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponse? Type819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversation? Type820 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResource? Type821 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedRoleAssignmentResource? Type822 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventEvent? Type823 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventData? Type824 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageRole? Type825 { get; set; } + public global::tryAGI.OpenAI.DeletedConversation? Type825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type826 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResource? Type826 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type827 { get; set; } + public global::tryAGI.OpenAI.DeletedRoleAssignmentResource? Type827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhase? Type828 { get; set; } + public global::tryAGI.OpenAI.DoneEventEvent? Type828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageType? Type829 { get; set; } + public global::tryAGI.OpenAI.DoneEventData? Type829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParam? Type830 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageRole? Type830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type831 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamModel? Type832 { get; set; } + public global::System.Collections.Generic.IList? Type832 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type833 { get; set; } + public global::tryAGI.OpenAI.MessagePhase? Type833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageRefParam? Type834 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageType? Type834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamQuality? Type835 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParam? Type835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity? Type836 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type837 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamModel? Type837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamSize? Type838 { get; set; } + public global::System.Collections.Generic.IList? Type838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat? Type839 { get; set; } + public global::tryAGI.OpenAI.ImageRefParam? Type839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamModeration? Type840 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamQuality? Type840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamBackground? Type841 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity? Type841 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type842 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type842 { get; set; } /// /// /// - public float? Type843 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamSize? Type843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmbeddingObject? Type844 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat? Type844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error? Type845 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamModeration? Type845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentErrorDetailsResource? Type846 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamBackground? Type846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorEventEvent? Type847 { get; set; } + public global::System.Collections.Generic.IList? Type847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorResponse? Type848 { get; set; } + public float? Type848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Eval? Type849 { get; set; } + public global::tryAGI.OpenAI.EmbeddingObject? Type849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalObject? Type850 { get; set; } + public global::tryAGI.OpenAI.Error? Type850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type851 { get; set; } + public global::tryAGI.OpenAI.MisalignmentErrorDetailsResource? Type851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type852 { get; set; } + public global::tryAGI.OpenAI.ErrorEventEvent? Type852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type853 { get; set; } + public global::tryAGI.OpenAI.ErrorResponse? Type853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type854 { get; set; } + public global::tryAGI.OpenAI.Eval? Type854 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type855 { get; set; } + public global::tryAGI.OpenAI.EvalObject? Type855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type856 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderLabelModel? Type857 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalApiError? Type858 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type859 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModel? Type860 { get; set; } + public global::System.Collections.Generic.IList>? Type860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPython? Type861 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type862 { get; set; } + public global::tryAGI.OpenAI.EvalGraderLabelModel? Type862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModel? Type863 { get; set; } + public global::tryAGI.OpenAI.EvalApiError? Type863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type864 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheck? Type865 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModel? Type865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarity? Type866 { get; set; } + public global::tryAGI.OpenAI.GraderPython? Type866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type867 { get; set; } + public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemRole? Type868 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModel? Type868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContent? Type869 { get; set; } + public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemType? Type870 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheck? Type870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentItem? Type871 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarity? Type871 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type872 { get; set; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContent? Type873 { get; set; } + public global::tryAGI.OpenAI.EvalItemRole? Type873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentOutputText? Type874 { get; set; } + public global::tryAGI.OpenAI.EvalItemContent? Type874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemInputImage? Type875 { get; set; } + public global::tryAGI.OpenAI.EvalItemType? Type875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudio? Type876 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentItem? Type876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentOutputTextType? Type877 { get; set; } + public global::System.Collections.Generic.IList? Type877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemInputImageType? Type878 { get; set; } + public global::tryAGI.OpenAI.InputTextContent? Type878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type879 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentOutputText? Type879 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type880 { get; set; } + public global::tryAGI.OpenAI.EvalItemInputImage? Type880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type881 { get; set; } + public global::tryAGI.OpenAI.InputAudio? Type881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type882 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentOutputTextType? Type882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalList? Type883 { get; set; } + public global::tryAGI.OpenAI.EvalItemInputImageType? Type883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalListObject? Type884 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type884 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type885 { get; set; } + public global::System.Collections.Generic.IList? Type885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type886 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalResponsesSourceType? Type887 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRun? Type888 { get; set; } + public global::tryAGI.OpenAI.EvalList? Type888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunObject? Type889 { get; set; } + public global::tryAGI.OpenAI.EvalListObject? Type889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunResultCounts? Type890 { get; set; } + public global::System.Collections.Generic.IList? Type890 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type891 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type892 { get; set; } + public global::tryAGI.OpenAI.EvalResponsesSourceType? Type892 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type893 { get; set; } + public global::tryAGI.OpenAI.EvalRun? Type893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type894 { get; set; } + public global::tryAGI.OpenAI.EvalRunObject? Type894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunList? Type895 { get; set; } + public global::tryAGI.OpenAI.EvalRunResultCounts? Type895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunListObject? Type896 { get; set; } + public global::System.Collections.Generic.IList? Type896 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type897 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItem? Type898 { get; set; } + public global::System.Collections.Generic.IList? Type898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type899 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type899 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type900 { get; set; } + public global::tryAGI.OpenAI.EvalRunList? Type900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemResult? Type901 { get; set; } + public global::tryAGI.OpenAI.EvalRunListObject? Type901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type902 { get; set; } + public global::System.Collections.Generic.IList? Type902 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type903 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItem? Type903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type904 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type904 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type905 { get; set; } + public global::System.Collections.Generic.IList? Type905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type906 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemResult? Type906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type907 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemList? Type908 { get; set; } + public global::System.Collections.Generic.IList? Type908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type909 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type909 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type910 { get; set; } + public global::System.Collections.Generic.IList? Type910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type911 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type912 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type912 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type913 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemList? Type913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type914 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FilePath? Type915 { get; set; } + public global::System.Collections.Generic.IList? Type915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FilePathType? Type916 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchRanker? Type917 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallType? Type918 { get; set; } + public global::System.DateTimeOffset? Type918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type919 { get; set; } + public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type919 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type920 { get; set; } + public global::tryAGI.OpenAI.FilePath? Type920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item? Type921 { get; set; } + public global::tryAGI.OpenAI.FilePathType? Type921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type922 { get; set; } + public global::tryAGI.OpenAI.FileSearchRanker? Type922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage? Type923 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallType? Type923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type924 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type925 { get; set; } + public global::System.Collections.Generic.IList? Type925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type926 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item? Type926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type927 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type928 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage? Type928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type929 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type930 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type931 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type932 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOMethod? Type933 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneMethodType? Type934 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type935 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type936 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type937 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type938 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOMethod? Type938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type939 { get; set; } + public global::tryAGI.OpenAI.FineTuneMethodType? Type939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type940 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type941 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type942 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type943 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type944 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type945 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type946 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type947 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type948 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type949 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type950 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type951 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMulti? Type952 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type953 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type954 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type955 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type956 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type957 { get; set; } + public global::tryAGI.OpenAI.GraderMulti? Type957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type958 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type959 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type960 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type961 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegration? Type962 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationType? Type963 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type964 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJob? Type965 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobError? Type966 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type967 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegration? Type967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type968 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationType? Type968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1? Type969 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type970 { get; set; } + public global::tryAGI.OpenAI.FineTuningJob? Type970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type971 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobError? Type971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type972 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type973 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobObject? Type974 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1? Type974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobStatus? Type975 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type975 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type976 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type977 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type978 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type979 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobObject? Type979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEvent? Type980 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobStatus? Type980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventObject? Type981 { get; set; } + public global::System.Collections.Generic.IList? Type981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type982 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventType? Type983 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContent? Type984 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContent? Type985 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEvent? Type985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator? Type986 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventObject? Type986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? Type987 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCall? Type988 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventType? Type988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallType? Type989 { get; set; } + public global::tryAGI.OpenAI.InputImageContent? Type989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallStatus? Type990 { get; set; } + public global::tryAGI.OpenAI.InputFileContent? Type990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutput? Type991 { get; set; } + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator? Type991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type992 { get; set; } + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? Type992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type993 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCall? Type993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type994 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallType? Type994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type995 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallStatus? Type995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModelType? Type996 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutput? Type996 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type997 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMultiType? Type998 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type999 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPythonType? Type1000 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type1000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModelType? Type1001 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModelType? Type1001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModelSamplingParams? Type1002 { get; set; } + public global::System.Collections.Generic.IList? Type1002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckType? Type1003 { get; set; } + public global::tryAGI.OpenAI.GraderMultiType? Type1003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckOperation? Type1004 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityType? Type1005 { get; set; } + public global::tryAGI.OpenAI.GraderPythonType? Type1005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type1006 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModelType? Type1006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Group? Type1007 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModelSamplingParams? Type1007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupObject? Type1008 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckType? Type1008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupDeletedResource? Type1009 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckOperation? Type1009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupDeletedResourceObject? Type1010 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityType? Type1010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupListResource? Type1011 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type1011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupListResourceObject? Type1012 { get; set; } + public global::tryAGI.OpenAI.Group? Type1012 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1013 { get; set; } + public global::tryAGI.OpenAI.GroupObject? Type1013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupResponse? Type1014 { get; set; } + public global::tryAGI.OpenAI.GroupDeletedResource? Type1014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupMemberUser? Type1015 { get; set; } + public global::tryAGI.OpenAI.GroupDeletedResourceObject? Type1015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupMemberUserUserType? Type1016 { get; set; } + public global::tryAGI.OpenAI.GroupListResource? Type1016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupResourceWithSuccess? Type1017 { get; set; } + public global::tryAGI.OpenAI.GroupListResourceObject? Type1017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupResponseGroupType? Type1018 { get; set; } + public global::System.Collections.Generic.IList? Type1018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupRoleAssignment? Type1019 { get; set; } + public global::tryAGI.OpenAI.GroupResponse? Type1019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupRoleAssignmentObject? Type1020 { get; set; } + public global::tryAGI.OpenAI.GroupMemberUser? Type1020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Role? Type1021 { get; set; } + public global::tryAGI.OpenAI.GroupMemberUserUserType? Type1021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUser? Type1022 { get; set; } + public global::tryAGI.OpenAI.GroupResourceWithSuccess? Type1022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserAssignment? Type1023 { get; set; } + public global::tryAGI.OpenAI.GroupResponseGroupType? Type1023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserAssignmentObject? Type1024 { get; set; } + public global::tryAGI.OpenAI.GroupRoleAssignment? Type1024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserDeletedResource? Type1025 { get; set; } + public global::tryAGI.OpenAI.GroupRoleAssignmentObject? Type1025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserDeletedResourceObject? Type1026 { get; set; } + public global::tryAGI.OpenAI.Role? Type1026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedToolPermission? Type1027 { get; set; } + public global::tryAGI.OpenAI.GroupUser? Type1027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedToolPermissionUpdate? Type1028 { get; set; } + public global::tryAGI.OpenAI.GroupUserAssignment? Type1028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Image2? Type1029 { get; set; } + public global::tryAGI.OpenAI.GroupUserAssignmentObject? Type1029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type1030 { get; set; } + public global::tryAGI.OpenAI.GroupUserDeletedResource? Type1030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type1031 { get; set; } + public global::tryAGI.OpenAI.GroupUserDeletedResourceObject? Type1031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1032 { get; set; } + public global::tryAGI.OpenAI.HostedToolPermission? Type1032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type1033 { get; set; } + public global::tryAGI.OpenAI.HostedToolPermissionUpdate? Type1033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type1034 { get; set; } + public global::tryAGI.OpenAI.Image2? Type1034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type1035 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type1035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type1036 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type1036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsage? Type1037 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type1038 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type1038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type1039 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type1039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1040 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type1040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type1041 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type1041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type1042 { get; set; } + public global::tryAGI.OpenAI.ImagesUsage? Type1042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type1043 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type1043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type1044 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type1044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEvent? Type1045 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type1046 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type1046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? Type1047 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type1047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type1048 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type1048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type1049 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type1049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1050 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEvent? Type1050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type1051 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type1051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type1052 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? Type1052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type1053 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type1053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type1054 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type1054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type1055 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type1056 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type1056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1057 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type1057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type1058 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type1058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type1059 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type1059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type1060 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type1060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type1061 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type1061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEvent? Type1062 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type1063 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type1063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? Type1064 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type1064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenTool? Type1065 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type1065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolType? Type1066 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type1066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1067 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEvent? Type1067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModel? Type1068 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type1068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolQuality? Type1069 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? Type1069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1070 { get; set; } + public global::tryAGI.OpenAI.ImageGenTool? Type1070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolSize? Type1071 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolType? Type1071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type1072 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModeration? Type1073 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModel? Type1073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolBackground? Type1074 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolQuality? Type1074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type1075 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenActionEnum? Type1076 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolSize? Type1076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponse? Type1077 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type1077 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1078 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModeration? Type1078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseBackground? Type1079 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolBackground? Type1079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type1080 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type1080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1081 { get; set; } + public global::tryAGI.OpenAI.ImageGenActionEnum? Type1081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseSize? Type1082 { get; set; } + public global::tryAGI.OpenAI.ImagesResponse? Type1082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseQuality? Type1083 { get; set; } + public global::System.Collections.Generic.IList? Type1083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenUsage? Type1084 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseBackground? Type1084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1085 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type1085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioType? Type1086 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioInputAudio1? Type1087 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseSize? Type1087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type1088 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseQuality? Type1088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentDiscriminator? Type1089 { get; set; } + public global::tryAGI.OpenAI.ImageGenUsage? Type1089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentDiscriminatorType? Type1090 { get; set; } + public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItem? Type1091 { get; set; } + public global::tryAGI.OpenAI.InputAudioType? Type1091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Item? Type1092 { get; set; } + public global::tryAGI.OpenAI.InputAudioInputAudio1? Type1092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionTriggerItemParam? Type1093 { get; set; } + public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type1093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParam? Type1094 { get; set; } + public global::tryAGI.OpenAI.InputContentDiscriminator? Type1094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramItemParam? Type1095 { get; set; } + public global::tryAGI.OpenAI.InputContentDiscriminatorType? Type1095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputItemParam? Type1096 { get; set; } + public global::tryAGI.OpenAI.InputItem? Type1096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItemDiscriminator? Type1097 { get; set; } + public global::tryAGI.OpenAI.Item? Type1097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItemDiscriminatorType? Type1098 { get; set; } + public global::tryAGI.OpenAI.CompactionTriggerItemParam? Type1098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessage? Type1099 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParam? Type1099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageType? Type1100 { get; set; } + public global::tryAGI.OpenAI.ProgramItemParam? Type1100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageRole? Type1101 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputItemParam? Type1101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageStatus? Type1102 { get; set; } + public global::tryAGI.OpenAI.InputItemDiscriminator? Type1102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResource? Type1103 { get; set; } + public global::tryAGI.OpenAI.InputItemDiscriminatorType? Type1103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1104 { get; set; } + public global::tryAGI.OpenAI.InputMessage? Type1104 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1105 { get; set; } + public global::tryAGI.OpenAI.InputMessageType? Type1105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Invite? Type1106 { get; set; } + public global::tryAGI.OpenAI.InputMessageRole? Type1106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteObject? Type1107 { get; set; } + public global::tryAGI.OpenAI.InputMessageStatus? Type1107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRole? Type1108 { get; set; } + public global::tryAGI.OpenAI.InputMessageResource? Type1108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteStatus? Type1109 { get; set; } + public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1110 { get; set; } + public global::System.Collections.Generic.IList? Type1110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProject? Type1111 { get; set; } + public global::tryAGI.OpenAI.Invite? Type1111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProjectRole? Type1112 { get; set; } + public global::tryAGI.OpenAI.InviteObject? Type1112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponse? Type1113 { get; set; } + public global::tryAGI.OpenAI.InviteRole? Type1113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1114 { get; set; } + public global::tryAGI.OpenAI.InviteStatus? Type1114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponse? Type1115 { get; set; } + public global::System.Collections.Generic.IList? Type1115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponseObject? Type1116 { get; set; } + public global::tryAGI.OpenAI.InviteProject? Type1116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1117 { get; set; } + public global::tryAGI.OpenAI.InviteProjectRole? Type1117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProjectGroupBody? Type1118 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponse? Type1118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequest? Type1119 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestRole? Type1120 { get; set; } + public global::tryAGI.OpenAI.InviteListResponse? Type1120 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1121 { get; set; } + public global::tryAGI.OpenAI.InviteListResponseObject? Type1121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProject? Type1122 { get; set; } + public global::System.Collections.Generic.IList? Type1122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1123 { get; set; } + public global::tryAGI.OpenAI.InviteProjectGroupBody? Type1123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessage? Type1124 { get; set; } + public global::tryAGI.OpenAI.InviteRequest? Type1124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type1125 { get; set; } + public global::tryAGI.OpenAI.InviteRequestRole? Type1125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type1126 { get; set; } + public global::System.Collections.Generic.IList? Type1126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallItemParam? Type1127 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProject? Type1127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParam? Type1128 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsItemParam? Type1129 { get; set; } + public global::tryAGI.OpenAI.OutputMessage? Type1129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParam? Type1130 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type1130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionSummaryItemParam? Type1131 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type1131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParam? Type1132 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallItemParam? Type1132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? Type1133 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputItemParam? Type1133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? Type1134 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsItemParam? Type1134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? Type1135 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParam? Type1135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponse? Type1136 { get; set; } + public global::tryAGI.OpenAI.CompactionSummaryItemParam? Type1136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemDiscriminator? Type1137 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParam? Type1137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemDiscriminatorType? Type1138 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? Type1138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResource? Type1139 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? Type1139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1140 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? Type1140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResourceDiscriminatorType? Type1141 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponse? Type1141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsResponse? Type1142 { get; set; } + public global::tryAGI.OpenAI.ItemDiscriminator? Type1142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1143 { get; set; } + public global::tryAGI.OpenAI.ItemDiscriminatorType? Type1143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1144 { get; set; } + public global::tryAGI.OpenAI.ItemResource? Type1144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1145 { get; set; } + public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1146 { get; set; } + public global::tryAGI.OpenAI.ItemResourceDiscriminatorType? Type1146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponse? Type1147 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsResponse? Type1147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1148 { get; set; } + public global::System.Collections.Generic.IList? Type1148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1149 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponse? Type1150 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1151 { get; set; } + public global::System.Collections.Generic.IList? Type1151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificate? Type1152 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponse? Type1152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1153 { get; set; } + public global::System.Collections.Generic.IList? Type1153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesResponse? Type1154 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1155 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponse? Type1155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFile? Type1156 { get; set; } + public global::System.Collections.Generic.IList? Type1156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1157 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificate? Type1157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1158 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1159 { get; set; } + public global::tryAGI.OpenAI.ListFilesResponse? Type1159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1160 { get; set; } + public global::System.Collections.Generic.IList? Type1160 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1161 { get; set; } + public global::tryAGI.OpenAI.OpenAIFile? Type1161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1162 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1163 { get; set; } + public global::System.Collections.Generic.IList? Type1163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1164 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1165 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesResponse? Type1166 { get; set; } + public global::System.Collections.Generic.IList? Type1166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1167 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObject? Type1168 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponse? Type1169 { get; set; } + public global::System.Collections.Generic.IList? Type1169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponseObject? Type1170 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1171 { get; set; } + public global::tryAGI.OpenAI.ListMessagesResponse? Type1171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Model18? Type1172 { get; set; } + public global::System.Collections.Generic.IList? Type1172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1173 { get; set; } + public global::tryAGI.OpenAI.MessageObject? Type1173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1174 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponse? Type1174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1175 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponseObject? Type1175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesResponse? Type1176 { get; set; } + public global::System.Collections.Generic.IList? Type1176 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1177 { get; set; } + public global::tryAGI.OpenAI.Model18? Type1177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificate? Type1178 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesResponseObject? Type1179 { get; set; } + public global::System.Collections.Generic.IList? Type1179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsResponse? Type1180 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1181 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesResponse? Type1181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObject? Type1182 { get; set; } + public global::System.Collections.Generic.IList? Type1182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsResponse? Type1183 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificate? Type1183 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1184 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesResponseObject? Type1184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObject? Type1185 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsResponse? Type1185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1186 { get; set; } + public global::System.Collections.Generic.IList? Type1186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1187 { get; set; } + public global::tryAGI.OpenAI.RunStepObject? Type1187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObject? Type1188 { get; set; } + public global::tryAGI.OpenAI.ListRunsResponse? Type1188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1189 { get; set; } + public global::System.Collections.Generic.IList? Type1189 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1190 { get; set; } + public global::tryAGI.OpenAI.RunObject? Type1190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObject? Type1191 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallAcceptRequest? Type1192 { get; set; } + public global::System.Collections.Generic.IList? Type1192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallAcceptSession? Type1193 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObject? Type1193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsLive? Type1194 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMediaSessionAudioParam? Type1195 { get; set; } + public global::System.Collections.Generic.IList? Type1195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant1? Type1196 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObject? Type1196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1197 { get; set; } + public global::tryAGI.OpenAI.LiveCallAcceptRequest? Type1197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallAcceptSessionType? Type1198 { get; set; } + public global::tryAGI.OpenAI.LiveCallAcceptSession? Type1198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallReferRequest? Type1199 { get; set; } + public global::tryAGI.OpenAI.ModelIdsLive? Type1199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallRejectRequest? Type1200 { get; set; } + public global::tryAGI.OpenAI.LiveMediaSessionAudioParam? Type1200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientEvent? Type1201 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant1? Type1201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStartEvent? Type1202 { get; set; } + public global::System.Collections.Generic.IList? Type1202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParam? Type1203 { get; set; } + public global::tryAGI.OpenAI.LiveCallAcceptSessionType? Type1203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendEvent? Type1204 { get; set; } + public global::tryAGI.OpenAI.LiveCallReferRequest? Type1204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuteParam? Type1205 { get; set; } + public global::tryAGI.OpenAI.LiveCallRejectRequest? Type1205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam? Type1206 { get; set; } + public global::tryAGI.OpenAI.LiveClientEvent? Type1206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendParam? Type1207 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStartEvent? Type1207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendParam? Type1208 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParam? Type1208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendParam? Type1209 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppendEvent? Type1209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseItemCreateParam? Type1210 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMuteParam? Type1210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseCreateParam? Type1211 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam? Type1211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCloseParam? Type1212 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppendParam? Type1212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientEventDiscriminator? Type1213 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppendParam? Type1213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientEventDiscriminatorType? Type1214 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppendParam? Type1214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveConnectParams? Type1215 { get; set; } + public global::tryAGI.OpenAI.LiveResponseItemCreateParam? Type1215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCreateRequest? Type1216 { get; set; } + public global::tryAGI.OpenAI.LiveResponseCreateParam? Type1216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMediaSessionCreateParams? Type1217 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCloseParam? Type1217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebRTCTransport? Type1218 { get; set; } + public global::tryAGI.OpenAI.LiveClientEventDiscriminator? Type1218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCreateResponse? Type1219 { get; set; } + public global::tryAGI.OpenAI.LiveClientEventDiscriminatorType? Type1219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCreateResponseSession? Type1220 { get; set; } + public global::tryAGI.OpenAI.LiveConnectParams? Type1220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkClientEvent? Type1221 { get; set; } + public global::tryAGI.OpenAI.LiveCreateRequest? Type1221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkSessionStartEvent? Type1222 { get; set; } + public global::tryAGI.OpenAI.LiveMediaSessionCreateParams? Type1222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkClientEventDiscriminator? Type1223 { get; set; } + public global::tryAGI.OpenAI.LiveWebRTCTransport? Type1223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkClientEventDiscriminatorType? Type1224 { get; set; } + public global::tryAGI.OpenAI.LiveCreateResponse? Type1224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkPathParams? Type1225 { get; set; } + public global::tryAGI.OpenAI.LiveCreateResponseSession? Type1225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkRequest? Type1226 { get; set; } + public global::tryAGI.OpenAI.LiveForkClientEvent? Type1226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMediaSessionForkParams? Type1227 { get; set; } + public global::tryAGI.OpenAI.LiveForkSessionStartEvent? Type1227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent? Type1228 { get; set; } + public global::tryAGI.OpenAI.LiveForkClientEventDiscriminator? Type1228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParam? Type1229 { get; set; } + public global::tryAGI.OpenAI.LiveForkClientEventDiscriminatorType? Type1229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientConfigParam? Type1230 { get; set; } + public global::tryAGI.OpenAI.LiveForkPathParams? Type1230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParam? Type1231 { get; set; } + public global::tryAGI.OpenAI.LiveForkRequest? Type1231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent2? Type1232 { get; set; } + public global::tryAGI.OpenAI.LiveMediaSessionForkParams? Type1232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEventDiscriminator? Type1233 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent? Type1233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandClientEvent? Type1234 { get; set; } + public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParam? Type1234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandClientEventDiscriminator? Type1235 { get; set; } + public global::tryAGI.OpenAI.LiveClientConfigParam? Type1235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandClientEventDiscriminatorType? Type1236 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParam? Type1236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandConnectParams? Type1237 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent2? Type1237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandPathParams? Type1238 { get; set; } + public global::tryAGI.OpenAI.LiveServerEventDiscriminator? Type1238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandServerEvent? Type1239 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandClientEvent? Type1239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStarted? Type1240 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandClientEventDiscriminator? Type1240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdated? Type1241 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandClientEventDiscriminatorType? Type1241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuted? Type1242 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandConnectParams? Type1242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuted? Type1243 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandPathParams? Type1243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppended? Type1244 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandServerEvent? Type1244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppended? Type1245 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStarted? Type1245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppended? Type1246 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdated? Type1246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputTranscriptDelta? Type1247 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMuted? Type1247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputTranscriptDelta? Type1248 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmuted? Type1248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationCreated? Type1249 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppended? Type1249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseEvent? Type1250 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppended? Type1250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsageUpdated? Type1251 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppended? Type1251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosed? Type1252 { get; set; } + public global::tryAGI.OpenAI.LiveInputTranscriptDelta? Type1252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveErrorEvent? Type1253 { get; set; } + public global::tryAGI.OpenAI.LiveOutputTranscriptDelta? Type1253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInfoEvent? Type1254 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationCreated? Type1254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandServerEventDiscriminator? Type1255 { get; set; } + public global::tryAGI.OpenAI.LiveResponseEvent? Type1255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandServerEventDiscriminatorType? Type1256 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUsageUpdated? Type1256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebRTCTransportType? Type1257 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosed? Type1257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallType? Type1258 { get; set; } + public global::tryAGI.OpenAI.LiveErrorEvent? Type1258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecAction? Type1259 { get; set; } + public global::tryAGI.OpenAI.LiveInfoEvent? Type1259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type1260 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandServerEventDiscriminator? Type1260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type1261 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandServerEventDiscriminatorType? Type1261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus? Type1262 { get; set; } + public global::tryAGI.OpenAI.LiveWebRTCTransportType? Type1262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProbProperties? Type1263 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallType? Type1263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequestType? Type1264 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecAction? Type1264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseType? Type1265 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type1265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1266 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type1266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsType? Type1267 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus? Type1267 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1268 { get; set; } + public global::tryAGI.OpenAI.LogProbProperties? Type1268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsTool? Type1269 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalRequestType? Type1269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPTool? Type1270 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseType? Type1270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolType? Type1271 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolConnectorId? Type1272 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsType? Type1272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? Type1273 { get; set; } + public global::System.Collections.Generic.IList? Type1273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolFilter? Type1274 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsTool? Type1274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1275 { get; set; } + public global::tryAGI.OpenAI.MCPTool? Type1275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum? Type1276 { get; set; } + public global::tryAGI.OpenAI.MCPToolType? Type1276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2? Type1277 { get; set; } + public global::tryAGI.OpenAI.MCPToolConnectorId? Type1277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallType? Type1278 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? Type1278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallError? Type1279 { get; set; } + public global::tryAGI.OpenAI.MCPToolFilter? Type1279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallStatus? Type1280 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPProtocolError? Type1281 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum? Type1281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolExecutionError? Type1282 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2? Type1282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HTTPError? Type1283 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallType? Type1283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallErrorDiscriminator? Type1284 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallError? Type1284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallErrorDiscriminatorType? Type1285 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallStatus? Type1285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type1286 { get; set; } + public global::tryAGI.OpenAI.MCPProtocolError? Type1286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type1287 { get; set; } + public global::tryAGI.OpenAI.MCPToolExecutionError? Type1287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type1288 { get; set; } + public global::tryAGI.OpenAI.HTTPError? Type1288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type1289 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallErrorDiscriminator? Type1289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type1290 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallErrorDiscriminatorType? Type1290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type1291 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type1291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentRefusalObject? Type1292 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type1292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type1293 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type1293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type1294 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type1294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type1295 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type1295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type1296 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type1296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type1297 { get; set; } + public global::tryAGI.OpenAI.MessageContentRefusalObject? Type1297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type1298 { get; set; } + public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type1298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type1299 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type1299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObject? Type1300 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type1300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObjectType? Type1301 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type1301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObjectText? Type1302 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type1302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1303 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type1303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1304 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type1304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type1305 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObject? Type1305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type1306 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObjectType? Type1306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type1307 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObjectText? Type1307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type1308 { get; set; } + public global::System.Collections.Generic.IList>? Type1308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type1309 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type1310 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type1310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type1311 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type1311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type1312 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type1312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type1313 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type1313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type1314 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type1314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type1315 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type1315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type1316 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type1316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type1317 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type1317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type1318 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type1318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type1319 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type1319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type1320 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type1320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type1321 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type1321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type1322 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type1322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type1323 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type1323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1324 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type1324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1325 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type1325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObject? Type1326 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type1326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type1327 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type1327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type1328 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type1328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type1329 { get; set; } + public global::System.Collections.Generic.IList>? Type1329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectObject? Type1330 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectStatus? Type1331 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObject? Type1331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetails? Type1332 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type1332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type1333 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type1333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectRole? Type1334 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type1334 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1335 { get; set; } + public global::tryAGI.OpenAI.MessageObjectObject? Type1335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item? Type1336 { get; set; } + public global::tryAGI.OpenAI.MessageObjectStatus? Type1336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1337 { get; set; } + public global::tryAGI.OpenAI.MessageObjectIncompleteDetails? Type1337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type1338 { get; set; } + public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type1338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type1339 { get; set; } + public global::tryAGI.OpenAI.MessageObjectRole? Type1339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type1340 { get; set; } + public global::System.Collections.Generic.IList? Type1340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type1341 { get; set; } + public global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item? Type1341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type1342 { get; set; } + public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type1343 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type1343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type1344 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type1344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type1345 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type1345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type1346 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type1346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type1347 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type1347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelObject? Type1348 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type1348 { get; set; } /// /// /// - public global::System.DateTime? Type1349 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type1349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIds? Type1350 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type1350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponses? Type1351 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type1351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsCompaction? Type1352 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type1352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsLiveEnum? Type1353 { get; set; } + public global::tryAGI.OpenAI.ModelObject? Type1353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1354 { get; set; } + public global::System.DateTime? Type1354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsSharedEnum? Type1355 { get; set; } + public global::tryAGI.OpenAI.ModelIds? Type1355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention? Type1356 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponses? Type1356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1357 { get; set; } + public global::tryAGI.OpenAI.ModelIdsCompaction? Type1357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? Type1358 { get; set; } + public global::tryAGI.OpenAI.ModelIdsLiveEnum? Type1358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1359 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1360 { get; set; } + public global::tryAGI.OpenAI.ModelIdsSharedEnum? Type1360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1361 { get; set; } + public global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention? Type1361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyMessageRequest? Type1362 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyRunRequest? Type1363 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? Type1363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequest? Type1364 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResources? Type1365 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1366 { get; set; } + public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1367 { get; set; } + public global::tryAGI.OpenAI.ModifyMessageRequest? Type1367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NoiseReductionType? Type1368 { get; set; } + public global::tryAGI.OpenAI.ModifyRunRequest? Type1368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileObject? Type1369 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequest? Type1369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1370 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResources? Type1370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileStatus? Type1371 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateObject? Type1372 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateCertificateDetails? Type1373 { get; set; } + public global::tryAGI.OpenAI.NoiseReductionType? Type1373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateActivationResponse? Type1374 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileObject? Type1374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateActivationResponseObject? Type1375 { get; set; } + public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponse? Type1376 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileStatus? Type1376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponseObject? Type1377 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateObject? Type1377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationDataRetention? Type1378 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateCertificateDetails? Type1378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationDataRetentionObject? Type1379 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateActivationResponse? Type1379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationDataRetentionType? Type1380 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateActivationResponseObject? Type1380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateObject? Type1381 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponse? Type1381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateCertificateDetails? Type1382 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponseObject? Type1382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponse? Type1383 { get; set; } + public global::tryAGI.OpenAI.OrganizationDataRetention? Type1383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponseObject? Type1384 { get; set; } + public global::tryAGI.OpenAI.OrganizationDataRetentionObject? Type1384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponse? Type1385 { get; set; } + public global::tryAGI.OpenAI.OrganizationDataRetentionType? Type1385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponseObject? Type1386 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateObject? Type1386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlert? Type1387 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateCertificateDetails? Type1387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertObject? Type1388 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponse? Type1388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertCurrency? Type1389 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponseObject? Type1389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertInterval? Type1390 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponse? Type1390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResource? Type1391 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponseObject? Type1391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResourceObject? Type1392 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlert? Type1392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertListResource? Type1393 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertObject? Type1393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertListResourceObject? Type1394 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertCurrency? Type1394 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1395 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertInterval? Type1395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type1396 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResource? Type1396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type1397 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResourceObject? Type1397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudio? Type1398 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertListResource? Type1398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudioType? Type1399 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertListResourceObject? Type1399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContent? Type1400 { get; set; } + public global::System.Collections.Generic.IList? Type1400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContent? Type1401 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type1401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContent? Type1402 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type1402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContentDiscriminator? Type1403 { get; set; } + public global::tryAGI.OpenAI.OutputAudio? Type1403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContentDiscriminatorType? Type1404 { get; set; } + public global::tryAGI.OpenAI.OutputAudioType? Type1404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItem? Type1405 { get; set; } + public global::tryAGI.OpenAI.OutputTextContent? Type1405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1406 { get; set; } + public global::tryAGI.OpenAI.RefusalContent? Type1406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemDiscriminatorType? Type1407 { get; set; } + public global::tryAGI.OpenAI.ReasoningTextContent? Type1407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageType? Type1408 { get; set; } + public global::tryAGI.OpenAI.OutputContentDiscriminator? Type1408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageRole? Type1409 { get; set; } + public global::tryAGI.OpenAI.OutputContentDiscriminatorType? Type1409 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1410 { get; set; } + public global::tryAGI.OpenAI.OutputItem? Type1410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageContent? Type1411 { get; set; } + public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageStatus? Type1412 { get; set; } + public global::tryAGI.OpenAI.OutputItemDiscriminatorType? Type1412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageContentDiscriminator? Type1413 { get; set; } + public global::tryAGI.OpenAI.OutputMessageType? Type1413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? Type1414 { get; set; } + public global::tryAGI.OpenAI.OutputMessageRole? Type1414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PermissionErrorResponse? Type1415 { get; set; } + public global::System.Collections.Generic.IList? Type1415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1416 { get; set; } + public global::tryAGI.OpenAI.OutputMessageContent? Type1416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PredictionContentType? Type1417 { get; set; } + public global::tryAGI.OpenAI.OutputMessageStatus? Type1417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Project? Type1418 { get; set; } + public global::tryAGI.OpenAI.OutputMessageContentDiscriminator? Type1418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectObject? Type1419 { get; set; } + public global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? Type1419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicProjectResidency? Type1420 { get; set; } + public global::tryAGI.OpenAI.PermissionErrorResponse? Type1420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKey? Type1421 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1422 { get; set; } + public global::tryAGI.OpenAI.PredictionContentType? Type1422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerProjectAccess? Type1423 { get; set; } + public global::tryAGI.OpenAI.Project? Type1423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1424 { get; set; } + public global::tryAGI.OpenAI.ProjectObject? Type1424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1425 { get; set; } + public global::tryAGI.OpenAI.PublicProjectResidency? Type1425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerUser? Type1426 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKey? Type1426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerServiceAccount? Type1427 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1428 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerProjectAccess? Type1428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1429 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1430 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1431 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerUser? Type1431 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1432 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerServiceAccount? Type1432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectCreateRequest? Type1433 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectDataRetention? Type1434 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectDataRetentionObject? Type1435 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectDataRetentionType? Type1436 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroup? Type1437 { get; set; } + public global::System.Collections.Generic.IList? Type1437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupObject? Type1438 { get; set; } + public global::tryAGI.OpenAI.ProjectCreateRequest? Type1438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupGroupType? Type1439 { get; set; } + public global::tryAGI.OpenAI.ProjectDataRetention? Type1439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupDeletedResource? Type1440 { get; set; } + public global::tryAGI.OpenAI.ProjectDataRetentionObject? Type1440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject? Type1441 { get; set; } + public global::tryAGI.OpenAI.ProjectDataRetentionType? Type1441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupListResource? Type1442 { get; set; } + public global::tryAGI.OpenAI.ProjectGroup? Type1442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupListResourceObject? Type1443 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupObject? Type1443 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1444 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupGroupType? Type1444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectHostedToolPermissions? Type1445 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupDeletedResource? Type1445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectHostedToolPermissionsUpdateRequest? Type1446 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject? Type1446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponse? Type1447 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupListResource? Type1447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponseObject? Type1448 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupListResourceObject? Type1448 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1449 { get; set; } + public global::System.Collections.Generic.IList? Type1449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissions? Type1450 { get; set; } + public global::tryAGI.OpenAI.ProjectHostedToolPermissions? Type1450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsObject? Type1451 { get; set; } + public global::tryAGI.OpenAI.ProjectHostedToolPermissionsUpdateRequest? Type1451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsMode? Type1452 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponse? Type1452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsDeleteResponse? Type1453 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponseObject? Type1453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsDeleteResponseObject? Type1454 { get; set; } + public global::System.Collections.Generic.IList? Type1454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsUpdateRequest? Type1455 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissions? Type1455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsUpdateRequestMode? Type1456 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsObject? Type1456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimit? Type1457 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsMode? Type1457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1458 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsDeleteResponse? Type1458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1459 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsDeleteResponseObject? Type1459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1460 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsUpdateRequest? Type1460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1461 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsUpdateRequestMode? Type1461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1462 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimit? Type1462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccount? Type1463 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1464 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1465 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1466 { get; set; } + public global::System.Collections.Generic.IList? Type1466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1467 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1468 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccount? Type1468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1469 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1470 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1471 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1472 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1473 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1474 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1475 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1475 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1476 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlert? Type1477 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertObject? Type1478 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertCurrency? Type1479 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertInterval? Type1480 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertDeletedResource? Type1481 { get; set; } + public global::System.Collections.Generic.IList? Type1481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertDeletedResourceObject? Type1482 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlert? Type1482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertListResource? Type1483 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertObject? Type1483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertListResourceObject? Type1484 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertCurrency? Type1484 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1485 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertInterval? Type1485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1486 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertDeletedResource? Type1486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUser? Type1487 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertDeletedResourceObject? Type1487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserObject? Type1488 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertListResource? Type1488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1489 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertListResourceObject? Type1489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1490 { get; set; } + public global::System.Collections.Generic.IList? Type1490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1491 { get; set; } + public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserListResponse? Type1492 { get; set; } + public global::tryAGI.OpenAI.ProjectUser? Type1492 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1493 { get; set; } + public global::tryAGI.OpenAI.ProjectUserObject? Type1493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1494 { get; set; } + public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptVariant1? Type1495 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody? Type1496 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody? Type1497 { get; set; } + public global::tryAGI.OpenAI.ProjectUserListResponse? Type1497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicRoleListResource? Type1498 { get; set; } + public global::System.Collections.Generic.IList? Type1498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicRoleListResourceObject? Type1499 { get; set; } + public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1499 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1500 { get; set; } + public global::tryAGI.OpenAI.PromptVariant1? Type1500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody? Type1501 { get; set; } + public global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody? Type1501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1502 { get; set; } + public global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody? Type1502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat? Type1503 { get; set; } + public global::tryAGI.OpenAI.PublicRoleListResource? Type1503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType? Type1504 { get; set; } + public global::tryAGI.OpenAI.PublicRoleListResourceObject? Type1504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat? Type1505 { get; set; } + public global::System.Collections.Generic.IList? Type1505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType? Type1506 { get; set; } + public global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody? Type1506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat? Type1507 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType? Type1508 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat? Type1508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? Type1509 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType? Type1509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? Type1510 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat? Type1510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItem? Type1511 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType? Type1511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? Type1512 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat? Type1512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? Type1513 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType? Type1513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? Type1514 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? Type1514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? Type1515 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? Type1515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? Type1516 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItem? Type1516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? Type1517 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? Type1517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? Type1518 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? Type1518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? Type1519 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? Type1519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? Type1520 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? Type1520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? Type1521 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? Type1521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? Type1522 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? Type1522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? Type1523 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? Type1523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? Type1524 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? Type1524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? Type1525 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? Type1525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? Type1526 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? Type1526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? Type1527 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? Type1527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? Type1528 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? Type1528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? Type1529 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? Type1529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Type1530 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? Type1530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? Type1531 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? Type1531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? Type1532 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? Type1532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1533 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? Type1533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? Type1534 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? Type1534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? Type1535 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Type1535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1536 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? Type1536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponse? Type1537 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? Type1537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Type1538 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Type1539 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? Type1539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? Type1540 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? Type1540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type1541 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Type1542 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponse? Type1542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Type1543 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Type1543 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1544 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Type1544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Type1545 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? Type1545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? Type1546 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type1546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? Type1547 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Type1547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? Type1548 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Type1548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsShared? Type1549 { get; set; } + public global::System.Collections.Generic.IList? Type1549 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1550 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Type1550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? Type1551 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? Type1551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Type1552 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? Type1552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1553 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? Type1553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Type1554 { get; set; } + public global::System.Collections.Generic.IList? Type1554 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1555 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? Type1555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? Type1556 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Type1556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? Type1557 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1557 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1558 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Type1558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? Type1559 { get; set; } + public global::System.Collections.Generic.IList? Type1559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type1560 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? Type1560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1561 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? Type1561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceOptions? Type1562 { get; set; } + public global::System.Collections.Generic.IList? Type1562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunction? Type1563 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? Type1563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCP? Type1564 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type1564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1565 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? Type1566 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceOptions? Type1566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1567 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunction? Type1567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? Type1568 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCP? Type1568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? Type1569 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? Type1570 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? Type1570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? Type1571 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? Type1572 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? Type1572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? Type1573 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? Type1573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? Type1574 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? Type1574 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1575 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? Type1575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? Type1576 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? Type1576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? Type1577 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? Type1577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? Type1578 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? Type1578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? Type1579 { get; set; } + public global::System.Collections.Generic.IList? Type1579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? Type1580 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? Type1580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? Type1581 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? Type1581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? Type1582 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? Type1582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? Type1583 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? Type1583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? Type1584 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? Type1584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? Type1585 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? Type1585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? Type1586 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? Type1586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventError? Type1587 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? Type1587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? Type1588 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? Type1588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? Type1589 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? Type1589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? Type1590 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? Type1590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? Type1591 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventError? Type1591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? Type1592 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? Type1592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? Type1593 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? Type1593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? Type1594 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? Type1594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? Type1595 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? Type1595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? Type1596 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? Type1596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? Type1597 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? Type1597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? Type1598 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? Type1598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? Type1599 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? Type1599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? Type1600 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? Type1600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? Type1601 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? Type1601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? Type1602 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? Type1602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? Type1603 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? Type1603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? Type1604 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? Type1604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? Type1605 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? Type1605 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1606 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? Type1606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? Type1607 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? Type1607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Type1608 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? Type1608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? Type1609 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? Type1609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? Type1610 { get; set; } + public global::System.Collections.Generic.IList? Type1610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? Type1611 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? Type1611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? Type1612 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Type1612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? Type1613 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? Type1613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Type1614 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? Type1614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? Type1615 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? Type1615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? Type1616 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? Type1616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? Type1617 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? Type1617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? Type1618 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Type1618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? Type1619 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? Type1619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type1620 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? Type1620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? Type1621 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? Type1621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? Type1622 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? Type1622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? Type1623 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? Type1623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type1624 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type1624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? Type1625 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? Type1625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? Type1626 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? Type1626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? Type1627 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? Type1627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? Type1628 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type1628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? Type1629 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? Type1629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? Type1630 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? Type1630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? Type1631 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? Type1631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? Type1632 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? Type1632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? Type1633 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? Type1633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? Type1634 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? Type1634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? Type1635 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? Type1635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? Type1636 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? Type1636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? Type1637 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? Type1637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? Type1638 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? Type1638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? Type1639 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? Type1639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? Type1640 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? Type1640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? Type1641 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? Type1641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? Type1642 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? Type1642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? Type1643 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? Type1643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? Type1644 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? Type1644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? Type1645 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? Type1645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? Type1646 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? Type1646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? Type1647 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? Type1647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? Type1648 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? Type1648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? Type1649 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? Type1649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Type1650 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? Type1650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? Type1651 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? Type1651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? Type1652 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? Type1652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSession? Type1653 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? Type1653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? Type1654 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Type1654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? Type1655 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? Type1655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? Type1656 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? Type1656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? Type1657 { get; set; } + public global::tryAGI.OpenAI.RealtimeSession? Type1657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1658 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? Type1658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? Type1659 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? Type1659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? Type1660 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? Type1660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCallCreateRequest? Type1661 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? Type1661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? Type1662 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCallReferRequest? Type1663 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? Type1663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCallRejectRequest? Type1664 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? Type1664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEvent? Type1665 { get; set; } + public global::tryAGI.OpenAI.RealtimeCallCreateRequest? Type1665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1666 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? Type1666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1667 { get; set; } + public global::tryAGI.OpenAI.RealtimeCallReferRequest? Type1667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1668 { get; set; } + public global::tryAGI.OpenAI.RealtimeCallRejectRequest? Type1668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1669 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEvent? Type1669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1670 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1671 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1672 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1673 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1674 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1675 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1676 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1677 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? Type1678 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1679 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1680 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1681 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1682 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? Type1682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1683 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1684 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1685 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1686 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1687 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1688 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1689 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1690 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1691 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? Type1692 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1693 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1694 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1695 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1696 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? Type1696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1697 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1698 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1699 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1700 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1701 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1702 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1703 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator? Type1704 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? Type1705 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1706 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1707 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1708 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator? Type1708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1709 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? Type1709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1710 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1711 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1712 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1713 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1714 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1715 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1715 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1716 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1717 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1718 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1719 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1720 { get; set; } + public global::System.Collections.Generic.IList? Type1720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1721 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1722 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1722 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1723 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1724 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1725 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1726 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1727 { get; set; } + public global::System.Collections.Generic.IList? Type1727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1728 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1729 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1729 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1730 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1731 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1732 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Type1733 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1734 { get; set; } + public global::System.Collections.Generic.IList? Type1734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1735 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1736 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1737 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Type1737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1738 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1739 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1740 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1741 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1742 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1743 { get; set; } + public global::System.Collections.Generic.IList? Type1743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1744 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1745 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Session2? Type1746 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? Type1747 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? Type1748 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? Type1749 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? Type1750 { get; set; } + public global::tryAGI.OpenAI.Session2? Type1750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeFunctionTool? Type1751 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? Type1751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type1752 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? Type1752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1753 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? Type1753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1754 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? Type1754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1755 { get; set; } + public global::tryAGI.OpenAI.RealtimeFunctionTool? Type1755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1756 { get; set; } + public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type1756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1757 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1758 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1759 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1760 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1761 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1762 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1763 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeReasoning? Type1764 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeReasoningEffort? Type1765 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponse? Type1766 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseObject? Type1767 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1768 { get; set; } + public global::tryAGI.OpenAI.RealtimeReasoning? Type1768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetails? Type1769 { get; set; } + public global::tryAGI.OpenAI.RealtimeReasoningEffort? Type1769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType? Type1770 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponse? Type1770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason? Type1771 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseObject? Type1771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError? Type1772 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudio? Type1773 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetails? Type1773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioOutput? Type1774 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType? Type1774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1775 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason? Type1775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails? Type1776 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError? Type1776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type1777 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudio? Type1777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails? Type1778 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioOutput? Type1778 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1779 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputModalitie? Type1780 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails? Type1780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1781 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type1781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens? Type1782 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails? Type1782 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1783 { get; set; } + public global::System.Collections.Generic.IList? Type1783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Type1784 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputModalitie? Type1784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Type1785 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Type1786 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens? Type1786 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1787 { get; set; } + public global::System.Collections.Generic.IList? Type1787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1788 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Type1788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1789 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Type1789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1790 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Type1790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1791 { get; set; } + public global::System.Collections.Generic.IList>? Type1791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1792 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEvent? Type1793 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1794 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1795 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1796 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1797 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEvent? Type1797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1798 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1799 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1800 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1801 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventError? Type1802 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1803 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1804 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type1805 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1806 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventError? Type1806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1807 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1808 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1809 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type1809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1810 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1811 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1812 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1813 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1814 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1815 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1816 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1817 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1818 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1819 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1820 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1821 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1822 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1823 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1824 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1825 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1826 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1827 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1828 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1829 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1830 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1831 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1832 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1833 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1834 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type1835 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type1836 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type1837 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type1838 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type1839 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type1839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventDiscriminator? Type1840 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type1840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? Type1841 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type1841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1842 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type1842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1843 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type1843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1844 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventDiscriminator? Type1844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1845 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? Type1845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1846 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1847 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1848 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1849 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1850 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1851 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1852 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1853 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1854 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1855 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1856 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1857 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1858 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type1859 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1860 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1861 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1862 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1863 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type1863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1864 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1865 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1866 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1867 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1868 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1869 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1869 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1870 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1871 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1872 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1873 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1874 { get; set; } + public global::System.Collections.Generic.IList? Type1874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1875 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1876 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1877 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1878 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1879 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1880 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1881 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1882 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1883 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1884 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1885 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1886 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type1887 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type1888 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type1889 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type1890 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type1891 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type1891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1892 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type1892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1893 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type1893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1894 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type1894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1895 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type1895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1896 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1897 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1898 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1899 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1900 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionObject? Type1901 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1901 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1902 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionModalitie? Type1903 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1904 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionModel? Type1905 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionObject? Type1905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat? Type1906 { get; set; } + public global::System.Collections.Generic.IList? Type1906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat? Type1907 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionModalitie? Type1907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1? Type1908 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction? Type1909 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionModel? Type1909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1910 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat? Type1910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum? Type1911 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat? Type1911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2? Type1912 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1? Type1912 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1913 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction? Type1913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1914 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens? Type1915 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum? Type1915 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1916 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2? Type1916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item? Type1917 { get; set; } + public global::System.Collections.Generic.IList? Type1917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1918 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1918 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1919 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens? Type1919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1920 { get; set; } + public global::System.Collections.Generic.IList? Type1920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1921 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item? Type1921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1922 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1923 { get; set; } + public global::System.Collections.Generic.IList? Type1923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1924 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1925 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1925 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1926 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1927 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1928 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1929 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1930 { get; set; } + public global::System.Collections.Generic.IList? Type1930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncation? Type1931 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Type1932 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1932 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1933 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Type1934 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1935 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncation? Type1935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Type1936 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Type1936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Type1937 { get; set; } + public global::System.Collections.Generic.IList? Type1937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Type1938 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Type1938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type1939 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Type1940 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Type1940 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1941 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Type1941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? Type1942 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Type1942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1943 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type1943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? Type1944 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Type1944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? Type1945 { get; set; } + public global::System.Collections.Generic.IList? Type1945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1946 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? Type1946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Type1947 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1948 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? Type1948 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1949 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? Type1949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1950 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1950 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1951 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Type1951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1952 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1953 { get; set; } + public global::System.Collections.Generic.IList? Type1953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1954 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1955 { get; set; } + public global::System.Collections.Generic.IList? Type1955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1956 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1957 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1958 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1959 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1960 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1961 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1962 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1963 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType? Type1964 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAObject? Type1965 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1965 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1966 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie? Type1967 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1968 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType? Type1968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel? Type1969 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAObject? Type1969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio? Type1970 { get; set; } + public global::System.Collections.Generic.IList? Type1970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput? Type1971 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie? Type1971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type1972 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput? Type1973 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel? Type1973 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1974 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio? Type1974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem? Type1975 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput? Type1975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type1976 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type1976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type1977 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput? Type1977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1978 { get; set; } + public global::System.Collections.Generic.IList? Type1978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens? Type1979 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem? Type1979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1980 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type1980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1981 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type1981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1982 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1983 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens? Type1983 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1984 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1985 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Type1986 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Type1987 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type1988 { get; set; } + public global::System.Collections.Generic.IList? Type1988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type1989 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1989 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1990 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Type1990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type1991 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Type1991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1992 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type1992 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1993 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type1993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1994 { get; set; } + public global::System.Collections.Generic.IList? Type1994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1995 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type1995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType? Type1996 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1996 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1997 { get; set; } + public global::System.Collections.Generic.IList? Type1997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type1998 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio? Type1999 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type2000 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType? Type2000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type2001 { get; set; } + public global::System.Collections.Generic.IList? Type2001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection? Type2002 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type2002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEvent? Type2003 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio? Type2003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? Type2004 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type2004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? Type2005 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type2005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? Type2006 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection? Type2006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator? Type2007 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEvent? Type2007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? Type2008 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? Type2008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType? Type2009 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? Type2009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType? Type2010 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? Type2010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType? Type2011 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator? Type2011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest? Type2012 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? Type2012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest? Type2013 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType? Type2013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? Type2014 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType? Type2014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? Type2015 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType? Type2015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest? Type2016 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest? Type2016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse? Type2017 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest? Type2017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSession? Type2018 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? Type2018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEvent? Type2019 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? Type2019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? Type2020 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest? Type2020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? Type2021 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse? Type2021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? Type2022 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSession? Type2022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? Type2023 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEvent? Type2023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? Type2024 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? Type2024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? Type2025 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? Type2025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator? Type2026 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? Type2026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? Type2027 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? Type2027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType? Type2028 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? Type2028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType? Type2029 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? Type2029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType? Type2030 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator? Type2030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType? Type2031 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? Type2031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? Type2032 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType? Type2032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? Type2033 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType? Type2033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType? Type2034 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType? Type2034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionType? Type2035 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType? Type2035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudio? Type2036 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? Type2036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? Type2037 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? Type2037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription? Type2038 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType? Type2038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction? Type2039 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionType? Type2039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? Type2040 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudio? Type2040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? Type2041 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? Type2041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? Type2042 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription? Type2042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription? Type2043 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction? Type2043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction? Type2044 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? Type2044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? Type2045 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? Type2045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? Type2046 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? Type2046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? Type2047 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription? Type2047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription? Type2048 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction? Type2048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction? Type2049 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? Type2049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? Type2050 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? Type2050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type2051 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? Type2051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type2052 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription? Type2052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type2053 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction? Type2053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type2054 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? Type2054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type2055 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type2055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type2056 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type2056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type2057 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type2057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type2058 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type2058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type2059 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type2059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningModeEnum? Type2060 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type2060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummary? Type2061 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type2061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningContext? Type2062 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type2062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningGenerateSummary? Type2063 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type2063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemType? Type2064 { get; set; } + public global::tryAGI.OpenAI.ReasoningModeEnum? Type2064 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2065 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummary? Type2065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContent? Type2066 { get; set; } + public global::tryAGI.OpenAI.ReasoningContext? Type2066 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2067 { get; set; } + public global::tryAGI.OpenAI.ReasoningGenerateSummary? Type2067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemStatus? Type2068 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemType? Type2068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Response? Type2069 { get; set; } + public global::System.Collections.Generic.IList? Type2069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3? Type2070 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContent? Type2070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Truncation? Type2071 { get; set; } + public global::System.Collections.Generic.IList? Type2071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Object? Type2072 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemStatus? Type2072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Status? Type2073 { get; set; } + public global::tryAGI.OpenAI.Response? Type2073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AccessProgramsBody? Type2074 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3? Type2074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorVariant1? Type2075 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Truncation? Type2075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails? Type2076 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Object? Type2076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type2077 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Status? Type2077 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2078 { get; set; } + public global::tryAGI.OpenAI.AccessProgramsBody? Type2078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2079 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorVariant1? Type2079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsage? Type2080 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails? Type2080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheOptions? Type2081 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type2081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheDiagnostics? Type2082 { get; set; } + public global::System.Collections.Generic.IList? Type2082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Moderation? Type2083 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConversation? Type2084 { get; set; } + public global::tryAGI.OpenAI.ResponseUsage? Type2084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type2085 { get; set; } + public global::tryAGI.OpenAI.PromptCacheOptions? Type2085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type2086 { get; set; } + public global::tryAGI.OpenAI.PromptCacheDiagnostics? Type2086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type2087 { get; set; } + public global::tryAGI.OpenAI.Moderation? Type2087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type2088 { get; set; } + public global::tryAGI.OpenAI.ResponseConversation? Type2088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type2089 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type2089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type2090 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type2090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type2091 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type2091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type2092 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type2092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type2093 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type2093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type2094 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type2094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type2095 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type2095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type2096 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type2096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type2097 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type2097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type2098 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type2098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type2099 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type2099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type2100 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type2100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type2101 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type2101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type2102 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type2102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompactionCompactingEvent? Type2103 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type2103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent? Type2104 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type2104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEvent? Type2105 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type2105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEventType? Type2106 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type2106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateType? Type2107 { get; set; } + public global::tryAGI.OpenAI.ResponseCompactionCompactingEvent? Type2107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateReasoning? Type2108 { get; set; } + public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent? Type2108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParamType? Type2109 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEvent? Type2109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParamReasoning? Type2110 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEventType? Type2110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type2111 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateType? Type2111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type2112 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateReasoning? Type2112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type2113 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParamType? Type2113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type2114 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParamReasoning? Type2114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEvent? Type2115 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type2115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEventType? Type2116 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type2116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type2117 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type2117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type2118 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type2118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type2119 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEvent? Type2119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type2120 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEventType? Type2120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorCode? Type2121 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type2121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEvent? Type2122 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type2122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEventType? Type2123 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type2123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEvent? Type2124 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type2124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEventType? Type2125 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorCode? Type2125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type2126 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEvent? Type2126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type2127 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEventType? Type2127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type2128 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEvent? Type2128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type2129 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEventType? Type2129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type2130 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type2130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type2131 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type2131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type2132 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type2132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type2133 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type2133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type2134 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type2134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type2135 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type2135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextType? Type2136 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type2136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type2137 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type2137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type2138 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type2138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPython? Type2139 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type2139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type2140 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextType? Type2140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type2141 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type2141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type2142 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type2142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type2143 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPython? Type2143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type2144 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type2144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type2145 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type2145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type2146 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type2146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type2147 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type2147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type2148 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type2148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type2149 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type2149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type2150 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type2150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type2151 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type2151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type2152 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type2152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEvent? Type2153 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type2153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEventType? Type2154 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type2154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type2155 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type2155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type2156 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type2156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemList? Type2157 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEvent? Type2157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemListObject? Type2158 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEventType? Type2158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2159 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type2159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProb? Type2160 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type2160 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2161 { get; set; } + public global::tryAGI.OpenAI.ResponseItemList? Type2161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type2162 { get; set; } + public global::tryAGI.OpenAI.ResponseItemListObject? Type2162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type2163 { get; set; } + public global::System.Collections.Generic.IList? Type2163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type2164 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProb? Type2164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type2165 { get; set; } + public global::System.Collections.Generic.IList? Type2165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type2166 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type2166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type2167 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type2167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type2168 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type2168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type2169 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type2169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type2170 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type2170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type2171 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type2171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type2172 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type2172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type2173 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type2173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type2174 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type2174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type2175 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type2175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type2176 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type2176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type2177 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type2177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type2178 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type2178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type2179 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type2179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type2180 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type2180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type2181 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type2181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type2182 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type2182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type2183 { get; set; } + public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type2183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type2184 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type2184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type2185 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type2185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Annotation? Type2186 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type2186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2187 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type2187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextParam? Type2188 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type2188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceParam? Type2189 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type2189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEvent? Type2190 { get; set; } + public global::tryAGI.OpenAI.Annotation? Type2190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEventType? Type2191 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type2192 { get; set; } + public global::tryAGI.OpenAI.ResponseTextParam? Type2192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type2193 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceParam? Type2193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type2194 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEvent? Type2194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type2195 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEventType? Type2195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type2196 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type2196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type2197 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type2197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventStatus? Type2198 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type2198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type2199 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type2199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type2200 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type2200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type2201 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type2201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type2202 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventStatus? Type2202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type2203 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type2203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type2204 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type2204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type2205 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type2205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type2206 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type2206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type2207 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type2207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type2208 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type2208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type2209 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type2209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type2210 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type2210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type2211 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type2211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type2212 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type2212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerAcceptedEvent? Type2213 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type2213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerAcceptedEventType? Type2214 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type2214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerAcceptedEventSteer? Type2215 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type2215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerErrorCode? Type2216 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type2216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerErrorCodeEnum? Type2217 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerAcceptedEvent? Type2217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerEvent? Type2218 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerAcceptedEventType? Type2218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerEventType? Type2219 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerAcceptedEventSteer? Type2219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerInput? Type2220 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerErrorCode? Type2220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEvent? Type2221 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerErrorCodeEnum? Type2221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEventType? Type2222 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerEvent? Type2222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEventSteer? Type2223 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerEventType? Type2223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEventError? Type2224 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerInput? Type2224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEventErrorType? Type2225 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEvent? Type2225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2226 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEventType? Type2226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerInputItem? Type2227 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEventSteer? Type2227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParam? Type2228 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEventError? Type2228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerInputItemDiscriminator? Type2229 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEventErrorType? Type2229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerInputItemDiscriminatorType? Type2230 { get; set; } + public global::System.Collections.Generic.IList? Type2230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingEvent? Type2231 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerInputItem? Type2231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingEventType? Type2232 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParam? Type2232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingEventSteer? Type2233 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerInputItemDiscriminator? Type2233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingReason? Type2234 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerInputItemDiscriminatorType? Type2234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2235 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingEvent? Type2235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInput? Type2236 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingEventType? Type2236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingReasonEnum? Type2237 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingEventSteer? Type2237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type2238 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingReason? Type2238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type2239 { get; set; } + public global::System.Collections.Generic.IList? Type2239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutput? Type2240 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInput? Type2240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type2241 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingReasonEnum? Type2241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutput? Type2242 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type2242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type2243 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type2243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutput? Type2244 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutput? Type2244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutputType? Type2245 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type2245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type2246 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutput? Type2246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type2247 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type2247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutput? Type2248 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutput? Type2248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutputType? Type2249 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutputType? Type2249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type2250 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type2250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponse? Type2251 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type2251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type2252 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutput? Type2252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputDiscriminator? Type2253 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutputType? Type2253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputDiscriminatorType? Type2254 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type2254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEvent? Type2255 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponse? Type2255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEvent? Type2256 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type2256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEvent? Type2257 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputDiscriminator? Type2257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEvent? Type2258 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputDiscriminatorType? Type2258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEvent? Type2259 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEvent? Type2259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEvent? Type2260 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEvent? Type2260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type2261 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEvent? Type2261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type2262 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEvent? Type2262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type2263 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEvent? Type2263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type2264 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEvent? Type2264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type2265 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type2265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type2266 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type2266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? Type2267 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type2267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type2268 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type2268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2269 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type2269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type2270 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type2270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type2271 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? Type2271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type2272 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type2272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type2273 { get; set; } + public global::System.Collections.Generic.IList? Type2273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type2274 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type2274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type2275 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type2275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWsError? Type2276 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type2276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWsErrorType? Type2277 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type2277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorPayload? Type2278 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type2278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEvent? Type2279 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type2279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type2280 { get; set; } + public global::tryAGI.OpenAI.ResponseWsError? Type2280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type2281 { get; set; } + public global::tryAGI.OpenAI.ResponseWsErrorType? Type2281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventDiscriminatorType? Type2282 { get; set; } + public global::tryAGI.OpenAI.ErrorPayload? Type2282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type2283 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEvent? Type2283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type2284 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type2284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEvent? Type2285 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type2285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2286 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventDiscriminatorType? Type2286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDelta2? Type2287 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type2287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2288 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type2288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDone2? Type2289 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEvent? Type2289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2290 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDelta2? Type2291 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDelta2? Type2291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2292 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDone2? Type2293 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDone2? Type2293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2294 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallCodeWsDelta2? Type2295 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDelta2? Type2295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2296 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallCodeWsDone2? Type2297 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDone2? Type2297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2298 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallWsCompleted2? Type2299 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallCodeWsDelta2? Type2299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2300 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallInWsProgress2? Type2301 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallCodeWsDone2? Type2301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2302 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallWsInterpreting2? Type2303 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallWsCompleted2? Type2303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2304 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCompactionWsCompacting2? Type2305 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallInWsProgress2? Type2305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2306 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsCompleted2? Type2307 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallWsInterpreting2? Type2307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2308 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseContentPartWsAdded2? Type2309 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCompactionWsCompacting2? Type2309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2310 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseContentPartWsDone2? Type2311 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsCompleted2? Type2311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2312 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsCreated2? Type2313 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseContentPartWsAdded2? Type2313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2314 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallWsCompleted2? Type2315 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseContentPartWsDone2? Type2315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2316 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallInWsProgress2? Type2317 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsCreated2? Type2317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2318 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallWsSearching2? Type2319 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallWsCompleted2? Type2319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2320 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFunctionCallArgumentsWsDelta2? Type2321 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallInWsProgress2? Type2321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2322 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFunctionCallArgumentsWsDone2? Type2323 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallWsSearching2? Type2323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2324 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsAdded2? Type2325 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFunctionCallArgumentsWsDelta2? Type2325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2326 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsDelta2? Type2327 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFunctionCallArgumentsWsDone2? Type2327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2328 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsDone2? Type2329 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsAdded2? Type2329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2330 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallOutputContentWsDelta2? Type2331 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsDelta2? Type2331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2332 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallOutputContentWsDone2? Type2333 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsDone2? Type2333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2334 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseInWsProgress2? Type2335 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallOutputContentWsDelta2? Type2335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2336 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsFailed2? Type2337 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallOutputContentWsDone2? Type2337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2338 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsIncomplete2? Type2339 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseInWsProgress2? Type2339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2340 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputItemWsAdded2? Type2341 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsFailed2? Type2341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2342 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputItemWsDone2? Type2343 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsIncomplete2? Type2343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2344 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryPartWsAdded2? Type2345 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputItemWsAdded2? Type2345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2346 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryPartWsDone2? Type2347 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputItemWsDone2? Type2347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2348 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryTextWsDelta2? Type2349 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryPartWsAdded2? Type2349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2350 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryTextWsDone2? Type2351 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryPartWsDone2? Type2351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2352 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningTextWsDelta2? Type2353 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryTextWsDelta2? Type2353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2354 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningTextWsDone2? Type2355 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryTextWsDone2? Type2355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2356 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseRefusalWsDelta2? Type2357 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningTextWsDelta2? Type2357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2358 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseRefusalWsDone2? Type2359 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningTextWsDone2? Type2359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2360 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseTextWsDelta2? Type2361 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseRefusalWsDelta2? Type2361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2362 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseTextWsDone2? Type2363 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseRefusalWsDone2? Type2363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2364 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallWsCompleted2? Type2365 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseTextWsDelta2? Type2365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2366 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallInWsProgress2? Type2367 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseTextWsDone2? Type2367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2368 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallWsSearching2? Type2369 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallWsCompleted2? Type2369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2370 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallWsCompleted2? Type2371 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallInWsProgress2? Type2371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2372 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallWsGenerating2? Type2373 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallWsSearching2? Type2373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2374 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallInWsProgress2? Type2375 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallWsCompleted2? Type2375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2376 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallPartialWsImage2? Type2377 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallWsGenerating2? Type2377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2378 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallArgumentsWsDelta2? Type2379 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallInWsProgress2? Type2379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2380 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallArgumentsWsDone2? Type2381 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallPartialWsImage2? Type2381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2382 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallWsCompleted2? Type2383 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallArgumentsWsDelta2? Type2383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2384 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallWsFailed2? Type2385 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallArgumentsWsDone2? Type2385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2386 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallInWsProgress2? Type2387 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallWsCompleted2? Type2387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2388 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsWsCompleted2? Type2389 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallWsFailed2? Type2389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2390 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsWsFailed2? Type2391 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallInWsProgress2? Type2391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2392 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsInWsProgress2? Type2393 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsWsCompleted2? Type2393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2394 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputTextAnnotationWsAdded2? Type2395 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsWsFailed2? Type2395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2396 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsQueued2? Type2397 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsInWsProgress2? Type2397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2398 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCustomToolCallInputWsDelta2? Type2399 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputTextAnnotationWsAdded2? Type2399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2400 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCustomToolCallInputWsDone2? Type2401 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsQueued2? Type2401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type2402 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventDiscriminatorType? Type2403 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCustomToolCallInputWsDelta2? Type2403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesWebSocketStreamEvent? Type2404 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesWebSocketStreamEventVariant2? Type2405 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCustomToolCallInputWsDone2? Type2405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleObject? Type2406 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type2406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleDeletedResource? Type2407 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventDiscriminatorType? Type2407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type2408 { get; set; } + public global::tryAGI.OpenAI.ResponsesWebSocketStreamEvent? Type2408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleListResource? Type2409 { get; set; } + public global::tryAGI.OpenAI.ResponsesWebSocketStreamEventVariant2? Type2409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleListResourceObject? Type2410 { get; set; } + public global::tryAGI.OpenAI.RoleObject? Type2410 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2411 { get; set; } + public global::tryAGI.OpenAI.RoleDeletedResource? Type2411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type2412 { get; set; } + public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type2412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderRequest? Type2413 { get; set; } + public global::tryAGI.OpenAI.RoleListResource? Type2413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponse? Type2414 { get; set; } + public global::tryAGI.OpenAI.RoleListResourceObject? Type2414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type2415 { get; set; } + public global::System.Collections.Generic.IList? Type2415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type2416 { get; set; } + public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type2416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectObject? Type2417 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequest? Type2417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectStatus? Type2418 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponse? Type2418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredAction? Type2419 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type2419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type2420 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type2420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type2421 { get; set; } + public global::tryAGI.OpenAI.RunObjectObject? Type2421 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2422 { get; set; } + public global::tryAGI.OpenAI.RunObjectStatus? Type2422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObject? Type2423 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredAction? Type2423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastError? Type2424 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type2424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type2425 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type2425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type2426 { get; set; } + public global::System.Collections.Generic.IList? Type2426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type2427 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObject? Type2427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type2428 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastError? Type2428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObject? Type2429 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type2429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type2430 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type2430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type2431 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type2431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2432 { get; set; } + public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type2432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type2433 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObject? Type2433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type2434 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type2434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type2435 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type2435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type2436 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type2437 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type2437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type2438 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type2438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type2439 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type2439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2440 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type2440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type2441 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type2441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type2442 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type2442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type2443 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type2443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type2444 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type2445 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type2445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type2446 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type2446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type2447 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type2447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type2448 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type2448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type2449 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type2449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type2450 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type2450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type2451 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type2451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type2452 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type2452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type2453 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type2453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type2454 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type2454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type2455 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type2455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type2456 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type2456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type2457 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type2457 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type2458 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type2458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2459 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type2459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type2460 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type2460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type2461 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type2461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type2462 { get; set; } + public global::System.Collections.Generic.IList>? Type2462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type2463 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type2464 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type2464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type2465 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type2465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type2466 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type2466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type2467 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type2467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type2468 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type2468 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2469 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type2469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type2470 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type2470 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2471 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type2471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2472 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type2472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2473 { get; set; } + public global::System.Collections.Generic.IList? Type2473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2474 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type2474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2475 { get; set; } + public global::System.Collections.Generic.IList? Type2475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2476 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2477 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2478 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectObject? Type2479 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectType? Type2480 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectStatus? Type2481 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2482 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastError? Type2483 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectObject? Type2483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2484 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectType? Type2484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2485 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectStatus? Type2485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2486 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2487 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastError? Type2487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2488 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2489 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2490 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2491 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2492 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2493 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2494 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2495 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2496 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2497 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2498 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2499 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2500 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2501 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2502 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2503 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2504 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2505 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2506 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2507 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2508 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2509 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2510 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2511 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2512 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2513 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2514 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2515 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2516 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2517 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2518 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectType? Type2519 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2520 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2521 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2522 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2523 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectType? Type2523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendAlertNotificationChannelType? Type2524 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2525 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2526 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2527 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2528 { get; set; } + public global::tryAGI.OpenAI.SpendAlertNotificationChannelType? Type2528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2529 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2529 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2530 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2531 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2532 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2533 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObject? Type2534 { get; set; } + public global::System.Collections.Generic.IList? Type2534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectObject? Type2535 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResources? Type2536 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2537 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2538 { get; set; } + public global::tryAGI.OpenAI.ThreadObject? Type2538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2539 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectObject? Type2539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2540 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResources? Type2540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2541 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionTool? Type2542 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchTool? Type2543 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerTool? Type2544 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2545 { get; set; } + public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchTool? Type2546 { get; set; } + public global::tryAGI.OpenAI.FunctionTool? Type2546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgrammaticToolCallingParam? Type2547 { get; set; } + public global::tryAGI.OpenAI.FileSearchTool? Type2547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParam? Type2548 { get; set; } + public global::tryAGI.OpenAI.ComputerTool? Type2548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParam? Type2549 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParam? Type2550 { get; set; } + public global::tryAGI.OpenAI.WebSearchTool? Type2550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParam? Type2551 { get; set; } + public global::tryAGI.OpenAI.ProgrammaticToolCallingParam? Type2551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParam? Type2552 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolParam? Type2552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2553 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParam? Type2553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2554 { get; set; } + public global::tryAGI.OpenAI.CustomToolParam? Type2554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolDiscriminator? Type2555 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParam? Type2555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolDiscriminatorType? Type2556 { get; set; } + public global::tryAGI.OpenAI.ToolSearchToolParam? Type2556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2557 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2558 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2559 { get; set; } + public global::tryAGI.OpenAI.ToolDiscriminator? Type2559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustom? Type2560 { get; set; } + public global::tryAGI.OpenAI.ToolDiscriminatorType? Type2560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2561 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2562 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2563 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypes? Type2564 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustom? Type2564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParam? Type2565 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2566 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2567 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2568 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypes? Type2568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2569 { get; set; } + public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParam? Type2569 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2570 { get; set; } + public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2571 { get; set; } + public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2572 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2572 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2573 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2574 { get; set; } + public global::System.Collections.Generic.IList? Type2574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2575 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2576 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2577 { get; set; } + public global::System.Collections.Generic.IList? Type2577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2578 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2579 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2580 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2581 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationObjectType? Type2582 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateGroupBody? Type2583 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBody? Type2584 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBodyRetentionType? Type2585 { get; set; } + public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectDataRetentionBody? Type2586 { get; set; } + public global::tryAGI.OpenAI.TruncationObjectType? Type2586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType? Type2587 { get; set; } + public global::tryAGI.OpenAI.UpdateGroupBody? Type2587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectServiceAccountBody? Type2588 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBody? Type2588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectServiceAccountBodyRole? Type2589 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBodyRetentionType? Type2589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2590 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectDataRetentionBody? Type2590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2591 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType? Type2591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2592 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectServiceAccountBody? Type2592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2593 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectServiceAccountBodyRole? Type2593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Upload? Type2594 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadStatus? Type2595 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadObject? Type2596 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2597 { get; set; } + public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadCertificateRequest? Type2598 { get; set; } + public global::tryAGI.OpenAI.Upload? Type2598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPart? Type2599 { get; set; } + public global::tryAGI.OpenAI.UploadStatus? Type2599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPartObject? Type2600 { get; set; } + public global::tryAGI.OpenAI.UploadObject? Type2600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2601 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2602 { get; set; } + public global::tryAGI.OpenAI.UploadCertificateRequest? Type2602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2603 { get; set; } + public global::tryAGI.OpenAI.UploadPart? Type2603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2604 { get; set; } + public global::tryAGI.OpenAI.UploadPartObject? Type2604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2605 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2606 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResult? Type2607 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2608 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2609 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2610 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsResult? Type2611 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResult? Type2611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsResultObject? Type2612 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResult? Type2613 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResultObject? Type2614 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResult? Type2615 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsResult? Type2615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2616 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsResultObject? Type2616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponse? Type2617 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResult? Type2617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponseObject? Type2618 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResultObject? Type2618 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2619 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResult? Type2619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucket? Type2620 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2621 { get; set; } + public global::tryAGI.OpenAI.UsageResponse? Type2621 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2622 { get; set; } + public global::tryAGI.OpenAI.UsageResponseObject? Type2622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResultsItem? Type2623 { get; set; } + public global::System.Collections.Generic.IList? Type2623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2624 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucket? Type2624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsResult? Type2625 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2626 { get; set; } + public global::System.Collections.Generic.IList? Type2626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Type2627 { get; set; } + public global::tryAGI.OpenAI.ResultsItem? Type2627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2628 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsResultObject? Type2629 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsResult? Type2629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.User? Type2630 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserObject? Type2631 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Type2631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1? Type2632 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1Object? Type2633 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsResultObject? Type2633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjects? Type2634 { get; set; } + public global::tryAGI.OpenAI.User? Type2634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsObject? Type2635 { get; set; } + public global::tryAGI.OpenAI.UserObject? Type2635 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2636 { get; set; } + public global::tryAGI.OpenAI.UserUser1? Type2636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsDataItem? Type2637 { get; set; } + public global::tryAGI.OpenAI.UserUser1Object? Type2637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponse? Type2638 { get; set; } + public global::tryAGI.OpenAI.UserProjects? Type2638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2639 { get; set; } + public global::tryAGI.OpenAI.UserProjectsObject? Type2639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResource? Type2640 { get; set; } + public global::System.Collections.Generic.IList? Type2640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResourceObject? Type2641 { get; set; } + public global::tryAGI.OpenAI.UserProjectsDataItem? Type2641 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2642 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponse? Type2642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponse? Type2643 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponseObject? Type2644 { get; set; } + public global::tryAGI.OpenAI.UserListResource? Type2644 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2645 { get; set; } + public global::tryAGI.OpenAI.UserListResourceObject? Type2645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignment? Type2646 { get; set; } + public global::System.Collections.Generic.IList? Type2646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2647 { get; set; } + public global::tryAGI.OpenAI.UserListResponse? Type2647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2648 { get; set; } + public global::tryAGI.OpenAI.UserListResponseObject? Type2648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfigType? Type2649 { get; set; } + public global::System.Collections.Generic.IList? Type2649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderRequest? Type2650 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignment? Type2650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderResponse? Type2651 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2652 { get; set; } + public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2653 { get; set; } + public global::tryAGI.OpenAI.VadConfigType? Type2653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2654 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderRequest? Type2654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2655 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderResponse? Type2655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2656 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2657 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2658 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2659 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2660 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2661 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2662 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2663 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type2664 { get; set; } + public global::System.Collections.Generic.IList? Type2664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2665 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2666 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2667 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2668 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type2668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2669 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2670 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2671 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2672 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2673 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2674 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2675 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2676 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2677 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2677 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2678 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2679 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2680 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2680 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2681 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2682 { get; set; } + public global::System.Collections.Generic.IList? Type2682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2683 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResource? Type2684 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2685 { get; set; } + public global::System.Collections.Generic.IList? Type2685 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2686 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResource? Type2687 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2688 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResource? Type2688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2689 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2690 { get; set; } + public global::System.Collections.Generic.IList? Type2690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResource? Type2691 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResource? Type2691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResourceObject? Type2692 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFind? Type2693 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFindType? Type2694 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2695 { get; set; } + public global::tryAGI.OpenAI.VoiceResource? Type2695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2696 { get; set; } + public global::tryAGI.OpenAI.VoiceResourceObject? Type2696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearch? Type2697 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFind? Type2697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2698 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFindType? Type2698 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2699 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2700 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2701 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearch? Type2701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2702 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2703 { get; set; } + public global::System.Collections.Generic.IList? Type2703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolType? Type2704 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolFilters? Type2705 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2706 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallType? Type2707 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchCallStatus? Type2708 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolType? Type2708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2709 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolFilters? Type2709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2710 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Type2711 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallType? Type2711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2712 { get; set; } + public global::tryAGI.OpenAI.WebSearchCallStatus? Type2712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2713 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2714 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2715 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Type2715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2716 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2717 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2718 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2719 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpired? Type2720 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2721 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2722 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2723 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailed? Type2724 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpired? Type2724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2725 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2726 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2727 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2728 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailed? Type2728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2729 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2730 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2731 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2732 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2733 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2734 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2735 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2736 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2737 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2738 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2739 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2740 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2741 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2742 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2743 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2744 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2745 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2746 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2747 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2748 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2749 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2750 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2751 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncoming? Type2752 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingData? Type2753 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2754 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipMediaSecurity? Type2755 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2755 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2756 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncoming? Type2756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipHeader? Type2757 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingData? Type2757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingObject? Type2758 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingType? Type2759 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipMediaSecurity? Type2759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncoming? Type2760 { get; set; } + public global::System.Collections.Generic.IList? Type2760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingData? Type2761 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipHeader? Type2761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataType? Type2762 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingObject? Type2762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2763 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingType? Type2763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipMediaSecurity? Type2764 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncoming? Type2764 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2765 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingData? Type2765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipHeader? Type2766 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataType? Type2766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingObject? Type2767 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingType? Type2768 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipMediaSecurity? Type2768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2769 { get; set; } + public global::System.Collections.Generic.IList? Type2769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2770 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipHeader? Type2770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2771 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingObject? Type2771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipMediaSecurity? Type2772 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingType? Type2772 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2773 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2774 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2775 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2776 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipMediaSecurity? Type2776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2777 { get; set; } + public global::System.Collections.Generic.IList? Type2777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2778 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2779 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2780 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2781 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2782 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2783 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2784 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailed? Type2785 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2786 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2787 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2788 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2789 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailed? Type2789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2790 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2791 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2792 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreated? Type2793 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedObject? Type2794 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedType? Type2795 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedData? Type2796 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssued? Type2797 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreated? Type2797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedObject? Type2798 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedObject? Type2798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedType? Type2799 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedType? Type2799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedData? Type2800 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedData? Type2800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreated? Type2801 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssued? Type2801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedObject? Type2802 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedObject? Type2802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedType? Type2803 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedType? Type2803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedData? Type2804 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedData? Type2804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssued? Type2805 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreated? Type2805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject? Type2806 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedObject? Type2806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType? Type2807 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedType? Type2807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedData? Type2808 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedData? Type2808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationInputType? Type2809 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssued? Type2809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationResultBodyType? Type2810 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject? Type2810 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type2811 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType? Type2811 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type2812 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedData? Type2812 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2813 { get; set; } + public global::tryAGI.OpenAI.MisalignmentErrorType? Type2813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheTTLEnum? Type2814 { get; set; } + public global::tryAGI.OpenAI.MisalignmentErrorTypeEnum? Type2814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheModeEnum? Type2815 { get; set; } + public global::tryAGI.OpenAI.MisalignmentSteer? Type2815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointParamMode? Type2816 { get; set; } + public global::tryAGI.OpenAI.ModerationInputType? Type2816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationMode? Type2817 { get; set; } + public global::tryAGI.OpenAI.ModerationResultBodyType? Type2817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationConfigParam? Type2818 { get; set; } + public global::System.Collections.Generic.Dictionary? Type2818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationPolicyParam? Type2819 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type2819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillReferenceParamType? Type2820 { get; set; } + public global::System.Collections.Generic.IList? Type2820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2821 { get; set; } + public global::tryAGI.OpenAI.PromptCacheTTLEnum? Type2821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2822 { get; set; } + public global::tryAGI.OpenAI.PromptCacheModeEnum? Type2822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2823 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointParamMode? Type2823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillParamType? Type2824 { get; set; } + public global::tryAGI.OpenAI.ModerationMode? Type2824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2825 { get; set; } + public global::tryAGI.OpenAI.ModerationConfigParam? Type2825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2826 { get; set; } + public global::tryAGI.OpenAI.ModerationPolicyParam? Type2826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2827 { get; set; } + public global::tryAGI.OpenAI.SkillReferenceParamType? Type2827 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2828 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStatus? Type2829 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRole? Type2830 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointConfig? Type2831 { get; set; } + public global::tryAGI.OpenAI.InlineSkillParamType? Type2831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode? Type2832 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentType? Type2833 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBody? Type2834 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBodyType? Type2835 { get; set; } + public global::System.Collections.Generic.IList? Type2835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBody? Type2836 { get; set; } + public global::tryAGI.OpenAI.MessageStatus? Type2836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBodyType? Type2837 { get; set; } + public global::tryAGI.OpenAI.MessageRole? Type2837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2838 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointConfig? Type2838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2839 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode? Type2839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2840 { get; set; } + public global::tryAGI.OpenAI.InputTextContentType? Type2840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationDiscriminatorType? Type2841 { get; set; } + public global::tryAGI.OpenAI.FileCitationBody? Type2841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TopLogProb? Type2842 { get; set; } + public global::tryAGI.OpenAI.FileCitationBodyType? Type2842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProb? Type2843 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBody? Type2843 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2844 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBodyType? Type2844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContentType? Type2845 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2845 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2846 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2846 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2847 { get; set; } + public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContent? Type2848 { get; set; } + public global::tryAGI.OpenAI.AnnotationDiscriminatorType? Type2848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContentType? Type2849 { get; set; } + public global::tryAGI.OpenAI.TopLogProb? Type2849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContentType? Type2850 { get; set; } + public global::tryAGI.OpenAI.LogProb? Type2850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContentType? Type2851 { get; set; } + public global::System.Collections.Generic.IList? Type2851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContentType? Type2852 { get; set; } + public global::tryAGI.OpenAI.OutputTextContentType? Type2852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageDetail? Type2853 { get; set; } + public global::System.Collections.Generic.IList? Type2853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentType? Type2854 { get; set; } + public global::System.Collections.Generic.IList? Type2854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2855 { get; set; } + public global::tryAGI.OpenAI.TextContent? Type2855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2856 { get; set; } + public global::tryAGI.OpenAI.TextContentType? Type2856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileInputDetail? Type2857 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContentType? Type2857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentType? Type2858 { get; set; } + public global::tryAGI.OpenAI.ReasoningTextContentType? Type2858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhase2? Type2859 { get; set; } + public global::tryAGI.OpenAI.RefusalContentType? Type2859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageType? Type2860 { get; set; } + public global::tryAGI.OpenAI.ImageDetail? Type2860 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2861 { get; set; } + public global::tryAGI.OpenAI.InputImageContentType? Type2861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem3? Type2862 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2863 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Type2864 { get; set; } + public global::tryAGI.OpenAI.FileInputDetail? Type2864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCaller? Type2865 { get; set; } + public global::tryAGI.OpenAI.InputFileContentType? Type2865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerType? Type2866 { get; set; } + public global::tryAGI.OpenAI.MessagePhase2? Type2866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCaller? Type2867 { get; set; } + public global::tryAGI.OpenAI.MessageType? Type2867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerType? Type2868 { get; set; } + public global::System.Collections.Generic.IList? Type2868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerDiscriminator? Type2869 { get; set; } + public global::tryAGI.OpenAI.ContentItem3? Type2869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerDiscriminatorType? Type2870 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerParam? Type2871 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Type2871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerParamType? Type2872 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCaller? Type2872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerParam? Type2873 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCallerType? Type2873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerParamType? Type2874 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCaller? Type2874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminator? Type2875 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCallerType? Type2875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminatorType? Type2876 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerDiscriminator? Type2876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageBackground? Type2877 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerDiscriminatorType? Type2877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageOutputFormat? Type2878 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCallerParam? Type2878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallType? Type2879 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCallerParamType? Type2879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type2880 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCallerParam? Type2880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2881 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCallerParamType? Type2881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallSizeVariant1? Type2882 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminator? Type2882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallQuality? Type2883 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminatorType? Type2883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickButtonType? Type2884 { get; set; } + public global::tryAGI.OpenAI.ImageBackground? Type2884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickParamType? Type2885 { get; set; } + public global::tryAGI.OpenAI.ImageOutputFormat? Type2885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClickActionType? Type2886 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallType? Type2886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CoordParam? Type2887 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type2887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragParamType? Type2888 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2888 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2889 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallSizeVariant1? Type2889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPressActionType? Type2890 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallQuality? Type2890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MoveParamType? Type2891 { get; set; } + public global::tryAGI.OpenAI.ClickButtonType? Type2891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScreenshotParamType? Type2892 { get; set; } + public global::tryAGI.OpenAI.ClickParamType? Type2892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScrollParamType? Type2893 { get; set; } + public global::tryAGI.OpenAI.DoubleClickActionType? Type2893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TypeParamType? Type2894 { get; set; } + public global::tryAGI.OpenAI.CoordParam? Type2894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitParamType? Type2895 { get; set; } + public global::tryAGI.OpenAI.DragParamType? Type2895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2896 { get; set; } + public global::System.Collections.Generic.IList? Type2896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallType? Type2897 { get; set; } + public global::tryAGI.OpenAI.KeyPressActionType? Type2897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolType? Type2898 { get; set; } + public global::tryAGI.OpenAI.MoveParamType? Type2898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankerVersionType? Type2899 { get; set; } + public global::tryAGI.OpenAI.ScreenshotParamType? Type2899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HybridSearchOptions? Type2900 { get; set; } + public global::tryAGI.OpenAI.ScrollParamType? Type2900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankingOptions? Type2901 { get; set; } + public global::tryAGI.OpenAI.TypeParamType? Type2901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Filters2? Type2902 { get; set; } + public global::tryAGI.OpenAI.WaitParamType? Type2902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolType? Type2903 { get; set; } + public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolType? Type2904 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallType? Type2904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerEnvironment? Type2905 { get; set; } + public global::tryAGI.OpenAI.FunctionToolType? Type2905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2906 { get; set; } + public global::tryAGI.OpenAI.RankerVersionType? Type2906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2907 { get; set; } + public global::tryAGI.OpenAI.HybridSearchOptions? Type2907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2908 { get; set; } + public global::tryAGI.OpenAI.RankingOptions? Type2908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy2? Type2909 { get; set; } + public global::tryAGI.OpenAI.Filters2? Type2909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2910 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolType? Type2910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type2911 { get; set; } + public global::tryAGI.OpenAI.ComputerToolType? Type2911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgrammaticToolCallingParamType? Type2912 { get; set; } + public global::tryAGI.OpenAI.ComputerEnvironment? Type2912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParamType? Type2913 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParam? Type2914 { get; set; } + public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamType? Type2915 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy3? Type2916 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy2? Type2916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2917 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Type2918 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type2918 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2919 { get; set; } + public global::tryAGI.OpenAI.ProgrammaticToolCallingParamType? Type2919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem2? Type2920 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolParamType? Type2920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2921 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParam? Type2921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Type2922 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamType? Type2922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalSkillParam? Type2923 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy3? Type2923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2924 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2925 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Type2925 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2926 { get; set; } + public global::System.Collections.Generic.IList? Type2926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParam? Type2927 { get; set; } + public global::tryAGI.OpenAI.SkillsItem2? Type2927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2928 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2929 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Type2929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant1? Type2930 { get; set; } + public global::tryAGI.OpenAI.LocalSkillParam? Type2930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2931 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type2932 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParam? Type2933 { get; set; } + public global::System.Collections.Generic.IList? Type2933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2934 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParam? Type2934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GrammarSyntax1? Type2935 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2936 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2937 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant1? Type2937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamType? Type2938 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format2? Type2939 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type2939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2940 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParam? Type2940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Type2941 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmptyModelParam? Type2942 { get; set; } + public global::tryAGI.OpenAI.GrammarSyntax1? Type2942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParam? Type2943 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParamType? Type2944 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamType? Type2945 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamType? Type2945 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2946 { get; set; } + public global::tryAGI.OpenAI.Format2? Type2946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem13? Type2947 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2948 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Type2948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Type2949 { get; set; } + public global::tryAGI.OpenAI.EmptyModelParam? Type2949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2950 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParam? Type2950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocation? Type2951 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParamType? Type2951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocationType? Type2952 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamType? Type2952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContextSize? Type2953 { get; set; } + public global::System.Collections.Generic.IList? Type2953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContentType? Type2954 { get; set; } + public global::tryAGI.OpenAI.ToolsItem13? Type2954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2955 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2955 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2956 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Type2956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2957 { get; set; } + public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputType? Type2958 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocation? Type2958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsType? Type2959 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocationType? Type2959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramType? Type2960 { get; set; } + public global::tryAGI.OpenAI.SearchContextSize? Type2960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputStatus? Type2961 { get; set; } + public global::tryAGI.OpenAI.SearchContentType? Type2961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputType? Type2962 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionBodyType? Type2963 { get; set; } + public global::System.Collections.Generic.IList? Type2963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2964 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2965 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputType? Type2965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecActionType? Type2966 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsType? Type2966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellAction? Type2967 { get; set; } + public global::tryAGI.OpenAI.ProgramType? Type2967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallStatus? Type2968 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputStatus? Type2968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2969 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputType? Type2969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2970 { get; set; } + public global::tryAGI.OpenAI.CompactionBodyType? Type2970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResource? Type2971 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2972 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallType? Type2973 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecActionType? Type2973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant12? Type2974 { get; set; } + public global::tryAGI.OpenAI.FunctionShellAction? Type2974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2975 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallStatus? Type2975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Type2976 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type2977 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2978 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResource? Type2978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2979 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2980 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallType? Type2980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2981 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant12? Type2981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2982 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Outcome? Type2983 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Type2983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2984 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type2984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Type2985 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2986 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2986 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2987 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type2988 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type2989 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type2990 { get; set; } + public global::tryAGI.OpenAI.Outcome? Type2990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type2991 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type2992 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Type2992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type2993 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type2994 { get; set; } + public global::System.Collections.Generic.IList? Type2994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type2995 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type2995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Operation? Type2996 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type2996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type2997 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type2997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Type2998 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type2998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type2999 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type2999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type3000 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type3000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPProtocolErrorType? Type3001 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type3001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolExecutionErrorType? Type3002 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type3002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HTTPErrorType? Type3003 { get; set; } + public global::tryAGI.OpenAI.Operation? Type3003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DetailEnum? Type3004 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type3004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemStatus? Type3005 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Type3005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type3006 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type3006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParam? Type3007 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type3007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParamType? Type3008 { get; set; } + public global::tryAGI.OpenAI.MCPProtocolErrorType? Type3008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type3009 { get; set; } + public global::tryAGI.OpenAI.MCPToolExecutionErrorType? Type3009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type3010 { get; set; } + public global::tryAGI.OpenAI.HTTPErrorType? Type3010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileDetailEnum? Type3011 { get; set; } + public global::tryAGI.OpenAI.DetailEnum? Type3011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParam? Type3012 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemStatus? Type3012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParamType? Type3013 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type3013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type3014 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParam? Type3014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3015 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParamType? Type3015 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3016 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type3016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputVariant2Item? Type3017 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type3017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type3018 { get; set; } + public global::tryAGI.OpenAI.FileDetailEnum? Type3018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type3019 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParam? Type3019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationParam? Type3020 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParamType? Type3020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationParamType? Type3021 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type3021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationParam? Type3022 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationParamType? Type3023 { get; set; } + public global::System.Collections.Generic.IList? Type3023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationParam? Type3024 { get; set; } + public global::tryAGI.OpenAI.OutputVariant2Item? Type3024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationParamType? Type3025 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type3025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type3026 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type3026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type3027 { get; set; } + public global::tryAGI.OpenAI.FileCitationParam? Type3027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsItemParamType? Type3028 { get; set; } + public global::tryAGI.OpenAI.FileCitationParamType? Type3028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsItemParamRole? Type3029 { get; set; } + public global::tryAGI.OpenAI.UrlCitationParam? Type3029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type3030 { get; set; } + public global::tryAGI.OpenAI.UrlCitationParamType? Type3030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellActionParam? Type3031 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationParam? Type3031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type3032 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationParamType? Type3032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type3033 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type3033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant13? Type3034 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type3034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type3035 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsItemParamType? Type3035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type3036 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsItemParamRole? Type3036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type3037 { get; set; } + public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type3037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type3038 { get; set; } + public global::tryAGI.OpenAI.FunctionShellActionParam? Type3038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type3039 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type3039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type3040 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type3040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type3041 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant13? Type3041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type3042 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type3042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Type3043 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type3043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type3044 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type3044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type3045 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type3045 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3046 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type3046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type3047 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type3047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type3048 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type3048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type3049 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type3049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type3050 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Type3050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type3051 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type3051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type3052 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type3052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type3053 { get; set; } + public global::System.Collections.Generic.IList? Type3053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type3054 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type3054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type3055 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type3055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Type3056 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type3056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type3057 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type3057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type3058 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type3058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type3059 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type3059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionTriggerItemParamType? Type3060 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type3060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParamType? Type3061 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type3061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramItemParamType? Type3062 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type3062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputItemStatus? Type3063 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Type3063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputItemParamType? Type3064 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type3064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResource? Type3065 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type3065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResourceObject? Type3066 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type3066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentErrorType? Type3067 { get; set; } + public global::tryAGI.OpenAI.CompactionTriggerItemParamType? Type3067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentErrorTypeEnum? Type3068 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParamType? Type3068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentSteer? Type3069 { get; set; } + public global::tryAGI.OpenAI.ProgramItemParamType? Type3069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type3070 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputItemStatus? Type3070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type3071 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputItemParamType? Type3071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCustomVoiceParam? Type3072 { get; set; } + public global::tryAGI.OpenAI.ConversationResource? Type3072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf?, global::tryAGI.OpenAI.LiveCustomVoiceParam>? Type3073 { get; set; } + public global::tryAGI.OpenAI.ConversationResourceObject? Type3073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type3074 { get; set; } + public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type3074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1? Type3075 { get; set; } + public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type3075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParam? Type3076 { get; set; } + public global::tryAGI.OpenAI.LiveCustomVoiceParam? Type3076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParamType? Type3077 { get; set; } + public global::tryAGI.OpenAI.OneOf?, global::tryAGI.OpenAI.LiveCustomVoiceParam>? Type3077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesServiceTier? Type3078 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type3078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveReasoningEffort? Type3079 { get; set; } + public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1? Type3079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveReasoningSummary? Type3080 { get; set; } + public global::tryAGI.OpenAI.LiveClientDelegationParam? Type3080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationReasoningInputParam? Type3081 { get; set; } + public global::tryAGI.OpenAI.LiveClientDelegationParamType? Type3081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTextVerbosity? Type3082 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesServiceTier? Type3082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationTextInputParam? Type3083 { get; set; } + public global::tryAGI.OpenAI.LiveReasoningEffort? Type3083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Type3084 { get; set; } + public global::tryAGI.OpenAI.LiveReasoningSummary? Type3084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolInputParamType? Type3085 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationReasoningInputParam? Type3085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? Type3086 { get; set; } + public global::tryAGI.OpenAI.LiveTextVerbosity? Type3086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebSearchToolInputParamType? Type3087 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationTextInputParam? Type3087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveToolChoiceEnum? Type3088 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Type3088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolChoiceParam? Type3089 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolInputParamType? Type3089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolChoiceParamType? Type3090 { get; set; } + public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? Type3090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMCPToolChoiceParam? Type3091 { get; set; } + public global::tryAGI.OpenAI.LiveWebSearchToolInputParamType? Type3091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMCPToolChoiceParamType? Type3092 { get; set; } + public global::tryAGI.OpenAI.LiveToolChoiceEnum? Type3092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParam? Type3093 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolChoiceParam? Type3093 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3094 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolChoiceParamType? Type3094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem14? Type3095 { get; set; } + public global::tryAGI.OpenAI.LiveMCPToolChoiceParam? Type3095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator? Type3096 { get; set; } + public global::tryAGI.OpenAI.LiveMCPToolChoiceParamType? Type3096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? Type3097 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParam? Type3097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3098 { get; set; } + public global::System.Collections.Generic.IList? Type3098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationParam? Type3099 { get; set; } + public global::tryAGI.OpenAI.ToolsItem14? Type3099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationParamType? Type3100 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator? Type3100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant1Discriminator? Type3101 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? Type3101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant1DiscriminatorType? Type3102 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialMessageStatus? Type3103 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationParam? Type3103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParam? Type3104 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationParamType? Type3104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParamType? Type3105 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant1Discriminator? Type3105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam? Type3106 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant1DiscriminatorType? Type3106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamType? Type3107 { get; set; } + public global::tryAGI.OpenAI.LiveInitialMessageStatus? Type3107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamRole? Type3108 { get; set; } + public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParam? Type3108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3109 { get; set; } + public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParamType? Type3109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParam? Type3110 { get; set; } + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam? Type3110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamType? Type3111 { get; set; } + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamType? Type3111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamRole? Type3112 { get; set; } + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamRole? Type3112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialTextContentPartParam? Type3113 { get; set; } + public global::System.Collections.Generic.IList? Type3113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialTextContentPartParamType? Type3114 { get; set; } + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParam? Type3114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam? Type3115 { get; set; } + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamType? Type3115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParamType? Type3116 { get; set; } + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamRole? Type3116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam? Type3117 { get; set; } + public global::tryAGI.OpenAI.LiveInitialTextContentPartParam? Type3117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamType? Type3118 { get; set; } + public global::tryAGI.OpenAI.LiveInitialTextContentPartParamType? Type3118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamRole? Type3119 { get; set; } + public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam? Type3119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3120 { get; set; } + public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParamType? Type3120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem4? Type3121 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam? Type3121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminator? Type3122 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamType? Type3122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminatorType? Type3123 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamRole? Type3123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialItem? Type3124 { get; set; } + public global::System.Collections.Generic.IList? Type3124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialItemDiscriminator? Type3125 { get; set; } + public global::tryAGI.OpenAI.ContentItem4? Type3125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialItemDiscriminatorRole? Type3126 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminator? Type3126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAllowedServerEventParam? Type3127 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminatorType? Type3127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDataChannelConfigParam? Type3128 { get; set; } + public global::tryAGI.OpenAI.LiveInitialItem? Type3128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3129 { get; set; } + public global::tryAGI.OpenAI.LiveInitialItemDiscriminator? Type3129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedClientEvents? Type3130 { get; set; } + public global::tryAGI.OpenAI.LiveInitialItemDiscriminatorRole? Type3130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3131 { get; set; } + public global::tryAGI.OpenAI.LiveAllowedServerEventParam? Type3131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedServerEvents? Type3132 { get; set; } + public global::tryAGI.OpenAI.LiveDataChannelConfigParam? Type3132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3133 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParam? Type3134 { get; set; } + public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedClientEvents? Type3134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3135 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem15? Type3136 { get; set; } + public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedServerEvents? Type3136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator? Type3137 { get; set; } + public global::System.Collections.Generic.IList? Type3137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? Type3138 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParam? Type3138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType? Type3139 { get; set; } + public global::System.Collections.Generic.IList? Type3139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse? Type3140 { get; set; } + public global::tryAGI.OpenAI.ToolsItem15? Type3140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderResponseType? Type3141 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator? Type3141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse? Type3142 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? Type3142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderResponseType? Type3143 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType? Type3143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse? Type3144 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse? Type3144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderResponseType? Type3145 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderResponseType? Type3145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProviderDiscriminator? Type3146 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse? Type3146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProviderDiscriminatorType? Type3147 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderResponseType? Type3147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType? Type3148 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse? Type3148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type3149 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderResponseType? Type3149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type3150 { get; set; } + public global::tryAGI.OpenAI.ProviderDiscriminator? Type3150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CyberAccessProgramEnum? Type3151 { get; set; } + public global::tryAGI.OpenAI.ProviderDiscriminatorType? Type3151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningModeEnumEnum? Type3152 { get; set; } + public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType? Type3152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CacheMissReasonTypeEnum? Type3153 { get; set; } + public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type3153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody? Type3154 { get; set; } + public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type3154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBodyType? Type3155 { get; set; } + public global::tryAGI.OpenAI.CyberAccessProgramEnum? Type3155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody? Type3156 { get; set; } + public global::tryAGI.OpenAI.ReasoningModeEnumEnum? Type3156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBodyType? Type3157 { get; set; } + public global::tryAGI.OpenAI.CacheMissReasonTypeEnum? Type3157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody? Type3158 { get; set; } + public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody? Type3158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type3159 { get; set; } + public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBodyType? Type3159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody? Type3160 { get; set; } + public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody? Type3160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBodyType? Type3161 { get; set; } + public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBodyType? Type3161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminator? Type3162 { get; set; } + public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody? Type3162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminatorType? Type3163 { get; set; } + public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type3163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationErrorBody? Type3164 { get; set; } + public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody? Type3164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationErrorBodyType? Type3165 { get; set; } + public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBodyType? Type3165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Input4? Type3166 { get; set; } + public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminator? Type3166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationInputDiscriminator? Type3167 { get; set; } + public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminatorType? Type3167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationInputDiscriminatorType? Type3168 { get; set; } + public global::tryAGI.OpenAI.ModerationErrorBody? Type3168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Output5? Type3169 { get; set; } + public global::tryAGI.OpenAI.ModerationErrorBodyType? Type3169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationOutputDiscriminator? Type3170 { get; set; } + public global::tryAGI.OpenAI.Input4? Type3170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationOutputDiscriminatorType? Type3171 { get; set; } + public global::tryAGI.OpenAI.ModerationInputDiscriminator? Type3171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEventType? Type3172 { get; set; } + public global::tryAGI.OpenAI.ModerationInputDiscriminatorType? Type3172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEventType? Type3173 { get; set; } + public global::tryAGI.OpenAI.Output5? Type3173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEventType? Type3174 { get; set; } + public global::tryAGI.OpenAI.ModerationOutputDiscriminator? Type3174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEventType? Type3175 { get; set; } + public global::tryAGI.OpenAI.ModerationOutputDiscriminatorType? Type3175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ShellCallOutputDelta? Type3176 { get; set; } + public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEventType? Type3176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEventType? Type3177 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEventType? Type3177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEventType? Type3178 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEventType? Type3178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationBody? Type3179 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEventType? Type3179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateConversationBody? Type3180 { get; set; } + public global::tryAGI.OpenAI.ShellCallOutputDelta? Type3180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type3181 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEventType? Type3181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseNoticeType? Type3182 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEventType? Type3182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseNotice? Type3183 { get; set; } + public global::tryAGI.OpenAI.CreateConversationBody? Type3183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseResource? Type3184 { get; set; } + public global::tryAGI.OpenAI.UpdateConversationBody? Type3184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseResourceObject? Type3185 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type3185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyAlertErrorType? Type3186 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseNoticeType? Type3186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyAlertResource? Type3187 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseNotice? Type3187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyAlertResourceObject? Type3188 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseResource? Type3188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageOrder? Type3189 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseResourceObject? Type3189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageStatus? Type3190 { get; set; } + public global::tryAGI.OpenAI.SafetyAlertErrorType? Type3190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponse? Type3191 { get; set; } + public global::tryAGI.OpenAI.SafetyAlertResource? Type3191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponseObject? Type3192 { get; set; } + public global::tryAGI.OpenAI.SafetyAlertResourceObject? Type3192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Provider2? Type3193 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageOrder? Type3193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminator? Type3194 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageStatus? Type3194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminatorType? Type3195 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponse? Type3195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageListResource? Type3196 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponseObject? Type3196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageListResourceObject? Type3197 { get; set; } + public global::tryAGI.OpenAI.Provider2? Type3197 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3198 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminator? Type3198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderParams? Type3199 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminatorType? Type3199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderParamsType? Type3200 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageListResource? Type3200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderParams? Type3201 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageListResourceObject? Type3201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderParamsType? Type3202 { get; set; } + public global::System.Collections.Generic.IList? Type3202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderParams? Type3203 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderParams? Type3203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderParamsType? Type3204 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderParamsType? Type3204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateExternalStorageBody? Type3205 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderParams? Type3205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Provider3? Type3206 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderParamsType? Type3206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminator? Type3207 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderParams? Type3207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminatorType? Type3208 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderParamsType? Type3208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageDeletedResource? Type3209 { get; set; } + public global::tryAGI.OpenAI.CreateExternalStorageBody? Type3209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageDeletedResourceObject? Type3210 { get; set; } + public global::tryAGI.OpenAI.Provider3? Type3210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitCurrency? Type3211 { get; set; } + public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminator? Type3211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Type3212 { get; set; } + public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminatorType? Type3212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitInterval? Type3213 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageDeletedResource? Type3213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitIntervalEnum? Type3214 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageDeletedResourceObject? Type3214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcementStatus? Type3215 { get; set; } + public global::tryAGI.OpenAI.SpendLimitCurrency? Type3215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Type3216 { get; set; } + public global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Type3216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcement? Type3217 { get; set; } + public global::tryAGI.OpenAI.SpendLimitInterval? Type3217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitResource? Type3218 { get; set; } + public global::tryAGI.OpenAI.SpendLimitIntervalEnum? Type3218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject? Type3219 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcementStatus? Type3219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? Type3220 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Type3220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency? Type3221 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcement? Type3221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval? Type3222 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitResource? Type3222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? Type3223 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject? Type3223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject? Type3224 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? Type3224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitResource? Type3225 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency? Type3225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitResourceObject? Type3226 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval? Type3226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? Type3227 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? Type3227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency? Type3228 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject? Type3228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval? Type3229 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitResource? Type3229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? Type3230 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitResourceObject? Type3230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject? Type3231 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? Type3231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateProjectServiceAccountApiKeyBody? Type3232 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency? Type3232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceAccountApiKeyBody? Type3233 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval? Type3233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject? Type3234 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? Type3234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContentProvenanceBody? Type3235 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject? Type3235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceCheckObject? Type3236 { get; set; } + public global::tryAGI.OpenAI.CreateProjectServiceAccountApiKeyBody? Type3236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceDetectionResultApi? Type3237 { get; set; } + public global::tryAGI.OpenAI.ServiceAccountApiKeyBody? Type3237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.C2PAValidationStateApi? Type3238 { get; set; } + public global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject? Type3238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.C2PAProvenanceResult? Type3239 { get; set; } + public global::tryAGI.OpenAI.CreateContentProvenanceBody? Type3239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.C2PAProvenanceResultType? Type3240 { get; set; } + public global::tryAGI.OpenAI.ProvenanceCheckObject? Type3240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SynthIDProvenanceResult? Type3241 { get; set; } + public global::tryAGI.OpenAI.ProvenanceDetectionResultApi? Type3241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SynthIDProvenanceResultType? Type3242 { get; set; } + public global::tryAGI.OpenAI.C2PAValidationStateApi? Type3242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceResource? Type3243 { get; set; } + public global::tryAGI.OpenAI.C2PAProvenanceResult? Type3243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3244 { get; set; } + public global::tryAGI.OpenAI.C2PAProvenanceResultType? Type3244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResultsItem2? Type3245 { get; set; } + public global::tryAGI.OpenAI.SynthIDProvenanceResult? Type3245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminator? Type3246 { get; set; } + public global::tryAGI.OpenAI.SynthIDProvenanceResultType? Type3246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminatorType? Type3247 { get; set; } + public global::tryAGI.OpenAI.ProvenanceResource? Type3247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrderEnum? Type3248 { get; set; } + public global::System.Collections.Generic.IList? Type3248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModel? Type3249 { get; set; } + public global::tryAGI.OpenAI.ResultsItem2? Type3249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModelEnum? Type3250 { get; set; } + public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminator? Type3250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoStatus? Type3251 { get; set; } + public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminatorType? Type3251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSize? Type3252 { get; set; } + public global::tryAGI.OpenAI.OrderEnum? Type3252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error22? Type3253 { get; set; } + public global::tryAGI.OpenAI.VideoModel? Type3253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResource? Type3254 { get; set; } + public global::tryAGI.OpenAI.VideoModelEnum? Type3254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResourceObject? Type3255 { get; set; } + public global::tryAGI.OpenAI.VideoStatus? Type3255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResource? Type3256 { get; set; } + public global::tryAGI.OpenAI.VideoSize? Type3256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResourceObject? Type3257 { get; set; } + public global::tryAGI.OpenAI.Error22? Type3257 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3258 { get; set; } + public global::tryAGI.OpenAI.VideoResource? Type3258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageRefParam2? Type3259 { get; set; } + public global::tryAGI.OpenAI.VideoResourceObject? Type3259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSeconds? Type3260 { get; set; } + public global::tryAGI.OpenAI.VideoListResource? Type3260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type3261 { get; set; } + public global::tryAGI.OpenAI.VideoListResourceObject? Type3261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3262 { get; set; } + public global::System.Collections.Generic.IList? Type3262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoJsonBody? Type3263 { get; set; } + public global::tryAGI.OpenAI.ImageRefParam2? Type3263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type3264 { get; set; } + public global::tryAGI.OpenAI.VideoSeconds? Type3264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoCharacterResource? Type3265 { get; set; } + public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type3265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoReferenceInputParam? Type3266 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type3267 { get; set; } + public global::tryAGI.OpenAI.CreateVideoJsonBody? Type3267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3268 { get; set; } + public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type3268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type3269 { get; set; } + public global::tryAGI.OpenAI.VideoCharacterResource? Type3269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type3270 { get; set; } + public global::tryAGI.OpenAI.VideoReferenceInputParam? Type3270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3271 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type3271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type3272 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResource? Type3273 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type3273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type3274 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type3274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoContentVariant? Type3275 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoRemixBody? Type3276 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type3276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationEnum? Type3277 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResource? Type3277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersonalityEnum? Type3278 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type3278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersonalityEnumEnum? Type3279 { get; set; } + public global::tryAGI.OpenAI.VideoContentVariant? Type3279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsBody? Type3280 { get; set; } + public global::tryAGI.OpenAI.CreateVideoRemixBody? Type3280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResource? Type3281 { get; set; } + public global::tryAGI.OpenAI.TruncationEnum? Type3281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResourceObject? Type3282 { get; set; } + public global::tryAGI.OpenAI.PersonalityEnum? Type3282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type3283 { get; set; } + public global::tryAGI.OpenAI.PersonalityEnumEnum? Type3283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierEnum2? Type3284 { get; set; } + public global::tryAGI.OpenAI.TokenCountsBody? Type3284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type3285 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResource? Type3285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemField? Type3286 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResourceObject? Type3286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type3287 { get; set; } + public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type3287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type3288 { get; set; } + public global::tryAGI.OpenAI.ServiceTierEnum2? Type3288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResource? Type3289 { get; set; } + public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type3289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResourceObject? Type3290 { get; set; } + public global::tryAGI.OpenAI.ItemField? Type3290 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3291 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type3291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResource? Type3292 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type3292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResourceObject? Type3293 { get; set; } + public global::tryAGI.OpenAI.CompactResource? Type3293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResource? Type3294 { get; set; } + public global::tryAGI.OpenAI.CompactResourceObject? Type3294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResourceObject? Type3295 { get; set; } + public global::System.Collections.Generic.IList? Type3295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3296 { get; set; } + public global::tryAGI.OpenAI.SkillResource? Type3296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillBody? Type3297 { get; set; } + public global::tryAGI.OpenAI.SkillResourceObject? Type3297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, byte[]>? Type3298 { get; set; } + public global::tryAGI.OpenAI.SkillListResource? Type3298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type3299 { get; set; } + public global::tryAGI.OpenAI.SkillListResourceObject? Type3299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResource? Type3300 { get; set; } + public global::System.Collections.Generic.IList? Type3300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type3301 { get; set; } + public global::tryAGI.OpenAI.CreateSkillBody? Type3301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResource? Type3302 { get; set; } + public global::tryAGI.OpenAI.OneOf, byte[]>? Type3302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResourceObject? Type3303 { get; set; } + public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type3303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResource? Type3304 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResource? Type3304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type3305 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type3305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3306 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResource? Type3306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillVersionBody? Type3307 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResourceObject? Type3307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type3308 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResource? Type3308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type3309 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type3309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type3310 { get; set; } + public global::System.Collections.Generic.IList? Type3310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflow? Type3311 { get; set; } + public global::tryAGI.OpenAI.CreateSkillVersionBody? Type3311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3312 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type3312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionRateLimits? Type3313 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type3313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionStatus? Type3314 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type3314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type3315 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflow? Type3315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionFileUpload? Type3316 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionHistory? Type3317 { get; set; } + public global::tryAGI.OpenAI.ChatSessionRateLimits? Type3317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type3318 { get; set; } + public global::tryAGI.OpenAI.ChatSessionStatus? Type3318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResource? Type3319 { get; set; } + public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type3319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResourceObject? Type3320 { get; set; } + public global::tryAGI.OpenAI.ChatSessionFileUpload? Type3320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowTracingParam? Type3321 { get; set; } + public global::tryAGI.OpenAI.ChatSessionHistory? Type3321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowParam? Type3322 { get; set; } + public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type3322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParam? Type3323 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResource? Type3323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type3324 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResourceObject? Type3324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RateLimitsParam? Type3325 { get; set; } + public global::tryAGI.OpenAI.WorkflowTracingParam? Type3325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type3326 { get; set; } + public global::tryAGI.OpenAI.WorkflowParam? Type3326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileUploadParam? Type3327 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParam? Type3327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HistoryParam? Type3328 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type3328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type3329 { get; set; } + public global::tryAGI.OpenAI.RateLimitsParam? Type3329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatSessionBody? Type3330 { get; set; } + public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type3330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputText? Type3331 { get; set; } + public global::tryAGI.OpenAI.FileUploadParam? Type3331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputTextType? Type3332 { get; set; } + public global::tryAGI.OpenAI.HistoryParam? Type3332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedText? Type3333 { get; set; } + public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type3333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type3334 { get; set; } + public global::tryAGI.OpenAI.CreateChatSessionBody? Type3334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AttachmentType? Type3335 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputText? Type3335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Attachment? Type3336 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputTextType? Type3336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoice10? Type3337 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedText? Type3337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InferenceOptions? Type3338 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type3338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItem? Type3339 { get; set; } + public global::tryAGI.OpenAI.AttachmentType? Type3339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemObject? Type3340 { get; set; } + public global::tryAGI.OpenAI.Attachment? Type3340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemType? Type3341 { get; set; } + public global::tryAGI.OpenAI.ToolChoice10? Type3341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3342 { get; set; } + public global::tryAGI.OpenAI.InferenceOptions? Type3342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem5? Type3343 { get; set; } + public global::tryAGI.OpenAI.UserMessageItem? Type3343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type3344 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemObject? Type3344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type3345 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemType? Type3345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3346 { get; set; } + public global::System.Collections.Generic.IList? Type3346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSource? Type3347 { get; set; } + public global::tryAGI.OpenAI.ContentItem5? Type3347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSourceType? Type3348 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type3348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotation? Type3349 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type3349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationType? Type3350 { get; set; } + public global::System.Collections.Generic.IList? Type3350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSource? Type3351 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSource? Type3351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type3352 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSourceType? Type3352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotation? Type3353 { get; set; } + public global::tryAGI.OpenAI.FileAnnotation? Type3353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationType? Type3354 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationType? Type3354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputText? Type3355 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSource? Type3355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextType? Type3356 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type3356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3357 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotation? Type3357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem3? Type3358 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationType? Type3358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type3359 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputText? Type3359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type3360 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextType? Type3360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItem? Type3361 { get; set; } + public global::System.Collections.Generic.IList? Type3361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemObject? Type3362 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem3? Type3362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemType? Type3363 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type3363 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3364 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type3364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItem? Type3365 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItem? Type3365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemObject? Type3366 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemObject? Type3366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemType? Type3367 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemType? Type3367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallStatus? Type3368 { get; set; } + public global::System.Collections.Generic.IList? Type3368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItem? Type3369 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItem? Type3369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemObject? Type3370 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemObject? Type3370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemType? Type3371 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemType? Type3371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskType? Type3372 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallStatus? Type3372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItem? Type3373 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItem? Type3373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemObject? Type3374 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemObject? Type3374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemType? Type3375 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemType? Type3375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupTask? Type3376 { get; set; } + public global::tryAGI.OpenAI.TaskType? Type3376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItem? Type3377 { get; set; } + public global::tryAGI.OpenAI.TaskItem? Type3377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemObject? Type3378 { get; set; } + public global::tryAGI.OpenAI.TaskItemObject? Type3378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemType? Type3379 { get; set; } + public global::tryAGI.OpenAI.TaskItemType? Type3379 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3380 { get; set; } + public global::tryAGI.OpenAI.TaskGroupTask? Type3380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItem? Type3381 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItem? Type3381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type3382 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemObject? Type3382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type3383 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemType? Type3383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResource? Type3384 { get; set; } + public global::System.Collections.Generic.IList? Type3384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type3385 { get; set; } + public global::tryAGI.OpenAI.ThreadItem? Type3385 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3386 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type3386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatus? Type3387 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type3387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatusType? Type3388 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResource? Type3388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatus? Type3389 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type3389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatusType? Type3390 { get; set; } + public global::System.Collections.Generic.IList? Type3390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatus? Type3391 { get; set; } + public global::tryAGI.OpenAI.ActiveStatus? Type3391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatusType? Type3392 { get; set; } + public global::tryAGI.OpenAI.ActiveStatusType? Type3392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResource? Type3393 { get; set; } + public global::tryAGI.OpenAI.LockedStatus? Type3393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceObject? Type3394 { get; set; } + public global::tryAGI.OpenAI.LockedStatusType? Type3394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Status? Type3395 { get; set; } + public global::tryAGI.OpenAI.ClosedStatus? Type3395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type3396 { get; set; } + public global::tryAGI.OpenAI.ClosedStatusType? Type3396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type3397 { get; set; } + public global::tryAGI.OpenAI.ThreadResource? Type3397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResource? Type3398 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceObject? Type3398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type3399 { get; set; } + public global::tryAGI.OpenAI.Status? Type3399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResource? Type3400 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type3400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResourceObject? Type3401 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type3401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3402 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResource? Type3402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTypeResource? Type3403 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type3403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentStatusResource? Type3404 { get; set; } + public global::tryAGI.OpenAI.ThreadListResource? Type3404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceInline? Type3405 { get; set; } + public global::tryAGI.OpenAI.ThreadListResourceObject? Type3405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceInlineType? Type3406 { get; set; } + public global::System.Collections.Generic.IList? Type3406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResource? Type3407 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTypeResource? Type3407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceDiscriminator? Type3408 { get; set; } + public global::tryAGI.OpenAI.EnvironmentStatusResource? Type3408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceDiscriminatorType? Type3409 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceInline? Type3409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceSkillReference? Type3410 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceInlineType? Type3410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceSkillReferenceType? Type3411 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResource? Type3411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceInline? Type3412 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceDiscriminator? Type3412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceInlineType? Type3413 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceDiscriminatorType? Type3413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResource? Type3414 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceSkillReference? Type3414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceDiscriminator? Type3415 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceSkillReferenceType? Type3415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceDiscriminatorType? Type3416 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceInline? Type3416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId? Type3417 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceInlineType? Type3417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileIdType? Type3418 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResource? Type3418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline? Type3419 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceDiscriminator? Type3419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInlineType? Type3420 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceDiscriminatorType? Type3420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResource? Type3421 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId? Type3421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminator? Type3422 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileIdType? Type3422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminatorType? Type3423 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline? Type3423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicEnvironmentResource? Type3424 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInlineType? Type3424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicEnvironmentResourceObject? Type3425 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResource? Type3425 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3426 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminator? Type3426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3427 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminatorType? Type3427 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3428 { get; set; } + public global::tryAGI.OpenAI.PublicEnvironmentResource? Type3428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorBodyResource? Type3429 { get; set; } + public global::tryAGI.OpenAI.PublicEnvironmentResourceObject? Type3429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorResponse2? Type3430 { get; set; } + public global::System.Collections.Generic.IList? Type3430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrderParam? Type3431 { get; set; } + public global::System.Collections.Generic.IList? Type3431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFilePageObjectResource? Type3432 { get; set; } + public global::System.Collections.Generic.IList? Type3432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFileResource? Type3433 { get; set; } + public global::tryAGI.OpenAI.ErrorBodyResource? Type3433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFileResourceObject? Type3434 { get; set; } + public global::tryAGI.OpenAI.ErrorResponse2? Type3434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFileListResource? Type3435 { get; set; } + public global::tryAGI.OpenAI.ListOrderParam? Type3435 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3436 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFilePageObjectResource? Type3436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId? Type3437 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFileResource? Type3437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileIdType? Type3438 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFileResourceObject? Type3438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamInline? Type3439 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFileListResource? Type3439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamInlineType? Type3440 { get; set; } + public global::System.Collections.Generic.IList? Type3440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParam? Type3441 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId? Type3441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminator? Type3442 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileIdType? Type3442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminatorType? Type3443 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamInline? Type3443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubagentObjectResource? Type3444 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamInlineType? Type3444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextResource? Type3445 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParam? Type3445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextResourceType? Type3446 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminator? Type3446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EncryptedContentResource? Type3447 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminatorType? Type3447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EncryptedContentResourceType? Type3448 { get; set; } + public global::tryAGI.OpenAI.SubagentObjectResource? Type3448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentContentResource? Type3449 { get; set; } + public global::tryAGI.OpenAI.OutputTextResource? Type3449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentContentResourceDiscriminator? Type3450 { get; set; } + public global::tryAGI.OpenAI.OutputTextResourceType? Type3450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentContentResourceDiscriminatorType? Type3451 { get; set; } + public global::tryAGI.OpenAI.EncryptedContentResource? Type3451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubagentStatusResource? Type3452 { get; set; } + public global::tryAGI.OpenAI.EncryptedContentResourceType? Type3452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubagentResource? Type3453 { get; set; } + public global::tryAGI.OpenAI.AgentContentResource? Type3453 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3454 { get; set; } + public global::tryAGI.OpenAI.AgentContentResourceDiscriminator? Type3454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionMessageRoleResource? Type3455 { get; set; } + public global::tryAGI.OpenAI.AgentContentResourceDiscriminatorType? Type3455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputText? Type3456 { get; set; } + public global::tryAGI.OpenAI.SubagentStatusResource? Type3456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputTextType? Type3457 { get; set; } + public global::tryAGI.OpenAI.SubagentResource? Type3457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputImage? Type3458 { get; set; } + public global::System.Collections.Generic.IList? Type3458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputImageType? Type3459 { get; set; } + public global::tryAGI.OpenAI.SessionMessageRoleResource? Type3459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceOutputText? Type3460 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputText? Type3460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceOutputTextType? Type3461 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputTextType? Type3461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResource? Type3462 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputImage? Type3462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceDiscriminator? Type3463 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputImageType? Type3463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceDiscriminatorType? Type3464 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceOutputText? Type3464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemStatusResource? Type3465 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceOutputTextType? Type3465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhaseResource? Type3466 { get; set; } + public global::tryAGI.OpenAI.MessageContentResource? Type3466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageItemResource? Type3467 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceDiscriminator? Type3467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageItemResourceType? Type3468 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceDiscriminatorType? Type3468 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3469 { get; set; } + public global::tryAGI.OpenAI.OutputItemStatusResource? Type3469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextResource? Type3470 { get; set; } + public global::tryAGI.OpenAI.MessagePhaseResource? Type3470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextResourceType? Type3471 { get; set; } + public global::tryAGI.OpenAI.MessageItemResource? Type3471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemResource? Type3472 { get; set; } + public global::tryAGI.OpenAI.MessageItemResourceType? Type3472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemResourceType? Type3473 { get; set; } + public global::System.Collections.Generic.IList? Type3473 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3474 { get; set; } + public global::tryAGI.OpenAI.SummaryTextResource? Type3474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallStatusResource? Type3475 { get; set; } + public global::tryAGI.OpenAI.SummaryTextResourceType? Type3475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemResource? Type3476 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemResource? Type3476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemResourceType? Type3477 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemResourceType? Type3477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputText? Type3478 { get; set; } + public global::System.Collections.Generic.IList? Type3478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputTextType? Type3479 { get; set; } + public global::tryAGI.OpenAI.FunctionCallStatusResource? Type3479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputImage? Type3480 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemResource? Type3480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputImageType? Type3481 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemResourceType? Type3481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResource? Type3482 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputText? Type3482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceDiscriminator? Type3483 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputTextType? Type3483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceDiscriminatorType? Type3484 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputImage? Type3484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputResource? Type3485 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputImageType? Type3485 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3486 { get; set; } + public global::tryAGI.OpenAI.InputContentResource? Type3486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemResource? Type3487 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceDiscriminator? Type3487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemResourceType? Type3488 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceDiscriminatorType? Type3488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentMessageItemResource? Type3489 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputResource? Type3489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentMessageItemResourceType? Type3490 { get; set; } + public global::System.Collections.Generic.IList? Type3490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpCallItemResource? Type3491 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemResource? Type3491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpCallItemResourceType? Type3492 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemResourceType? Type3492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceSearch? Type3493 { get; set; } + public global::tryAGI.OpenAI.AgentMessageItemResource? Type3493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceSearchType? Type3494 { get; set; } + public global::tryAGI.OpenAI.AgentMessageItemResourceType? Type3494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOpenPage? Type3495 { get; set; } + public global::tryAGI.OpenAI.McpCallItemResource? Type3495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOpenPageType? Type3496 { get; set; } + public global::tryAGI.OpenAI.McpCallItemResourceType? Type3496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceFindInPage? Type3497 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceSearch? Type3497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceFindInPageType? Type3498 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceSearchType? Type3498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOther? Type3499 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOpenPage? Type3499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOtherType? Type3500 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOpenPageType? Type3500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResource? Type3501 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceFindInPage? Type3501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminator? Type3502 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceFindInPageType? Type3502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminatorType? Type3503 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOther? Type3503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchCallItemResource? Type3504 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOtherType? Type3504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchCallItemResourceType? Type3505 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResource? Type3505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CommandExecutionItemResource? Type3506 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminator? Type3506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CommandExecutionItemResourceType? Type3507 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminatorType? Type3507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InterruptSubagentCallItemResource? Type3508 { get; set; } + public global::tryAGI.OpenAI.WebSearchCallItemResource? Type3508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InterruptSubagentCallItemResourceType? Type3509 { get; set; } + public global::tryAGI.OpenAI.WebSearchCallItemResourceType? Type3509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSubagentCallItemResource? Type3510 { get; set; } + public global::tryAGI.OpenAI.CommandExecutionItemResource? Type3510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSubagentCallItemResourceType? Type3511 { get; set; } + public global::tryAGI.OpenAI.CommandExecutionItemResourceType? Type3511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SendSubagentInputCallItemResource? Type3512 { get; set; } + public global::tryAGI.OpenAI.InterruptSubagentCallItemResource? Type3512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SendSubagentInputCallItemResourceType? Type3513 { get; set; } + public global::tryAGI.OpenAI.InterruptSubagentCallItemResourceType? Type3513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResumeSubagentCallItemResource? Type3514 { get; set; } + public global::tryAGI.OpenAI.CreateSubagentCallItemResource? Type3514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResumeSubagentCallItemResourceType? Type3515 { get; set; } + public global::tryAGI.OpenAI.CreateSubagentCallItemResourceType? Type3515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource? Type3516 { get; set; } + public global::tryAGI.OpenAI.SendSubagentInputCallItemResource? Type3516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitForSubagentsCallItemResourceType? Type3517 { get; set; } + public global::tryAGI.OpenAI.SendSubagentInputCallItemResourceType? Type3517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CloseSubagentCallItemResource? Type3518 { get; set; } + public global::tryAGI.OpenAI.ResumeSubagentCallItemResource? Type3518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CloseSubagentCallItemResourceType? Type3519 { get; set; } + public global::tryAGI.OpenAI.ResumeSubagentCallItemResourceType? Type3519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnItemResource? Type3520 { get; set; } + public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource? Type3520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminator? Type3521 { get; set; } + public global::tryAGI.OpenAI.WaitForSubagentsCallItemResourceType? Type3521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminatorType? Type3522 { get; set; } + public global::tryAGI.OpenAI.CloseSubagentCallItemResource? Type3522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionItemListResource? Type3523 { get; set; } + public global::tryAGI.OpenAI.CloseSubagentCallItemResourceType? Type3523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionItemListResourceObject? Type3524 { get; set; } + public global::tryAGI.OpenAI.SessionTurnItemResource? Type3524 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3525 { get; set; } + public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminator? Type3525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TurnObjectResource? Type3526 { get; set; } + public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminatorType? Type3526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TurnStatusResource? Type3527 { get; set; } + public global::tryAGI.OpenAI.SessionItemListResource? Type3527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnErrorCodeResource? Type3528 { get; set; } + public global::tryAGI.OpenAI.SessionItemListResourceObject? Type3528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnErrorResource? Type3529 { get; set; } + public global::System.Collections.Generic.IList? Type3529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTokensDetailsResource? Type3530 { get; set; } + public global::tryAGI.OpenAI.TurnObjectResource? Type3530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTokensDetailsResource? Type3531 { get; set; } + public global::tryAGI.OpenAI.TurnStatusResource? Type3531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenUsageResource? Type3532 { get; set; } + public global::tryAGI.OpenAI.SessionTurnErrorCodeResource? Type3532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TurnResource? Type3533 { get; set; } + public global::tryAGI.OpenAI.SessionTurnErrorResource? Type3533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnListResource? Type3534 { get; set; } + public global::tryAGI.OpenAI.InputTokensDetailsResource? Type3534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnListResourceObject? Type3535 { get; set; } + public global::tryAGI.OpenAI.OutputTokensDetailsResource? Type3535 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3536 { get; set; } + public global::tryAGI.OpenAI.TokenUsageResource? Type3536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffortResource? Type3537 { get; set; } + public global::tryAGI.OpenAI.TurnResource? Type3537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummaryResource? Type3538 { get; set; } + public global::tryAGI.OpenAI.SessionTurnListResource? Type3538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningResource? Type3539 { get; set; } + public global::tryAGI.OpenAI.SessionTurnListResourceObject? Type3539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceText? Type3540 { get; set; } + public global::System.Collections.Generic.IList? Type3540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceTextType? Type3541 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffortResource? Type3541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceJsonSchema? Type3542 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummaryResource? Type3542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceJsonSchemaType? Type3543 { get; set; } + public global::tryAGI.OpenAI.ReasoningResource? Type3543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResource? Type3544 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceText? Type3544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceDiscriminator? Type3545 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceTextType? Type3545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceDiscriminatorType? Type3546 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceJsonSchema? Type3546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VerbosityResource? Type3547 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceJsonSchemaType? Type3547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResource? Type3548 { get; set; } + public global::tryAGI.OpenAI.TextFormatResource? Type3548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierResource? Type3549 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceDiscriminator? Type3549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceFunction? Type3550 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceDiscriminatorType? Type3550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceFunctionType? Type3551 { get; set; } + public global::tryAGI.OpenAI.VerbosityResource? Type3551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch? Type3552 { get; set; } + public global::tryAGI.OpenAI.TextResource? Type3552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearchType? Type3553 { get; set; } + public global::tryAGI.OpenAI.ServiceTierResource? Type3553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling? Type3554 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceFunction? Type3554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCallingType? Type3555 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceFunctionType? Type3555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp? Type3556 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch? Type3556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttpType? Type3557 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearchType? Type3557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio? Type3558 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling? Type3558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdioType? Type3559 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCallingType? Type3559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResource? Type3560 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp? Type3560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminator? Type3561 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttpType? Type3561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminatorType? Type3562 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio? Type3562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpConnectionOriginResource? Type3563 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdioType? Type3563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceMcp? Type3564 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResource? Type3564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceMcpType? Type3565 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminator? Type3565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchModeResource? Type3566 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminatorType? Type3566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSizeResource? Type3567 { get; set; } + public global::tryAGI.OpenAI.McpConnectionOriginResource? Type3567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocationResource? Type3568 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceMcp? Type3568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch? Type3569 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceMcpType? Type3569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearchType? Type3570 { get; set; } + public global::tryAGI.OpenAI.WebSearchModeResource? Type3570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResource? Type3571 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSizeResource? Type3571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminator? Type3572 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocationResource? Type3572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminatorType? Type3573 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch? Type3573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MultiAgentConfigResource? Type3574 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearchType? Type3574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentResource? Type3575 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResource? Type3575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentResourceObject? Type3576 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminator? Type3576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3577 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminatorType? Type3577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentListResource? Type3578 { get; set; } + public global::tryAGI.OpenAI.MultiAgentConfigResource? Type3578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentListResourceObject? Type3579 { get; set; } + public global::tryAGI.OpenAI.AgentResource? Type3579 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3580 { get; set; } + public global::tryAGI.OpenAI.AgentResourceObject? Type3580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffortParam? Type3581 { get; set; } + public global::System.Collections.Generic.IList? Type3581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummaryParam? Type3582 { get; set; } + public global::tryAGI.OpenAI.AgentListResource? Type3582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningParam? Type3583 { get; set; } + public global::tryAGI.OpenAI.AgentListResourceObject? Type3583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamText? Type3584 { get; set; } + public global::System.Collections.Generic.IList? Type3584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamTextType? Type3585 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffortParam? Type3585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamJsonSchema? Type3586 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummaryParam? Type3586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamJsonSchemaType? Type3587 { get; set; } + public global::tryAGI.OpenAI.ReasoningParam? Type3587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParam? Type3588 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamText? Type3588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamDiscriminator? Type3589 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamTextType? Type3589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamDiscriminatorType? Type3590 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamJsonSchema? Type3590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VerbosityParam? Type3591 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamJsonSchemaType? Type3591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextParam? Type3592 { get; set; } + public global::tryAGI.OpenAI.TextFormatParam? Type3592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierParam? Type3593 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamDiscriminator? Type3593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction? Type3594 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamDiscriminatorType? Type3594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunctionType? Type3595 { get; set; } + public global::tryAGI.OpenAI.VerbosityParam? Type3595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch? Type3596 { get; set; } + public global::tryAGI.OpenAI.TextParam? Type3596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearchType? Type3597 { get; set; } + public global::tryAGI.OpenAI.ServiceTierParam? Type3597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling? Type3598 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction? Type3598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCallingType? Type3599 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunctionType? Type3599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp? Type3600 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch? Type3600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttpType? Type3601 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearchType? Type3601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio? Type3602 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling? Type3602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdioType? Type3603 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCallingType? Type3603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParam? Type3604 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp? Type3604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminator? Type3605 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttpType? Type3605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminatorType? Type3606 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio? Type3606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpConnectionOriginParam? Type3607 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdioType? Type3607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp? Type3608 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParam? Type3608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcpType? Type3609 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminator? Type3609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchModeParam? Type3610 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminatorType? Type3610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSizeParam? Type3611 { get; set; } + public global::tryAGI.OpenAI.McpConnectionOriginParam? Type3611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocationParam? Type3612 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp? Type3612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch? Type3613 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcpType? Type3613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearchType? Type3614 { get; set; } + public global::tryAGI.OpenAI.WebSearchModeParam? Type3614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParam? Type3615 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSizeParam? Type3615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminator? Type3616 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocationParam? Type3616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminatorType? Type3617 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch? Type3617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MultiAgentConfigCurrentParam? Type3618 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearchType? Type3618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAgentParams? Type3619 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParam? Type3619 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3620 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminator? Type3620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateAgentParams? Type3621 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminatorType? Type3621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedAgentResource? Type3622 { get; set; } + public global::tryAGI.OpenAI.MultiAgentConfigCurrentParam? Type3622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedAgentResourceObject? Type3623 { get; set; } + public global::tryAGI.OpenAI.CreateAgentParams? Type3623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentPackagesResource? Type3624 { get; set; } + public global::System.Collections.Generic.IList? Type3624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkAccessResource? Type3625 { get; set; } + public global::tryAGI.OpenAI.UpdateAgentParams? Type3625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicyResource? Type3626 { get; set; } + public global::tryAGI.OpenAI.DeletedAgentResource? Type3626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference? Type3627 { get; set; } + public global::tryAGI.OpenAI.DeletedAgentResourceObject? Type3627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReferenceType? Type3628 { get; set; } + public global::tryAGI.OpenAI.EnvironmentPackagesResource? Type3628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceInline? Type3629 { get; set; } + public global::tryAGI.OpenAI.NetworkAccessResource? Type3629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceInlineType? Type3630 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicyResource? Type3630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResource? Type3631 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference? Type3631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminator? Type3632 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReferenceType? Type3632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminatorType? Type3633 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceInline? Type3633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceFileId? Type3634 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceInlineType? Type3634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceFileIdType? Type3635 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResource? Type3635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceInline? Type3636 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminator? Type3636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceInlineType? Type3637 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminatorType? Type3637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResource? Type3638 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceFileId? Type3638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminator? Type3639 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceFileIdType? Type3639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminatorType? Type3640 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceInline? Type3640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateResource? Type3641 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceInlineType? Type3641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateResourceObject? Type3642 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResource? Type3642 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3643 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminator? Type3643 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3644 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminatorType? Type3644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateListResource? Type3645 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateResource? Type3645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateListResourceObject? Type3646 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateResourceObject? Type3646 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3647 { get; set; } + public global::System.Collections.Generic.IList? Type3647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentPackagesParam? Type3648 { get; set; } + public global::System.Collections.Generic.IList? Type3648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SetupCommandParam? Type3649 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateListResource? Type3649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkAccessParam? Type3650 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateListResourceObject? Type3650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicyParam? Type3651 { get; set; } + public global::System.Collections.Generic.IList? Type3651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamSkillReference? Type3652 { get; set; } + public global::tryAGI.OpenAI.EnvironmentPackagesParam? Type3652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamSkillReferenceType? Type3653 { get; set; } + public global::tryAGI.OpenAI.SetupCommandParam? Type3653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64? Type3654 { get; set; } + public global::tryAGI.OpenAI.NetworkAccessParam? Type3654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64Type? Type3655 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicyParam? Type3655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64MediaType? Type3656 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamSkillReference? Type3656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParam? Type3657 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamSkillReferenceType? Type3657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminator? Type3658 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64? Type3658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminatorType? Type3659 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64Type? Type3659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamInline? Type3660 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64MediaType? Type3660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamInlineType? Type3661 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParam? Type3661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParam? Type3662 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminator? Type3662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamDiscriminator? Type3663 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminatorType? Type3663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamDiscriminatorType? Type3664 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamInline? Type3664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamInline? Type3665 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamInlineType? Type3665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamInlineType? Type3666 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParam? Type3666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParam? Type3667 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamDiscriminator? Type3667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamDiscriminator? Type3668 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamDiscriminatorType? Type3668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamDiscriminatorType? Type3669 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamInline? Type3669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEnvironmentTemplateParams? Type3670 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamInlineType? Type3670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3671 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParam? Type3671 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3672 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamDiscriminator? Type3672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3673 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamDiscriminatorType? Type3673 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3674 { get; set; } + public global::tryAGI.OpenAI.CreateEnvironmentTemplateParams? Type3674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEnvironmentTemplateParams? Type3675 { get; set; } + public global::System.Collections.Generic.IList? Type3675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResource? Type3676 { get; set; } + public global::System.Collections.Generic.IList? Type3676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResourceObject? Type3677 { get; set; } + public global::System.Collections.Generic.IList? Type3677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionStatusResource? Type3678 { get; set; } + public global::System.Collections.Generic.IList? Type3678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall? Type3679 { get; set; } + public global::tryAGI.OpenAI.UpdateEnvironmentTemplateParams? Type3679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCallType? Type3680 { get; set; } + public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResource? Type3680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection? Type3681 { get; set; } + public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResourceObject? Type3681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnectionType? Type3682 { get; set; } + public global::tryAGI.OpenAI.SessionStatusResource? Type3682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResource? Type3683 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall? Type3683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminator? Type3684 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCallType? Type3684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminatorType? Type3685 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection? Type3685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceFunction? Type3686 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnectionType? Type3686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceFunctionType? Type3687 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResource? Type3687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling? Type3688 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminator? Type3688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCallingType? Type3689 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminatorType? Type3689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceHttp? Type3690 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceFunction? Type3690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceHttpType? Type3691 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceFunctionType? Type3691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceStdio? Type3692 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling? Type3692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceStdioType? Type3693 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCallingType? Type3693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResource? Type3694 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceHttp? Type3694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceDiscriminator? Type3695 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceHttpType? Type3695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceDiscriminatorType? Type3696 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceStdio? Type3696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceMcp? Type3697 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceStdioType? Type3697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceMcpType? Type3698 { get; set; } + public global::tryAGI.OpenAI.McpTransportResource? Type3698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceWebSearch? Type3699 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceDiscriminator? Type3699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceWebSearchType? Type3700 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceDiscriminatorType? Type3700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResource? Type3701 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceMcp? Type3701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceDiscriminator? Type3702 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceMcpType? Type3702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceDiscriminatorType? Type3703 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceWebSearch? Type3703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionAgentResource? Type3704 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceWebSearchType? Type3704 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3705 { get; set; } + public global::tryAGI.OpenAI.AgentToolResource? Type3705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceNone? Type3706 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceDiscriminator? Type3706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceNoneType? Type3707 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceDiscriminatorType? Type3707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted? Type3708 { get; set; } + public global::tryAGI.OpenAI.SessionAgentResource? Type3708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHostedType? Type3709 { get; set; } + public global::System.Collections.Generic.IList? Type3709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceSelfHosted? Type3710 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceNone? Type3710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceSelfHostedType? Type3711 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceNoneType? Type3711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResource? Type3712 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted? Type3712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceDiscriminator? Type3713 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHostedType? Type3713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceDiscriminatorType? Type3714 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceSelfHosted? Type3714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionResource? Type3715 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceSelfHostedType? Type3715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionResourceObject? Type3716 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResource? Type3716 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3717 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceDiscriminator? Type3717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionListResource? Type3718 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceDiscriminatorType? Type3718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionListResourceObject? Type3719 { get; set; } + public global::tryAGI.OpenAI.SessionResource? Type3719 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3720 { get; set; } + public global::tryAGI.OpenAI.SessionResourceObject? Type3720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamFunction? Type3721 { get; set; } + public global::System.Collections.Generic.IList? Type3721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamFunctionType? Type3722 { get; set; } + public global::tryAGI.OpenAI.SessionListResource? Type3722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamToolSearch? Type3723 { get; set; } + public global::tryAGI.OpenAI.SessionListResourceObject? Type3723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamToolSearchType? Type3724 { get; set; } + public global::System.Collections.Generic.IList? Type3724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling? Type3725 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamFunction? Type3725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCallingType? Type3726 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamFunctionType? Type3726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamHttp? Type3727 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamToolSearch? Type3727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamHttpType? Type3728 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamToolSearchType? Type3728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamStdio? Type3729 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling? Type3729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamStdioType? Type3730 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCallingType? Type3730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParam? Type3731 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamHttp? Type3731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminator? Type3732 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamHttpType? Type3732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminatorType? Type3733 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamStdio? Type3733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamMcp? Type3734 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamStdioType? Type3734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamMcpType? Type3735 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParam? Type3735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamWebSearch? Type3736 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminator? Type3736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamWebSearchType? Type3737 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminatorType? Type3737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParam? Type3738 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamMcp? Type3738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminator? Type3739 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamMcpType? Type3739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminatorType? Type3740 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamWebSearch? Type3740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionAgentConfigParam? Type3741 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamWebSearchType? Type3741 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3742 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParam? Type3742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamNone? Type3743 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminator? Type3743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamNoneType? Type3744 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminatorType? Type3744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted? Type3745 { get; set; } + public global::tryAGI.OpenAI.SessionAgentConfigParam? Type3745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamOpenaiHostedType? Type3746 { get; set; } + public global::System.Collections.Generic.IList? Type3746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamSelfHosted? Type3747 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamNone? Type3747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamSelfHostedType? Type3748 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamNoneType? Type3748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParam? Type3749 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted? Type3749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamDiscriminator? Type3750 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamOpenaiHostedType? Type3750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamDiscriminatorType? Type3751 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamSelfHosted? Type3751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputText? Type3752 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamSelfHostedType? Type3752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputTextType? Type3753 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParam? Type3753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputImage? Type3754 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamDiscriminator? Type3754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputImageType? Type3755 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamDiscriminatorType? Type3755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParam? Type3756 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputText? Type3756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamDiscriminator? Type3757 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputTextType? Type3757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamDiscriminatorType? Type3758 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputImage? Type3758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageParam? Type3759 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputImageType? Type3759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageParamType? Type3760 { get; set; } + public global::tryAGI.OpenAI.InputContentParam? Type3760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageParamRole? Type3761 { get; set; } + public global::tryAGI.OpenAI.InputContentParamDiscriminator? Type3761 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3762 { get; set; } + public global::tryAGI.OpenAI.InputContentParamDiscriminatorType? Type3762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSessionInputParam? Type3763 { get; set; } + public global::tryAGI.OpenAI.InputMessageParam? Type3763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3764 { get; set; } + public global::tryAGI.OpenAI.InputMessageParamType? Type3764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAgentSessionParams? Type3765 { get; set; } + public global::tryAGI.OpenAI.InputMessageParamRole? Type3765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionErrorResource? Type3766 { get; set; } + public global::System.Collections.Generic.IList? Type3766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventError? Type3767 { get; set; } + public global::tryAGI.OpenAI.CreateSessionInputParam? Type3767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventErrorType? Type3768 { get; set; } + public global::System.Collections.Generic.IList? Type3768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEnvironmentStatusResource? Type3769 { get; set; } + public global::tryAGI.OpenAI.CreateAgentSessionParams? Type3769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEnvironmentErrorResource? Type3770 { get; set; } + public global::tryAGI.OpenAI.SessionErrorResource? Type3770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEnvironmentStateResource? Type3771 { get; set; } + public global::tryAGI.OpenAI.SessionEventError? Type3771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady? Type3772 { get; set; } + public global::tryAGI.OpenAI.SessionEventErrorType? Type3772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReadyType? Type3773 { get; set; } + public global::tryAGI.OpenAI.SessionEnvironmentStatusResource? Type3773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset? Type3774 { get; set; } + public global::tryAGI.OpenAI.SessionEnvironmentErrorResource? Type3774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentResetType? Type3775 { get; set; } + public global::tryAGI.OpenAI.SessionEnvironmentStateResource? Type3775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta? Type3776 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady? Type3776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDeltaType? Type3777 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReadyType? Type3777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionCreated? Type3778 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset? Type3778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionCreatedType? Type3779 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentResetType? Type3779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated? Type3780 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta? Type3780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreatedType? Type3781 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDeltaType? Type3781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress? Type3782 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionCreated? Type3782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgressType? Type3783 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionCreatedType? Type3783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted? Type3784 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated? Type3784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompletedType? Type3785 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreatedType? Type3785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed? Type3786 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress? Type3786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailedType? Type3787 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgressType? Type3787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled? Type3788 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted? Type3788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelledType? Type3789 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompletedType? Type3789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded? Type3790 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed? Type3790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAddedType? Type3791 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailedType? Type3791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionIdle? Type3792 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled? Type3792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionIdleType? Type3793 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelledType? Type3793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionInProgress? Type3794 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded? Type3794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionInProgressType? Type3795 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAddedType? Type3795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction? Type3796 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionIdle? Type3796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresActionType? Type3797 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionIdleType? Type3797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionFailed? Type3798 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionInProgress? Type3798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionFailedType? Type3799 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionInProgressType? Type3799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending? Type3800 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction? Type3800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPendingType? Type3801 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresActionType? Type3801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected? Type3802 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionFailed? Type3802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnectedType? Type3803 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionFailedType? Type3803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected? Type3804 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending? Type3804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnectedType? Type3805 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPendingType? Type3805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed? Type3806 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected? Type3806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailedType? Type3807 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnectedType? Type3807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated? Type3808 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected? Type3808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreatedType? Type3809 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnectedType? Type3809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive? Type3810 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed? Type3810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActiveType? Type3811 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailedType? Type3811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed? Type3812 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated? Type3812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosedType? Type3813 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreatedType? Type3813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResource? Type3814 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive? Type3814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResourceType? Type3815 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActiveType? Type3815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResourceRole? Type3816 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed? Type3816 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3817 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosedType? Type3817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentOutputItemResource? Type3818 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemResource? Type3818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminator? Type3819 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemResourceType? Type3819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminatorType? Type3820 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemResourceRole? Type3820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone? Type3821 { get; set; } + public global::System.Collections.Generic.IList? Type3821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDoneType? Type3822 { get; set; } + public global::tryAGI.OpenAI.AgentOutputItemResource? Type3822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded? Type3823 { get; set; } + public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminator? Type3823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAddedType? Type3824 { get; set; } + public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminatorType? Type3824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone? Type3825 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone? Type3825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDoneType? Type3826 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDoneType? Type3826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta? Type3827 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded? Type3827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDeltaType? Type3828 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAddedType? Type3828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone? Type3829 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone? Type3829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDoneType? Type3830 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDoneType? Type3830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded? Type3831 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta? Type3831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAddedType? Type3832 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDeltaType? Type3832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone? Type3833 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone? Type3833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneType? Type3834 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDoneType? Type3834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneStatus? Type3835 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded? Type3835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta? Type3836 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAddedType? Type3836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDeltaType? Type3837 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone? Type3837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone? Type3838 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneType? Type3838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDoneType? Type3839 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneStatus? Type3839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEvent? Type3840 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta? Type3840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventDiscriminator? Type3841 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDeltaType? Type3841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventDiscriminatorType? Type3842 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone? Type3842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateSessionReasoningParam? Type3843 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDoneType? Type3843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateSessionAgentParam? Type3844 { get; set; } + public global::tryAGI.OpenAI.SessionEvent? Type3844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateAgentSessionParams? Type3845 { get; set; } + public global::tryAGI.OpenAI.SessionEventDiscriminator? Type3845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionResource? Type3846 { get; set; } + public global::tryAGI.OpenAI.SessionEventDiscriminatorType? Type3846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionResourceObject? Type3847 { get; set; } + public global::tryAGI.OpenAI.UpdateSessionReasoningParam? Type3847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactResource? Type3848 { get; set; } + public global::tryAGI.OpenAI.UpdateSessionAgentParam? Type3848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactResourceObject? Type3849 { get; set; } + public global::tryAGI.OpenAI.UpdateAgentSessionParams? Type3849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactListResource? Type3850 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionResource? Type3850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactListResourceObject? Type3851 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionResourceObject? Type3851 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3852 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactResource? Type3852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionArtifactResource? Type3853 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactResourceObject? Type3853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionArtifactResourceObject? Type3854 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactListResource? Type3854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage? Type3855 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactListResourceObject? Type3855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessageType? Type3856 { get; set; } + public global::System.Collections.Generic.IList? Type3856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel? Type3857 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionArtifactResource? Type3857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancelType? Type3858 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionArtifactResourceObject? Type3858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputParam? Type3859 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage? Type3859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult? Type3860 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessageType? Type3860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResultType? Type3861 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel? Type3861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParam? Type3862 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancelType? Type3862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamDiscriminator? Type3863 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputParam? Type3863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamDiscriminatorType? Type3864 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult? Type3864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSessionEventsParams? Type3865 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResultType? Type3865 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3866 { get; set; } + public global::tryAGI.OpenAI.SessionInputParam? Type3866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultStatusParam? Type3867 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamDiscriminator? Type3867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultStatusFilterParam? Type3868 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamDiscriminatorType? Type3868 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3869 { get; set; } + public global::tryAGI.OpenAI.CreateSessionEventsParams? Type3869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultResource? Type3870 { get; set; } + public global::System.Collections.Generic.IList? Type3870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultResourceObject? Type3871 { get; set; } + public global::tryAGI.OpenAI.VaultStatusParam? Type3871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultListResource? Type3872 { get; set; } + public global::tryAGI.OpenAI.VaultStatusFilterParam? Type3872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultListResourceObject? Type3873 { get; set; } + public global::System.Collections.Generic.IList? Type3873 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3874 { get; set; } + public global::tryAGI.OpenAI.VaultResource? Type3874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultParams? Type3875 { get; set; } + public global::tryAGI.OpenAI.VaultResourceObject? Type3875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultResource? Type3876 { get; set; } + public global::tryAGI.OpenAI.VaultListResource? Type3876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultResourceObject? Type3877 { get; set; } + public global::tryAGI.OpenAI.VaultListResourceObject? Type3877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone? Type3878 { get; set; } + public global::System.Collections.Generic.IList? Type3878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNoneType? Type3879 { get; set; } + public global::tryAGI.OpenAI.CreateVaultParams? Type3879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic? Type3880 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultResource? Type3880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasicType? Type3881 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultResourceObject? Type3881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost? Type3882 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone? Type3882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPostType? Type3883 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNoneType? Type3883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResource? Type3884 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic? Type3884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminator? Type3885 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasicType? Type3885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminatorType? Type3886 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost? Type3886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthRefreshResource? Type3887 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPostType? Type3887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth? Type3888 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResource? Type3888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauthType? Type3889 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminator? Type3889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer? Type3890 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminatorType? Type3890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearerType? Type3891 { get; set; } + public global::tryAGI.OpenAI.McpOauthRefreshResource? Type3891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted? Type3892 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth? Type3892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestrictedType? Type3893 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauthType? Type3893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited? Type3894 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer? Type3894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimitedType? Type3895 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearerType? Type3895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResource? Type3896 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted? Type3896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminator? Type3897 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestrictedType? Type3897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminatorType? Type3898 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited? Type3898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable? Type3899 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimitedType? Type3899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariableType? Type3900 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResource? Type3900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResource? Type3901 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminator? Type3901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminator? Type3902 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminatorType? Type3902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminatorType? Type3903 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable? Type3903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialResource? Type3904 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariableType? Type3904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialResourceObject? Type3905 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResource? Type3905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialListResource? Type3906 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminator? Type3906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialListResourceObject? Type3907 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminatorType? Type3907 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3908 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialResource? Type3908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone? Type3909 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialResourceObject? Type3909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNoneType? Type3910 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialListResource? Type3910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type3911 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialListResourceObject? Type3911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type3912 { get; set; } + public global::System.Collections.Generic.IList? Type3912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost? Type3913 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone? Type3913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type3914 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNoneType? Type3914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParam? Type3915 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type3915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminator? Type3916 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type3916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type3917 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost? Type3917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthRefreshParam? Type3918 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type3918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth? Type3919 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParam? Type3919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauthType? Type3920 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminator? Type3920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer? Type3921 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type3921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearerType? Type3922 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthRefreshParam? Type3922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted? Type3923 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth? Type3923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestrictedType? Type3924 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauthType? Type3924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited? Type3925 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer? Type3925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimitedType? Type3926 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearerType? Type3926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParam? Type3927 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted? Type3927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminator? Type3928 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestrictedType? Type3928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminatorType? Type3929 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited? Type3929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable? Type3930 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimitedType? Type3930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariableType? Type3931 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParam? Type3931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParam? Type3932 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminator? Type3932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminator? Type3933 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminatorType? Type3933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminatorType? Type3934 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable? Type3934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialParams? Type3935 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariableType? Type3935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type3936 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParam? Type3936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type3937 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminator? Type3937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost? Type3938 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminatorType? Type3938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type3939 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialParams? Type3939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParam? Type3940 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type3940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminator? Type3941 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type3941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type3942 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost? Type3942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthRefreshParam? Type3943 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type3943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth? Type3944 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParam? Type3944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauthType? Type3945 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminator? Type3945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer? Type3946 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type3946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearerType? Type3947 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthRefreshParam? Type3947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable? Type3948 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth? Type3948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariableType? Type3949 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauthType? Type3949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParam? Type3950 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer? Type3950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminator? Type3951 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearerType? Type3951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminatorType? Type3952 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable? Type3952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialParams? Type3953 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariableType? Type3953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultCredentialResource? Type3954 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParam? Type3954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultCredentialResourceObject? Type3955 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminator? Type3955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointBody? Type3956 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminatorType? Type3956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointBodyObject? Type3957 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialParams? Type3957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointListResource? Type3958 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultCredentialResource? Type3958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointListResourceObject? Type3959 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultCredentialResourceObject? Type3959 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3960 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointBody? Type3960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectEventTypeEnum? Type3961 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointBodyObject? Type3961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicCreateEndpointBody? Type3962 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointListResource? Type3962 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3963 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointListResourceObject? Type3963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointWithSecretResource? Type3964 { get; set; } + public global::System.Collections.Generic.IList? Type3964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointWithSecretResourceObject? Type3965 { get; set; } + public global::tryAGI.OpenAI.ProjectEventTypeEnum? Type3965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicUpdateEndpointBody? Type3966 { get; set; } + public global::tryAGI.OpenAI.PublicCreateEndpointBody? Type3966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedWebhookEndpointResource? Type3967 { get; set; } + public global::System.Collections.Generic.IList? Type3967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedWebhookEndpointResourceObject? Type3968 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointWithSecretResource? Type3968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicRotateSecretBody? Type3969 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointWithSecretResourceObject? Type3969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicTestEndpointBody? Type3970 { get; set; } + public global::tryAGI.OpenAI.PublicUpdateEndpointBody? Type3970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointTestResultResource? Type3971 { get; set; } + public global::tryAGI.OpenAI.DeletedWebhookEndpointResource? Type3971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointTestResultResourceObject? Type3972 { get; set; } + public global::tryAGI.OpenAI.DeletedWebhookEndpointResourceObject? Type3972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEventTypeListResource? Type3973 { get; set; } + public global::tryAGI.OpenAI.PublicRotateSecretBody? Type3973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEventTypeListResourceObject? Type3974 { get; set; } + public global::tryAGI.OpenAI.PublicTestEndpointBody? Type3974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragPoint? Type3975 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointTestResultResource? Type3975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam? Type3976 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointTestResultResourceObject? Type3976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParamType? Type3977 { get; set; } + public global::tryAGI.OpenAI.WebhookEventTypeListResource? Type3977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam? Type3978 { get; set; } + public global::tryAGI.OpenAI.WebhookEventTypeListResourceObject? Type3978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParamType? Type3979 { get; set; } + public global::tryAGI.OpenAI.DragPoint? Type3979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam? Type3980 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam? Type3980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParamType? Type3981 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParamType? Type3981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAudioFormat? Type3982 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam? Type3982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAudioFormatDiscriminator? Type3983 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParamType? Type3983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAudioFormatDiscriminatorType? Type3984 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam? Type3984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialSessionAudioParam? Type3985 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParamType? Type3985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCreateParams? Type3986 { get; set; } + public global::tryAGI.OpenAI.LiveAudioFormat? Type3986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant12? Type3987 { get; set; } + public global::tryAGI.OpenAI.LiveAudioFormatDiscriminator? Type3987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1Discriminator? Type3988 { get; set; } + public global::tryAGI.OpenAI.LiveAudioFormatDiscriminatorType? Type3988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1DiscriminatorType? Type3989 { get; set; } + public global::tryAGI.OpenAI.LiveInitialSessionAudioParam? Type3989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStartEventType? Type3990 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCreateParams? Type3990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParams? Type3991 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant12? Type3991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant13? Type3992 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1Discriminator? Type3992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1Discriminator? Type3993 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1DiscriminatorType? Type3993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1DiscriminatorType? Type3994 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStartEventType? Type3994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParamType? Type3995 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParams? Type3995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendEventType? Type3996 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant13? Type3996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuteParamType? Type3997 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1Discriminator? Type3997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuteParamType? Type3998 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1DiscriminatorType? Type3998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendParamType? Type3999 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParamType? Type3999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendParamType? Type4000 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppendEventType? Type4000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendParamType? Type4001 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMuteParamType? Type4001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseItemCreateParamType? Type4002 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmuteParamType? Type4002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseCreateParamType? Type4003 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppendParamType? Type4003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCloseParamType? Type4004 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppendParamType? Type4004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkAudioParam? Type4005 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppendParamType? Type4005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkSessionConfigParam? Type4006 { get; set; } + public global::tryAGI.OpenAI.LiveResponseItemCreateParamType? Type4006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkSessionStartEventType? Type4007 { get; set; } + public global::tryAGI.OpenAI.LiveResponseCreateParamType? Type4007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParam? Type4008 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCloseParamType? Type4008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant14? Type4009 { get; set; } + public global::tryAGI.OpenAI.LiveForkAudioParam? Type4009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1Discriminator? Type4010 { get; set; } + public global::tryAGI.OpenAI.LiveForkSessionConfigParam? Type4010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1DiscriminatorType? Type4011 { get; set; } + public global::tryAGI.OpenAI.LiveForkSessionStartEventType? Type4011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParamStatus? Type4012 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParam? Type4012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStartedType? Type4013 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant14? Type4013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdatedType? Type4014 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1Discriminator? Type4014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMutedType? Type4015 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1DiscriminatorType? Type4015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmutedType? Type4016 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParamStatus? Type4016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendedType? Type4017 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStartedType? Type4017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendedType? Type4018 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdatedType? Type4018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendedType? Type4019 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMutedType? Type4019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppend? Type4020 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmutedType? Type4020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendType? Type4021 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppendedType? Type4021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputAudioDelta? Type4022 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppendedType? Type4022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputAudioDeltaType? Type4023 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppendedType? Type4023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputTranscriptDeltaType? Type4024 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppend? Type4024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputTranscriptDeltaType? Type4025 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppendType? Type4025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItem? Type4026 { get; set; } + public global::tryAGI.OpenAI.LiveOutputAudioDelta? Type4026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItemType? Type4027 { get; set; } + public global::tryAGI.OpenAI.LiveOutputAudioDeltaType? Type4027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4028 { get; set; } + public global::tryAGI.OpenAI.LiveInputTranscriptDeltaType? Type4028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant1? Type4029 { get; set; } + public global::tryAGI.OpenAI.LiveOutputTranscriptDeltaType? Type4029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant2? Type4030 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItem? Type4030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationCreatedType? Type4031 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItemType? Type4031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseEventType? Type4032 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsage? Type4033 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant1? Type4033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveContextWindowUsage? Type4034 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant2? Type4034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsageUpdatedType? Type4035 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationCreatedType? Type4035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedType? Type4036 { get; set; } + public global::tryAGI.OpenAI.LiveResponseEventType? Type4036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant1? Type4037 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUsage? Type4037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant2? Type4038 { get; set; } + public global::tryAGI.OpenAI.LiveContextWindowUsage? Type4038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant3? Type4039 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUsageUpdatedType? Type4039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant4? Type4040 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedType? Type4040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant5? Type4041 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant1? Type4041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveLiveError? Type4042 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant2? Type4042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveErrorEventType? Type4043 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant3? Type4043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInfoEventType? Type4044 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant4? Type4044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFReceived? Type4045 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant5? Type4045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFReceivedType? Type4046 { get; set; } + public global::tryAGI.OpenAI.LiveLiveError? Type4046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFSend? Type4047 { get; set; } + public global::tryAGI.OpenAI.LiveErrorEventType? Type4047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFSendType? Type4048 { get; set; } + public global::tryAGI.OpenAI.LiveInfoEventType? Type4048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportRinging? Type4049 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFReceived? Type4049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportRingingType? Type4050 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFReceivedType? Type4050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportAnswered? Type4051 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFSend? Type4051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportAnsweredType? Type4052 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFSendType? Type4052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportCallError? Type4053 { get; set; } + public global::tryAGI.OpenAI.LiveTransportRinging? Type4053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportCallErrorType? Type4054 { get; set; } + public global::tryAGI.OpenAI.LiveTransportRingingType? Type4054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportFailed? Type4055 { get; set; } + public global::tryAGI.OpenAI.LiveTransportAnswered? Type4055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportFailedType? Type4056 { get; set; } + public global::tryAGI.OpenAI.LiveTransportAnsweredType? Type4056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent2Discriminator? Type4057 { get; set; } + public global::tryAGI.OpenAI.LiveTransportCallError? Type4057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent2DiscriminatorType? Type4058 { get; set; } + public global::tryAGI.OpenAI.LiveTransportCallErrorType? Type4058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamType? Type4059 { get; set; } + public global::tryAGI.OpenAI.LiveTransportFailed? Type4059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamRole? Type4060 { get; set; } + public global::tryAGI.OpenAI.LiveTransportFailedType? Type4060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? Type4061 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent2Discriminator? Type4061 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4062 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent2DiscriminatorType? Type4062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentVariant1Item? Type4063 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamType? Type4063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminator? Type4064 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamRole? Type4064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminatorType? Type4065 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? Type4065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsResource? Type4066 { get; set; } + public global::System.Collections.Generic.IList? Type4066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsResourceObject? Type4067 { get; set; } + public global::tryAGI.OpenAI.ContentVariant1Item? Type4067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsBody? Type4068 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminator? Type4068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4069 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminatorType? Type4069 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4070 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsResource? Type4070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItem? Type4071 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsResourceObject? Type4071 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4072 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsBody? Type4072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTool? Type4073 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextParam? Type4074 { get; set; } + public global::System.Collections.Generic.IList? Type4074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoning? Type4075 { get; set; } + public global::tryAGI.OpenAI.BetaInputItem? Type4075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTruncationEnum? Type4076 { get; set; } + public global::System.Collections.Generic.IList? Type4076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPersonalityEnum? Type4077 { get; set; } + public global::tryAGI.OpenAI.BetaTool? Type4077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaConversationParam? Type4078 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextParam? Type4078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceParam? Type4079 { get; set; } + public global::tryAGI.OpenAI.BetaReasoning? Type4079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceOptions? Type4080 { get; set; } + public global::tryAGI.OpenAI.BetaTruncationEnum? Type4080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowed? Type4081 { get; set; } + public global::tryAGI.OpenAI.BetaPersonalityEnum? Type4081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceTypes? Type4082 { get; set; } + public global::tryAGI.OpenAI.BetaConversationParam? Type4082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceFunction? Type4083 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceParam? Type4083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceMCP? Type4084 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceOptions? Type4084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceCustom? Type4085 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowed? Type4085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam? Type4086 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceTypes? Type4086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam? Type4087 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceFunction? Type4087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam? Type4088 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceMCP? Type4088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificFunctionShellParamType? Type4089 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceCustom? Type4089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificApplyPatchParamType? Type4090 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam? Type4090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParamType? Type4091 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam? Type4091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceCustomType? Type4092 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam? Type4092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceMCPType? Type4093 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificFunctionShellParamType? Type4093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceFunctionType? Type4094 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificApplyPatchParamType? Type4094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceTypesType? Type4095 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParamType? Type4095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowedType? Type4096 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceCustomType? Type4096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowedMode? Type4097 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceMCPType? Type4097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaConversationParam2? Type4098 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceFunctionType? Type4098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPersonalityEnumEnum? Type4099 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceTypesType? Type4099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningModeEnum? Type4100 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowedType? Type4100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningEffortEnum? Type4101 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowedMode? Type4101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningSummary? Type4102 { get; set; } + public global::tryAGI.OpenAI.BetaConversationParam2? Type4102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningContext? Type4103 { get; set; } + public global::tryAGI.OpenAI.BetaPersonalityEnumEnum? Type4103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningGenerateSummary? Type4104 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningModeEnum? Type4104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum? Type4105 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningEffortEnum? Type4105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatConfiguration? Type4106 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningSummary? Type4106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaVerbosityEnum? Type4107 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningContext? Type4107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatText? Type4108 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningGenerateSummary? Type4108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema? Type4109 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum? Type4109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonObject? Type4110 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatConfiguration? Type4110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonObjectType? Type4111 { get; set; } + public global::tryAGI.OpenAI.BetaVerbosityEnum? Type4111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchemaType? Type4112 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatText? Type4112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonSchemaSchema? Type4113 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema? Type4113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatTextType? Type4114 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonObject? Type4114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionTool? Type4115 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonObjectType? Type4115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchTool? Type4116 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchemaType? Type4116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerTool? Type4117 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonSchemaSchema? Type4117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? Type4118 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatTextType? Type4118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchTool? Type4119 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionTool? Type4119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPTool? Type4120 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchTool? Type4120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterTool? Type4121 { get; set; } + public global::tryAGI.OpenAI.BetaComputerTool? Type4121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? Type4122 { get; set; } + public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? Type4122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenTool? Type4123 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchTool? Type4123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolParam? Type4124 { get; set; } + public global::tryAGI.OpenAI.BetaMCPTool? Type4124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Type4125 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterTool? Type4125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParam? Type4126 { get; set; } + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? Type4126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParam? Type4127 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenTool? Type4127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchToolParam? Type4128 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolParam? Type4128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? Type4129 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Type4129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolParam? Type4130 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParam? Type4130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolDiscriminator? Type4131 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParam? Type4131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolDiscriminatorType? Type4132 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchToolParam? Type4132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolParamType? Type4133 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? Type4133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4134 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolParam? Type4134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCallableToolAllowedCaller? Type4135 { get; set; } + public global::tryAGI.OpenAI.BetaToolDiscriminator? Type4135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchPreviewToolType? Type4136 { get; set; } + public global::tryAGI.OpenAI.BetaToolDiscriminatorType? Type4136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApproximateLocation? Type4137 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolParamType? Type4137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSearchContextSize? Type4138 { get; set; } + public global::System.Collections.Generic.IList? Type4138 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4139 { get; set; } + public global::tryAGI.OpenAI.BetaCallableToolAllowedCaller? Type4139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSearchContentType? Type4140 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchPreviewToolType? Type4140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApproximateLocationType? Type4141 { get; set; } + public global::tryAGI.OpenAI.BetaApproximateLocation? Type4141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchToolParamType? Type4142 { get; set; } + public global::tryAGI.OpenAI.BetaSearchContextSize? Type4142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchExecutionType? Type4143 { get; set; } + public global::System.Collections.Generic.IList? Type4143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEmptyModelParam? Type4144 { get; set; } + public global::tryAGI.OpenAI.BetaSearchContentType? Type4144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamType? Type4145 { get; set; } + public global::tryAGI.OpenAI.BetaApproximateLocationType? Type4145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4146 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchToolParamType? Type4146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem16? Type4147 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchExecutionType? Type4147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParam? Type4148 { get; set; } + public global::tryAGI.OpenAI.BetaEmptyModelParam? Type4148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator? Type4149 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamType? Type4149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type4150 { get; set; } + public global::System.Collections.Generic.IList? Type4150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamType? Type4151 { get; set; } + public global::tryAGI.OpenAI.ToolsItem16? Type4151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format3? Type4152 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolParam? Type4152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomTextFormatParam? Type4153 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator? Type4153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam? Type4154 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type4154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminator? Type4155 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamType? Type4155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminatorType? Type4156 { get; set; } + public global::tryAGI.OpenAI.Format3? Type4156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomGrammarFormatParamType? Type4157 { get; set; } + public global::tryAGI.OpenAI.BetaCustomTextFormatParam? Type4157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGrammarSyntax1? Type4158 { get; set; } + public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam? Type4158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomTextFormatParamType? Type4159 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminator? Type4159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParamType? Type4160 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminatorType? Type4160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamType? Type4161 { get; set; } + public global::tryAGI.OpenAI.BetaCustomGrammarFormatParamType? Type4161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant14? Type4162 { get; set; } + public global::tryAGI.OpenAI.BetaGrammarSyntax1? Type4162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParam? Type4163 { get; set; } + public global::tryAGI.OpenAI.BetaCustomTextFormatParamType? Type4163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParam? Type4164 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolParamType? Type4164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParam? Type4165 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamType? Type4165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1Discriminator? Type4166 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant14? Type4166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type4167 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParam? Type4167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParamType? Type4168 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentParam? Type4168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParamType? Type4169 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceParam? Type4169 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4170 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1Discriminator? Type4170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalSkillParam? Type4171 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type4171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamType? Type4172 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceParamType? Type4172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerMemoryLimit? Type4173 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentParamType? Type4173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy4? Type4174 { get; set; } + public global::System.Collections.Generic.IList? Type4174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam? Type4175 { get; set; } + public global::tryAGI.OpenAI.BetaLocalSkillParam? Type4175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam? Type4176 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamType? Type4176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminator? Type4177 { get; set; } + public global::tryAGI.OpenAI.BetaContainerMemoryLimit? Type4177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminatorType? Type4178 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy4? Type4178 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4179 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam? Type4179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem3? Type4180 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam? Type4180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSkillReferenceParam? Type4181 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminator? Type4181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillParam? Type4182 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminatorType? Type4182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminator? Type4183 { get; set; } + public global::System.Collections.Generic.IList? Type4183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType? Type4184 { get; set; } + public global::tryAGI.OpenAI.SkillsItem3? Type4184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillParamType? Type4185 { get; set; } + public global::tryAGI.OpenAI.BetaSkillReferenceParam? Type4185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParam? Type4186 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillParam? Type4186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParamType? Type4187 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminator? Type4187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType? Type4188 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType? Type4188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSkillReferenceParamType? Type4189 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillParamType? Type4189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType? Type4190 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParam? Type4190 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4191 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParamType? Type4191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDomainSecretParam? Type4192 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType? Type4192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType? Type4193 { get; set; } + public global::tryAGI.OpenAI.BetaSkillReferenceParamType? Type4193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolParamType? Type4194 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType? Type4194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolType? Type4195 { get; set; } + public global::System.Collections.Generic.IList? Type4195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type4196 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDomainSecretParam? Type4196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolModel? Type4197 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType? Type4197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolQuality? Type4198 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolParamType? Type4198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type4199 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolType? Type4199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolSize? Type4200 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type4200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolOutputFormat? Type4201 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolModel? Type4201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolModeration? Type4202 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolQuality? Type4202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolBackground? Type4203 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type4203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFidelity? Type4204 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolSize? Type4204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolInputImageMask? Type4205 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolOutputFormat? Type4205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenActionEnum? Type4206 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolModeration? Type4206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType? Type4207 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolBackground? Type4207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolType? Type4208 { get; set; } + public global::tryAGI.OpenAI.BetaInputFidelity? Type4208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4209 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolInputImageMask? Type4209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParam? Type4210 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenActionEnum? Type4210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType? Type4211 { get; set; } + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType? Type4211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy5? Type4212 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolType? Type4212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type4213 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type4214 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParam? Type4214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolType? Type4215 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType? Type4215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolConnectorId? Type4216 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy5? Type4216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? Type4217 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type4217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolFilter? Type4218 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type4218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4219 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolType? Type4219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum? Type4220 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolConnectorId? Type4220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2? Type4221 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? Type4221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolType? Type4222 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolFilter? Type4222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolFilters? Type4223 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocation? Type4224 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum? Type4224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize? Type4225 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2? Type4225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType? Type4226 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolType? Type4226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerUsePreviewToolType? Type4227 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolFilters? Type4227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerEnvironment? Type4228 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocation? Type4228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolType? Type4229 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize? Type4229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolType? Type4230 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType? Type4230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRankingOptions? Type4231 { get; set; } + public global::tryAGI.OpenAI.BetaComputerUsePreviewToolType? Type4231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilters? Type4232 { get; set; } + public global::tryAGI.OpenAI.BetaComputerEnvironment? Type4232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilter? Type4233 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolType? Type4233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilter? Type4234 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolType? Type4234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilterType? Type4235 { get; set; } + public global::tryAGI.OpenAI.BetaRankingOptions? Type4235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4236 { get; set; } + public global::tryAGI.OpenAI.BetaFilters? Type4236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FiltersItem2? Type4237 { get; set; } + public global::tryAGI.OpenAI.BetaComparisonFilter? Type4237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilterFilterDiscriminator? Type4238 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilter? Type4238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilterType? Type4239 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilterType? Type4239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRankerVersionType? Type4240 { get; set; } + public global::System.Collections.Generic.IList? Type4240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHybridSearchOptions? Type4241 { get; set; } + public global::tryAGI.OpenAI.FiltersItem2? Type4241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolType? Type4242 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilterFilterDiscriminator? Type4242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessage? Type4243 { get; set; } + public global::tryAGI.OpenAI.BetaComparisonFilterType? Type4243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItem? Type4244 { get; set; } + public global::tryAGI.OpenAI.BetaRankerVersionType? Type4244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam? Type4245 { get; set; } + public global::tryAGI.OpenAI.BetaHybridSearchOptions? Type4245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemReferenceParam? Type4246 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolType? Type4246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramItemParam? Type4247 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessage? Type4247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemParam? Type4248 { get; set; } + public global::tryAGI.OpenAI.BetaItem? Type4248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItemDiscriminator? Type4249 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam? Type4249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItemDiscriminatorType? Type4250 { get; set; } + public global::tryAGI.OpenAI.BetaItemReferenceParam? Type4250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentTagParam? Type4251 { get; set; } + public global::tryAGI.OpenAI.BetaProgramItemParam? Type4251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemParamType? Type4252 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemParam? Type4252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemStatus? Type4253 { get; set; } + public global::tryAGI.OpenAI.BetaInputItemDiscriminator? Type4253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramItemParamType? Type4254 { get; set; } + public global::tryAGI.OpenAI.BetaInputItemDiscriminatorType? Type4254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemReferenceParamType? Type4255 { get; set; } + public global::tryAGI.OpenAI.BetaAgentTagParam? Type4255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionTriggerItemParamType? Type4256 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemParamType? Type4256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessage? Type4257 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemStatus? Type4257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessage? Type4258 { get; set; } + public global::tryAGI.OpenAI.BetaProgramItemParamType? Type4258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCall? Type4259 { get; set; } + public global::tryAGI.OpenAI.BetaItemReferenceParamType? Type4259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCall? Type4260 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionTriggerItemParamType? Type4260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam? Type4261 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessage? Type4261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCall? Type4262 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessage? Type4262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCall? Type4263 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCall? Type4263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam? Type4264 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCall? Type4264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParam? Type4265 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam? Type4265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam? Type4266 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCall? Type4266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam? Type4267 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCall? Type4267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallItemParam? Type4268 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam? Type4268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam? Type4269 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParam? Type4269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam? Type4270 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam? Type4270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam? Type4271 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam? Type4271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItem? Type4272 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallItemParam? Type4272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam? Type4273 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam? Type4273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCall? Type4274 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam? Type4274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall? Type4275 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam? Type4275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCall? Type4276 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItem? Type4276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput? Type4277 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam? Type4277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam? Type4278 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCall? Type4278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam? Type4279 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall? Type4279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam? Type4280 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCall? Type4280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam? Type4281 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput? Type4281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListTools? Type4282 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam? Type4282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequest? Type4283 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam? Type4283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponse? Type4284 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam? Type4284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCall? Type4285 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam? Type4285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutput? Type4286 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListTools? Type4286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCall? Type4287 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalRequest? Type4287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemDiscriminator? Type4288 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponse? Type4288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemDiscriminatorType? Type4289 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCall? Type4289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentTag? Type4290 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutput? Type4290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallType? Type4291 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCall? Type4291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCaller? Type4292 { get; set; } + public global::tryAGI.OpenAI.BetaItemDiscriminator? Type4292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCaller? Type4293 { get; set; } + public global::tryAGI.OpenAI.BetaItemDiscriminatorType? Type4293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCaller? Type4294 { get; set; } + public global::tryAGI.OpenAI.BetaAgentTag? Type4294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminator? Type4295 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallType? Type4295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminatorType? Type4296 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCaller? Type4296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerType? Type4297 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCaller? Type4297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerType? Type4298 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCaller? Type4298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputType? Type4299 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminator? Type4299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParam? Type4300 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminatorType? Type4300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4301 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerType? Type4301 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4302 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerType? Type4302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutput? Type4303 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputType? Type4303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContent? Type4304 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParam? Type4304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContent? Type4305 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContent? Type4306 { get; set; } + public global::System.Collections.Generic.IList? Type4306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminator? Type4307 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutput? Type4307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminatorType? Type4308 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContent? Type4308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentType? Type4309 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContent? Type4309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfig? Type4310 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContent? Type4310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileInputDetail? Type4311 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminator? Type4311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfigMode? Type4312 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminatorType? Type4312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentType? Type4313 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentType? Type4313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageDetail? Type4314 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfig? Type4314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentType? Type4315 { get; set; } + public global::tryAGI.OpenAI.BetaFileInputDetail? Type4315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam? Type4316 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfigMode? Type4316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam? Type4317 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentType? Type4317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminator? Type4318 { get; set; } + public global::tryAGI.OpenAI.BetaImageDetail? Type4318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminatorType? Type4319 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentType? Type4319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerParamType? Type4320 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam? Type4320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerParamType? Type4321 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam? Type4321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallType? Type4322 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminator? Type4322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallError? Type4323 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminatorType? Type4323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallStatus? Type4324 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerParamType? Type4324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPProtocolError? Type4325 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerParamType? Type4325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolExecutionError? Type4326 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallType? Type4326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHTTPError? Type4327 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallError? Type4327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminator? Type4328 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallStatus? Type4328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminatorType? Type4329 { get; set; } + public global::tryAGI.OpenAI.BetaMCPProtocolError? Type4329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHTTPErrorType? Type4330 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolExecutionError? Type4330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolExecutionErrorType? Type4331 { get; set; } + public global::tryAGI.OpenAI.BetaHTTPError? Type4331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPProtocolErrorType? Type4332 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminator? Type4332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseType? Type4333 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminatorType? Type4333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequestType? Type4334 { get; set; } + public global::tryAGI.OpenAI.BetaHTTPErrorType? Type4334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListToolsType? Type4335 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolExecutionErrorType? Type4335 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4336 { get; set; } + public global::tryAGI.OpenAI.BetaMCPProtocolErrorType? Type4336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListToolsTool? Type4337 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseType? Type4337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParamType? Type4338 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalRequestType? Type4338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatusParam? Type4339 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListToolsType? Type4339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParamType? Type4340 { get; set; } + public global::System.Collections.Generic.IList? Type4340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallStatusParam? Type4341 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListToolsTool? Type4341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParam? Type4342 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParamType? Type4342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam? Type4343 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatusParam? Type4343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam? Type4344 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParamType? Type4344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam? Type4345 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallStatusParam? Type4345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminator? Type4346 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParam? Type4346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminatorType? Type4347 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam? Type4347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParamType? Type4348 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam? Type4348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParamType? Type4349 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam? Type4349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParamType? Type4350 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminator? Type4350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParamType? Type4351 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminatorType? Type4351 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4352 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParamType? Type4352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentParam? Type4353 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParamType? Type4353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemStatus? Type4354 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParamType? Type4354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParam? Type4355 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParamType? Type4355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam? Type4356 { get; set; } + public global::System.Collections.Generic.IList? Type4356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam? Type4357 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentParam? Type4357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminator? Type4358 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemStatus? Type4358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminatorType? Type4359 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParam? Type4359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParamType? Type4360 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam? Type4360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParamType? Type4361 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam? Type4361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamType? Type4362 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminator? Type4362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellActionParam? Type4363 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminatorType? Type4363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant15? Type4364 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParamType? Type4364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1Discriminator? Type4365 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParamType? Type4365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type4366 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamType? Type4366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputType? Type4367 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellActionParam? Type4367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputStatus? Type4368 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant15? Type4368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallType? Type4369 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1Discriminator? Type4369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellExecAction? Type4370 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type4370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallStatus? Type4371 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputType? Type4371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellExecActionType? Type4372 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputStatus? Type4372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallType? Type4373 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallType? Type4373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallStatus? Type4374 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellExecAction? Type4374 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4375 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallStatus? Type4375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputsVariant1Item2? Type4376 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellExecActionType? Type4376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs? Type4377 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallType? Type4377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage? Type4378 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallStatus? Type4378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type4379 { get; set; } + public global::System.Collections.Generic.IList? Type4379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type4380 { get; set; } + public global::tryAGI.OpenAI.OutputsVariant1Item2? Type4380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImageType? Type4381 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs? Type4381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogsType? Type4382 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage? Type4382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallType? Type4383 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type4383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallStatus? Type4384 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type4384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type4385 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImageType? Type4385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallSizeVariant1? Type4386 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogsType? Type4386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallQuality? Type4387 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallType? Type4387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageBackground? Type4388 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallStatus? Type4388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageOutputFormat? Type4389 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type4389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionSummaryItemParamType? Type4390 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallSizeVariant1? Type4390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItemType? Type4391 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallQuality? Type4391 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4392 { get; set; } + public global::tryAGI.OpenAI.BetaImageBackground? Type4392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContent? Type4393 { get; set; } + public global::tryAGI.OpenAI.BetaImageOutputFormat? Type4393 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4394 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionSummaryItemParamType? Type4394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContent? Type4395 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItemType? Type4395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItemStatus? Type4396 { get; set; } + public global::System.Collections.Generic.IList? Type4396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContentType? Type4397 { get; set; } + public global::tryAGI.OpenAI.BetaSummaryTextContent? Type4397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContentType? Type4398 { get; set; } + public global::System.Collections.Generic.IList? Type4398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamType? Type4399 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningTextContent? Type4399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamReasoning? Type4400 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItemStatus? Type4400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType? Type4401 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningTextContentType? Type4401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole? Type4402 { get; set; } + public global::tryAGI.OpenAI.BetaSummaryTextContentType? Type4402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType? Type4403 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamType? Type4403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallItemStatus? Type4404 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamReasoning? Type4404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallItemParamType? Type4405 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType? Type4405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType? Type4406 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole? Type4406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentAction1? Type4407 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType? Type4407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4408 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallItemStatus? Type4408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParam? Type4409 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallItemParamType? Type4409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamType? Type4410 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType? Type4410 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4411 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentAction1? Type4411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem4? Type4412 { get; set; } + public global::System.Collections.Generic.IList? Type4412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationParam? Type4413 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParam? Type4413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationParam? Type4414 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamType? Type4414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationParam? Type4415 { get; set; } + public global::System.Collections.Generic.IList? Type4415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminator? Type4416 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem4? Type4416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminatorType? Type4417 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationParam? Type4417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationParamType? Type4418 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationParam? Type4418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationParamType? Type4419 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationParam? Type4419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationParamType? Type4420 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminator? Type4420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallItemParamType? Type4421 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminatorType? Type4421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamType? Type4422 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationParamType? Type4422 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4423 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationParamType? Type4423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem6? Type4424 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationParamType? Type4424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParam? Type4425 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallItemParamType? Type4425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam? Type4426 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamType? Type4426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentParam? Type4427 { get; set; } + public global::System.Collections.Generic.IList? Type4427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminator? Type4428 { get; set; } + public global::tryAGI.OpenAI.ContentItem6? Type4428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminatorType? Type4429 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentParam? Type4429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentParamType? Type4430 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam? Type4430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParamType? Type4431 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentParam? Type4431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDetailEnum? Type4432 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminator? Type4432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParam? Type4433 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminatorType? Type4433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParamMode? Type4434 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentParamType? Type4434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParamType? Type4435 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParamType? Type4435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType? Type4436 { get; set; } + public global::tryAGI.OpenAI.BetaDetailEnum? Type4436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4437 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParam? Type4437 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4438 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParamMode? Type4438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputVariant2Item2? Type4439 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentParamType? Type4439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParam? Type4440 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType? Type4440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type4441 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type4442 { get; set; } + public global::System.Collections.Generic.IList? Type4442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParamType? Type4443 { get; set; } + public global::tryAGI.OpenAI.OutputVariant2Item2? Type4443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileDetailEnum? Type4444 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentParam? Type4444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallType? Type4445 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type4445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallStatus? Type4446 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type4446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallType? Type4447 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentParamType? Type4447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchCallStatus? Type4448 { get; set; } + public global::tryAGI.OpenAI.BetaFileDetailEnum? Type4448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallAction? Type4449 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallType? Type4449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearch? Type4450 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallStatus? Type4450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage? Type4451 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallType? Type4451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionFind? Type4452 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchCallStatus? Type4452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminator? Type4453 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallAction? Type4453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminatorType? Type4454 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearch? Type4454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionFindType? Type4455 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage? Type4455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionOpenPageType? Type4456 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionFind? Type4456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchType? Type4457 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminator? Type4457 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4458 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminatorType? Type4458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchSource? Type4459 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionFindType? Type4459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchSourceType? Type4460 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionOpenPageType? Type4460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputItemParamType? Type4461 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchType? Type4461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotImage? Type4462 { get; set; } + public global::System.Collections.Generic.IList? Type4462 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4463 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchSource? Type4463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallSafetyCheckParam? Type4464 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchSourceType? Type4464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotImageType? Type4465 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputItemParamType? Type4465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallType? Type4466 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotImage? Type4466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerAction? Type4467 { get; set; } + public global::System.Collections.Generic.IList? Type4467 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4468 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallSafetyCheckParam? Type4468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallStatus? Type4469 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotImageType? Type4469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickParam? Type4470 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallType? Type4470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDoubleClickAction? Type4471 { get; set; } + public global::tryAGI.OpenAI.BetaComputerAction? Type4471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDragParam? Type4472 { get; set; } + public global::System.Collections.Generic.IList? Type4472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaKeyPressAction? Type4473 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallStatus? Type4473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMoveParam? Type4474 { get; set; } + public global::tryAGI.OpenAI.BetaClickParam? Type4474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScreenshotParam? Type4475 { get; set; } + public global::tryAGI.OpenAI.BetaDoubleClickAction? Type4475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScrollParam? Type4476 { get; set; } + public global::tryAGI.OpenAI.BetaDragParam? Type4476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTypeParam? Type4477 { get; set; } + public global::tryAGI.OpenAI.BetaKeyPressAction? Type4477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWaitParam? Type4478 { get; set; } + public global::tryAGI.OpenAI.BetaMoveParam? Type4478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerActionDiscriminator? Type4479 { get; set; } + public global::tryAGI.OpenAI.BetaScreenshotParam? Type4479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType? Type4480 { get; set; } + public global::tryAGI.OpenAI.BetaScrollParam? Type4480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWaitParamType? Type4481 { get; set; } + public global::tryAGI.OpenAI.BetaTypeParam? Type4481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTypeParamType? Type4482 { get; set; } + public global::tryAGI.OpenAI.BetaWaitParam? Type4482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScrollParamType? Type4483 { get; set; } + public global::tryAGI.OpenAI.BetaComputerActionDiscriminator? Type4483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScreenshotParamType? Type4484 { get; set; } + public global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType? Type4484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMoveParamType? Type4485 { get; set; } + public global::tryAGI.OpenAI.BetaWaitParamType? Type4485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaKeyPressActionType? Type4486 { get; set; } + public global::tryAGI.OpenAI.BetaTypeParamType? Type4486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDragParamType? Type4487 { get; set; } + public global::tryAGI.OpenAI.BetaScrollParamType? Type4487 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4488 { get; set; } + public global::tryAGI.OpenAI.BetaScreenshotParamType? Type4488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCoordParam? Type4489 { get; set; } + public global::tryAGI.OpenAI.BetaMoveParamType? Type4489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDoubleClickActionType? Type4490 { get; set; } + public global::tryAGI.OpenAI.BetaKeyPressActionType? Type4490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickParamType? Type4491 { get; set; } + public global::tryAGI.OpenAI.BetaDragParamType? Type4491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickButtonType? Type4492 { get; set; } + public global::System.Collections.Generic.IList? Type4492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallType? Type4493 { get; set; } + public global::tryAGI.OpenAI.BetaCoordParam? Type4493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallStatus? Type4494 { get; set; } + public global::tryAGI.OpenAI.BetaDoubleClickActionType? Type4494 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4495 { get; set; } + public global::tryAGI.OpenAI.BetaClickParamType? Type4495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallResultsVariant1Item? Type4496 { get; set; } + public global::tryAGI.OpenAI.BetaClickButtonType? Type4496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageType? Type4497 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallType? Type4497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageRole? Type4498 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallStatus? Type4498 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4499 { get; set; } + public global::System.Collections.Generic.IList? Type4499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContent? Type4500 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallResultsVariant1Item? Type4500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessagePhase? Type4501 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageType? Type4501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageStatus? Type4502 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageRole? Type4502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContent? Type4503 { get; set; } + public global::System.Collections.Generic.IList? Type4503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContent? Type4504 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContent? Type4504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminator? Type4505 { get; set; } + public global::tryAGI.OpenAI.BetaMessagePhase? Type4505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType? Type4506 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageStatus? Type4506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContentType? Type4507 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContent? Type4507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentType? Type4508 { get; set; } + public global::tryAGI.OpenAI.BetaRefusalContent? Type4508 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4509 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminator? Type4509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotation? Type4510 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType? Type4510 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4511 { get; set; } + public global::tryAGI.OpenAI.BetaRefusalContentType? Type4511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLogProb? Type4512 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentType? Type4512 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4513 { get; set; } + public global::System.Collections.Generic.IList? Type4513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTopLogProb? Type4514 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotation? Type4514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationBody? Type4515 { get; set; } + public global::System.Collections.Generic.IList? Type4515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationBody? Type4516 { get; set; } + public global::tryAGI.OpenAI.BetaLogProb? Type4516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationBody? Type4517 { get; set; } + public global::System.Collections.Generic.IList? Type4517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilePath? Type4518 { get; set; } + public global::tryAGI.OpenAI.BetaTopLogProb? Type4518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotationDiscriminator? Type4519 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationBody? Type4519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotationDiscriminatorType? Type4520 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationBody? Type4520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilePathType? Type4521 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationBody? Type4521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationBodyType? Type4522 { get; set; } + public global::tryAGI.OpenAI.BetaFilePath? Type4522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationBodyType? Type4523 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotationDiscriminator? Type4523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationBodyType? Type4524 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotationDiscriminatorType? Type4524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageType? Type4525 { get; set; } + public global::tryAGI.OpenAI.BetaFilePathType? Type4525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageRole? Type4526 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationBodyType? Type4526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageStatus? Type4527 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationBodyType? Type4527 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4528 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationBodyType? Type4528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContent? Type4529 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageType? Type4529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContentDiscriminator? Type4530 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageRole? Type4530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContentDiscriminatorType? Type4531 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageStatus? Type4531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessageRole? Type4532 { get; set; } + public global::System.Collections.Generic.IList? Type4532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4533 { get; set; } + public global::tryAGI.OpenAI.BetaInputContent? Type4533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessageType? Type4534 { get; set; } + public global::tryAGI.OpenAI.BetaInputContentDiscriminator? Type4534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResponseMethodPublicBody? Type4535 { get; set; } + public global::tryAGI.OpenAI.BetaInputContentDiscriminatorType? Type4535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsCompaction? Type4536 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessageRole? Type4536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheRetentionEnum? Type4537 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheOptionsParam? Type4538 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessageType? Type4538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaServiceTierEnum? Type4539 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResponseMethodPublicBody? Type4539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheTTLEnum? Type4540 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsCompaction? Type4540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheModeEnum? Type4541 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheRetentionEnum? Type4541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponses? Type4542 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheOptionsParam? Type4542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsShared? Type4543 { get; set; } + public global::tryAGI.OpenAI.BetaServiceTierEnum? Type4543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum? Type4544 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheTTLEnum? Type4544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsSharedEnum? Type4545 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheModeEnum? Type4545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaError? Type4546 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsResponses? Type4546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorDetailsResource? Type4547 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsShared? Type4547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorType? Type4548 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum? Type4548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentSteer? Type4549 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsSharedEnum? Type4549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum? Type4550 { get; set; } + public global::tryAGI.OpenAI.BetaErrorResponse? Type4550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseItemList? Type4551 { get; set; } + public global::tryAGI.OpenAI.BetaError? Type4551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseItemListObject? Type4552 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentErrorDetailsResource? Type4552 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4553 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentErrorType? Type4553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResource? Type4554 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentSteer? Type4554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResource? Type4555 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum? Type4555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource? Type4556 { get; set; } + public global::tryAGI.OpenAI.BetaResponseItemList? Type4556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResource? Type4557 { get; set; } + public global::tryAGI.OpenAI.BetaResponseItemListObject? Type4557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource? Type4558 { get; set; } + public global::System.Collections.Generic.IList? Type4558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessage? Type4559 { get; set; } + public global::tryAGI.OpenAI.BetaItemResource? Type4559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCall? Type4560 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageResource? Type4560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutput? Type4561 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource? Type4561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCall? Type4562 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallResource? Type4562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutput? Type4563 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource? Type4563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalTools? Type4564 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessage? Type4564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdate? Type4565 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCall? Type4565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgram? Type4566 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutput? Type4566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutput? Type4567 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCall? Type4567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBody? Type4568 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutput? Type4568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCall? Type4569 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalTools? Type4569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutput? Type4570 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdate? Type4570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCall? Type4571 { get; set; } + public global::tryAGI.OpenAI.BetaProgram? Type4571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput? Type4572 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutput? Type4572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource? Type4573 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionBody? Type4573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResource? Type4574 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCall? Type4574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource? Type4575 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutput? Type4575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResourceDiscriminator? Type4576 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCall? Type4576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResourceDiscriminatorType? Type4577 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput? Type4577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2? Type4578 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource? Type4578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputStatusEnum? Type4579 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallResource? Type4579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2? Type4580 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource? Type4580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallStatus? Type4581 { get; set; } + public global::tryAGI.OpenAI.BetaItemResourceDiscriminator? Type4581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType? Type4582 { get; set; } + public global::tryAGI.OpenAI.BetaItemResourceDiscriminatorType? Type4582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType? Type4583 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2? Type4583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus? Type4584 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputStatusEnum? Type4584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallType? Type4585 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2? Type4585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallStatus? Type4586 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallStatus? Type4586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Operation2? Type4587 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType? Type4587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation? Type4588 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType? Type4588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation? Type4589 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus? Type4589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation? Type4590 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallType? Type4590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminator? Type4591 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallStatus? Type4591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminatorType? Type4592 { get; set; } + public global::tryAGI.OpenAI.Operation2? Type4592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationType? Type4593 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation? Type4593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationType? Type4594 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation? Type4594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationType? Type4595 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation? Type4595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputType? Type4596 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminator? Type4596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputStatusEnum? Type4597 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminatorType? Type4597 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4598 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationType? Type4598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContent? Type4599 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationType? Type4599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Outcome2? Type4600 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationType? Type4600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome? Type4601 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputType? Type4601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome? Type4602 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputStatusEnum? Type4602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminator? Type4603 { get; set; } + public global::System.Collections.Generic.IList? Type4603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminatorType? Type4604 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContent? Type4604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeType? Type4605 { get; set; } + public global::tryAGI.OpenAI.Outcome2? Type4605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeType? Type4606 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome? Type4606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallType? Type4607 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome? Type4607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellAction? Type4608 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminator? Type4608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallStatus? Type4609 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminatorType? Type4609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant16? Type4610 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeType? Type4610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentResource? Type4611 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeType? Type4611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceResource? Type4612 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallType? Type4612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1Discriminator? Type4613 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellAction? Type4613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1DiscriminatorType? Type4614 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallStatus? Type4614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceResourceType? Type4615 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant16? Type4615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentResourceType? Type4616 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentResource? Type4616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBodyType? Type4617 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceResource? Type4617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputType? Type4618 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1Discriminator? Type4618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputStatus? Type4619 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1DiscriminatorType? Type4619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramType? Type4620 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceResourceType? Type4620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateType? Type4621 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentResourceType? Type4621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateReasoning? Type4622 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionBodyType? Type4622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsType? Type4623 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputType? Type4623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageRole? Type4624 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputStatus? Type4624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputType? Type4625 { get; set; } + public global::tryAGI.OpenAI.BetaProgramType? Type4625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallType? Type4626 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateType? Type4626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputType? Type4627 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateReasoning? Type4627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentAction? Type4628 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsType? Type4628 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4629 { get; set; } + public global::tryAGI.OpenAI.BetaMessageRole? Type4629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallType? Type4630 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputType? Type4630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageType? Type4631 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallType? Type4631 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4632 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputType? Type4632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem7? Type4633 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentAction? Type4633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextContent? Type4634 { get; set; } + public global::System.Collections.Generic.IList? Type4634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContent? Type4635 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallType? Type4635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContent? Type4636 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageType? Type4636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminator? Type4637 { get; set; } + public global::System.Collections.Generic.IList? Type4637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminatorType? Type4638 { get; set; } + public global::tryAGI.OpenAI.ContentItem7? Type4638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentType? Type4639 { get; set; } + public global::tryAGI.OpenAI.BetaTextContent? Type4639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContentType? Type4640 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotContent? Type4640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextContentType? Type4641 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContent? Type4641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutput? Type4642 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminator? Type4642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2? Type4643 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminatorType? Type4643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputType? Type4644 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentType? Type4644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputStatus? Type4645 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotContentType? Type4645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2? Type4646 { get; set; } + public global::tryAGI.OpenAI.BetaTextContentType? Type4646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutput? Type4647 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutput? Type4647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2? Type4648 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2? Type4648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputStatus? Type4649 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputType? Type4649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputType? Type4650 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputStatus? Type4650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputStatus? Type4651 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2? Type4651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2? Type4652 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutput? Type4652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResource? Type4653 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2? Type4653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResourceObject? Type4654 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputStatus? Type4654 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4655 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputType? Type4655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemField? Type4656 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputStatus? Type4656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsage? Type4657 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2? Type4657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsageInputTokensDetails? Type4658 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResource? Type4658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsageOutputTokensDetails? Type4659 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResourceObject? Type4659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessage? Type4660 { get; set; } + public global::System.Collections.Generic.IList? Type4660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemFieldDiscriminator? Type4661 { get; set; } + public global::tryAGI.OpenAI.BetaItemField? Type4661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemFieldDiscriminatorType? Type4662 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsage? Type4662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageType? Type4663 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsageInputTokensDetails? Type4663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageStatus? Type4664 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsageOutputTokensDetails? Type4664 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4665 { get; set; } + public global::tryAGI.OpenAI.BetaMessage? Type4665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem8? Type4666 { get; set; } + public global::tryAGI.OpenAI.BetaItemFieldDiscriminator? Type4666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminator? Type4667 { get; set; } + public global::tryAGI.OpenAI.BetaItemFieldDiscriminatorType? Type4667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminatorType? Type4668 { get; set; } + public global::tryAGI.OpenAI.BetaMessageType? Type4668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessagePhase2? Type4669 { get; set; } + public global::tryAGI.OpenAI.BetaMessageStatus? Type4669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent? Type4670 { get; set; } + public global::System.Collections.Generic.IList? Type4670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEventType? Type4671 { get; set; } + public global::tryAGI.OpenAI.ContentItem8? Type4671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent? Type4672 { get; set; } + public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminator? Type4672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEventType? Type4673 { get; set; } + public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminatorType? Type4673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseQueuedEvent? Type4674 { get; set; } + public global::tryAGI.OpenAI.BetaMessagePhase2? Type4674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseQueuedEventType? Type4675 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent? Type4675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponse? Type4676 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEventType? Type4676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelResponseProperties? Type4677 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent? Type4677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseProperties? Type4678 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEventType? Type4678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3? Type4679 { get; set; } + public global::tryAGI.OpenAI.BetaResponseQueuedEvent? Type4679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaServiceTierResponsesEnum? Type4680 { get; set; } + public global::tryAGI.OpenAI.BetaResponseQueuedEventType? Type4680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Truncation? Type4681 { get; set; } + public global::tryAGI.OpenAI.BetaResponse? Type4681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Object? Type4682 { get; set; } + public global::tryAGI.OpenAI.BetaModelResponseProperties? Type4682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Status? Type4683 { get; set; } + public global::tryAGI.OpenAI.BetaResponseProperties? Type4683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAccessProgramsBody? Type4684 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3? Type4684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorVariant1? Type4685 { get; set; } + public global::tryAGI.OpenAI.BetaServiceTierResponsesEnum? Type4685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetails? Type4686 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Truncation? Type4686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetailsReason? Type4687 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Object? Type4687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4688 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Status? Type4688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItem? Type4689 { get; set; } + public global::tryAGI.OpenAI.BetaAccessProgramsBody? Type4689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheOptions? Type4690 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorVariant1? Type4690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheDiagnostics? Type4691 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetails? Type4691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModeration? Type4692 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetailsReason? Type4692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConversation? Type4693 { get; set; } + public global::System.Collections.Generic.IList? Type4693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Input5? Type4694 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItem? Type4694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBody? Type4695 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheOptions? Type4695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBody? Type4696 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheDiagnostics? Type4696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputDiscriminator? Type4697 { get; set; } + public global::tryAGI.OpenAI.BetaModeration? Type4697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputDiscriminatorType? Type4698 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConversation? Type4698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Output9? Type4699 { get; set; } + public global::tryAGI.OpenAI.Input5? Type4699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationOutputDiscriminator? Type4700 { get; set; } + public global::tryAGI.OpenAI.BetaModerationResultBody? Type4700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationOutputDiscriminatorType? Type4701 { get; set; } + public global::tryAGI.OpenAI.BetaModerationErrorBody? Type4701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBodyType? Type4702 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputDiscriminator? Type4702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBodyType? Type4703 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputDiscriminatorType? Type4703 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type4704 { get; set; } + public global::tryAGI.OpenAI.Output9? Type4704 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4705 { get; set; } + public global::tryAGI.OpenAI.BetaModerationOutputDiscriminator? Type4705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputType? Type4706 { get; set; } + public global::tryAGI.OpenAI.BetaModerationOutputDiscriminatorType? Type4706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody? Type4707 { get; set; } + public global::tryAGI.OpenAI.BetaModerationErrorBodyType? Type4707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody? Type4708 { get; set; } + public global::tryAGI.OpenAI.BetaModerationResultBodyType? Type4708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody? Type4709 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type4709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody? Type4710 { get; set; } + public global::System.Collections.Generic.IList? Type4710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminator? Type4711 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputType? Type4711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminatorType? Type4712 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody? Type4712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBodyType? Type4713 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody? Type4713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type4714 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody? Type4714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBodyType? Type4715 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody? Type4715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBodyType? Type4716 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminator? Type4716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCacheMissReasonTypeEnum? Type4717 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminatorType? Type4717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItemDiscriminator? Type4718 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBodyType? Type4718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItemDiscriminatorType? Type4719 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type4719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorCode? Type4720 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBodyType? Type4720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCyberAccessProgramEnum? Type4721 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBodyType? Type4721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptVariant1? Type4722 { get; set; } + public global::tryAGI.OpenAI.BetaCacheMissReasonTypeEnum? Type4722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4723 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItemDiscriminator? Type4723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention? Type4724 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItemDiscriminatorType? Type4724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent? Type4725 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorCode? Type4725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType? Type4726 { get; set; } + public global::tryAGI.OpenAI.BetaCyberAccessProgramEnum? Type4726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent? Type4727 { get; set; } + public global::tryAGI.OpenAI.BetaPromptVariant1? Type4727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEventType? Type4728 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent? Type4729 { get; set; } + public global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention? Type4729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEventType? Type4730 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent? Type4730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent? Type4731 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType? Type4731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEventType? Type4732 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent? Type4732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent? Type4733 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEventType? Type4733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEventType? Type4734 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent? Type4734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent? Type4735 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEventType? Type4735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEventType? Type4736 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent? Type4736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent? Type4737 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEventType? Type4737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEventType? Type4738 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent? Type4738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent? Type4739 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEventType? Type4739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEventType? Type4740 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent? Type4740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent? Type4741 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEventType? Type4741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEventType? Type4742 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent? Type4742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent? Type4743 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEventType? Type4743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEventType? Type4744 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent? Type4744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent? Type4745 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEventType? Type4745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEventType? Type4746 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent? Type4746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent? Type4747 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEventType? Type4747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEventType? Type4748 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent? Type4748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent? Type4749 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEventType? Type4749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEventType? Type4750 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent? Type4750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent? Type4751 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEventType? Type4751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEventType? Type4752 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent? Type4752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent? Type4753 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEventType? Type4753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEventType? Type4754 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent? Type4754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent? Type4755 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEventType? Type4755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEventType? Type4756 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent? Type4756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent? Type4757 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEventType? Type4757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEventType? Type4758 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent? Type4758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent? Type4759 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEventType? Type4759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventType? Type4760 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent? Type4760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventStatus? Type4761 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEventType? Type4761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPart? Type4762 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent? Type4762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPartType? Type4763 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEventType? Type4763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent? Type4764 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent? Type4764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventType? Type4765 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventType? Type4765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPart? Type4766 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventStatus? Type4766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPartType? Type4767 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPart? Type4767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDoneEvent? Type4768 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPartType? Type4768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDoneEventType? Type4769 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent? Type4769 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4770 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventType? Type4770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseLogProb? Type4771 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPart? Type4771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4772 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPartType? Type4772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseLogProbTopLogprob? Type4773 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDoneEvent? Type4773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent? Type4774 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDoneEventType? Type4774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDeltaEventType? Type4775 { get; set; } + public global::System.Collections.Generic.IList? Type4775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent? Type4776 { get; set; } + public global::tryAGI.OpenAI.BetaResponseLogProb? Type4776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDoneEventType? Type4777 { get; set; } + public global::System.Collections.Generic.IList? Type4777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent? Type4778 { get; set; } + public global::tryAGI.OpenAI.BetaResponseLogProbTopLogprob? Type4778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEventType? Type4779 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent? Type4779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent? Type4780 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDeltaEventType? Type4780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEventType? Type4781 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent? Type4781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent? Type4782 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDoneEventType? Type4782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType? Type4783 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent? Type4783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInProgressEvent? Type4784 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEventType? Type4784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInProgressEventType? Type4785 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent? Type4785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent? Type4786 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEventType? Type4786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEventType? Type4787 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent? Type4787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent? Type4788 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType? Type4788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEventType? Type4789 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInProgressEvent? Type4789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaShellCallOutputDelta? Type4790 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInProgressEventType? Type4790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent? Type4791 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent? Type4791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEventType? Type4792 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEventType? Type4792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent? Type4793 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent? Type4793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEventType? Type4794 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEventType? Type4794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent? Type4795 { get; set; } + public global::tryAGI.OpenAI.BetaShellCallOutputDelta? Type4795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEventType? Type4796 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent? Type4796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent? Type4797 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEventType? Type4797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEventType? Type4798 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent? Type4798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent? Type4799 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEventType? Type4799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEventType? Type4800 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent? Type4800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent? Type4801 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEventType? Type4801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEventType? Type4802 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent? Type4802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent? Type4803 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEventType? Type4803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEventType? Type4804 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent? Type4804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent? Type4805 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEventType? Type4805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEventType? Type4806 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent? Type4806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorEvent? Type4807 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEventType? Type4807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorEventType? Type4808 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent? Type4808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCreatedEvent? Type4809 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEventType? Type4809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCreatedEventType? Type4810 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent? Type4810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent? Type4811 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEventType? Type4811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartDoneEventType? Type4812 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorEvent? Type4812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContent? Type4813 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorEventType? Type4813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContentDiscriminator? Type4814 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCreatedEvent? Type4814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContentDiscriminatorType? Type4815 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCreatedEventType? Type4815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent? Type4816 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent? Type4816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartAddedEventType? Type4817 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartDoneEventType? Type4817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompletedEvent? Type4818 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContent? Type4818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompletedEventType? Type4819 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContentDiscriminator? Type4819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent? Type4820 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContentDiscriminatorType? Type4820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEventType? Type4821 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent? Type4821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent? Type4822 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartAddedEventType? Type4822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEventType? Type4823 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompletedEvent? Type4823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent? Type4824 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompletedEventType? Type4824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEventType? Type4825 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent? Type4825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent? Type4826 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEventType? Type4826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEventType? Type4827 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent? Type4827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent? Type4828 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEventType? Type4828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEventType? Type4829 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent? Type4829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent? Type4830 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEventType? Type4830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEventType? Type4831 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent? Type4831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent? Type4832 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEventType? Type4832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEventType? Type4833 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent? Type4833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent? Type4834 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEventType? Type4834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEventType? Type4835 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent? Type4835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent? Type4836 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEventType? Type4836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDoneEventType? Type4837 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent? Type4837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent? Type4838 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEventType? Type4838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDeltaEventType? Type4839 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent? Type4839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseIncompleteEvent? Type4840 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEventType? Type4840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseIncompleteEventType? Type4841 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent? Type4841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFailedEvent? Type4842 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDoneEventType? Type4842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFailedEventType? Type4843 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent? Type4843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent? Type4844 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDeltaEventType? Type4844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEventType? Type4845 { get; set; } + public global::tryAGI.OpenAI.BetaResponseIncompleteEvent? Type4845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent? Type4846 { get; set; } + public global::tryAGI.OpenAI.BetaResponseIncompleteEventType? Type4846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEventType? Type4847 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFailedEvent? Type4847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent? Type4848 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFailedEventType? Type4848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEventType? Type4849 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent? Type4849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEvent? Type4850 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEventType? Type4850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventType? Type4851 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent? Type4851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventSteer? Type4852 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEventType? Type4852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInput? Type4853 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent? Type4853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventError? Type4854 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEventType? Type4854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventErrorType? Type4855 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEvent? Type4855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerErrorCode? Type4856 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventType? Type4856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum? Type4857 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventSteer? Type4857 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4858 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInput? Type4858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInputItem? Type4859 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventError? Type4859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParam? Type4860 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventErrorType? Type4860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminator? Type4861 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerErrorCode? Type4861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminatorType? Type4862 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum? Type4862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamType? Type4863 { get; set; } + public global::System.Collections.Generic.IList? Type4863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamRole? Type4864 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInputItem? Type4864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? Type4865 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParam? Type4865 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4866 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminator? Type4866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentVariant1Item2? Type4867 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminatorType? Type4867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminator? Type4868 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamType? Type4868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminatorType? Type4869 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamRole? Type4869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEvent? Type4870 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? Type4870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEventType? Type4871 { get; set; } + public global::System.Collections.Generic.IList? Type4871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEventSteer? Type4872 { get; set; } + public global::tryAGI.OpenAI.ContentVariant1Item2? Type4872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingReason? Type4873 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminator? Type4873 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4874 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminatorType? Type4874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInput? Type4875 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingEvent? Type4875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type4876 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingEventType? Type4876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type4877 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingEventSteer? Type4877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput? Type4878 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingReason? Type4878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type4879 { get; set; } + public global::System.Collections.Generic.IList? Type4879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput? Type4880 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInput? Type4880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type4881 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type4881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput? Type4882 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type4882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutputType? Type4883 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput? Type4883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type4884 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type4884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type4885 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput? Type4885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput? Type4886 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type4886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputType? Type4887 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput? Type4887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type4888 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutputType? Type4888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse? Type4889 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type4889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type4890 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type4890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminator? Type4891 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput? Type4891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminatorType? Type4892 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputType? Type4892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum? Type4893 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type4893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent? Type4894 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse? Type4894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventType? Type4895 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type4895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventSteer? Type4896 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminator? Type4896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerEvent? Type4897 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminatorType? Type4897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerEventType? Type4898 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum? Type4898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputAudio? Type4899 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent? Type4899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputAudioType? Type4900 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventType? Type4900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudio? Type4901 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventSteer? Type4901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioType? Type4902 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerEvent? Type4902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioInputAudio? Type4903 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerEventType? Type4903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioInputAudioFormat? Type4904 { get; set; } + public global::tryAGI.OpenAI.BetaOutputAudio? Type4904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputParam? Type4905 { get; set; } + public global::tryAGI.OpenAI.BetaOutputAudioType? Type4905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContent? Type4906 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudio? Type4906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaIncludeEnum? Type4907 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioType? Type4907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEvent? Type4908 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioInputAudio? Type4908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4909 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioInputAudioFormat? Type4909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDelta2? Type4910 { get; set; } + public global::tryAGI.OpenAI.BetaInputParam? Type4910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4911 { get; set; } + public global::tryAGI.OpenAI.BetaContent? Type4911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDone2? Type4912 { get; set; } + public global::tryAGI.OpenAI.BetaIncludeEnum? Type4912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4913 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEvent? Type4913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDelta2? Type4914 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4915 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDelta2? Type4915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDone2? Type4916 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2? Type4917 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDone2? Type4917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2? Type4918 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2? Type4919 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDelta2? Type4919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2? Type4920 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2? Type4921 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDone2? Type4921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4922 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2? Type4922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCompactionWsCompacting2? Type4923 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2? Type4923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4924 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2? Type4924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCompleted2? Type4925 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2? Type4925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4926 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2? Type4926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsAdded2? Type4927 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4928 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCompactionWsCompacting2? Type4928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsDone2? Type4929 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4930 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCompleted2? Type4930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCreated2? Type4931 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4932 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsAdded2? Type4932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsCompleted2? Type4933 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4934 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsDone2? Type4934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallInWsProgress2? Type4935 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4936 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCreated2? Type4936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsSearching2? Type4937 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2? Type4938 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsCompleted2? Type4938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4939 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDone2? Type4940 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallInWsProgress2? Type4940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4941 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsAdded2? Type4942 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsSearching2? Type4942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4943 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2? Type4943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDelta2? Type4944 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4945 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDone2? Type4945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDone2? Type4946 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2? Type4947 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsAdded2? Type4947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2? Type4948 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4949 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDelta2? Type4949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseInWsProgress2? Type4950 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4951 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDone2? Type4951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsFailed2? Type4952 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2? Type4952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4953 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2? Type4953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsIncomplete2? Type4954 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4955 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseInWsProgress2? Type4955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsAdded2? Type4956 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4957 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsFailed2? Type4957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsDone2? Type4958 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4959 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsIncomplete2? Type4959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsAdded2? Type4960 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4961 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsAdded2? Type4961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsDone2? Type4962 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4963 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsDone2? Type4963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDelta2? Type4964 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4965 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsAdded2? Type4965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDone2? Type4966 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4967 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsDone2? Type4967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDelta2? Type4968 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4969 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDelta2? Type4969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDone2? Type4970 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4971 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDone2? Type4971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDelta2? Type4972 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4973 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDelta2? Type4973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDone2? Type4974 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4975 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDone2? Type4975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDelta2? Type4976 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4977 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDelta2? Type4977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDone2? Type4978 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4979 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDone2? Type4979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsCompleted2? Type4980 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4981 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDelta2? Type4981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallInWsProgress2? Type4982 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4983 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDone2? Type4983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsSearching2? Type4984 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4985 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsCompleted2? Type4985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsCompleted2? Type4986 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4987 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallInWsProgress2? Type4987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsGenerating2? Type4988 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4989 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsSearching2? Type4989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallInWsProgress2? Type4990 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4991 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsCompleted2? Type4991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallPartialWsImage2? Type4992 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4993 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsGenerating2? Type4993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDelta2? Type4994 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4995 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallInWsProgress2? Type4995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDone2? Type4996 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4997 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallPartialWsImage2? Type4997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsCompleted2? Type4998 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4999 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDelta2? Type4999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsFailed2? Type5000 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5001 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDone2? Type5001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallInWsProgress2? Type5002 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5003 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsCompleted2? Type5003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsCompleted2? Type5004 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5005 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsFailed2? Type5005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsFailed2? Type5006 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5007 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallInWsProgress2? Type5007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsInWsProgress2? Type5008 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5009 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsCompleted2? Type5009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputTextAnnotationWsAdded2? Type5010 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5011 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsFailed2? Type5011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsQueued2? Type5012 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5013 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsInWsProgress2? Type5013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDelta2? Type5014 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5015 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputTextAnnotationWsAdded2? Type5015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDone2? Type5016 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWsError? Type5017 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsQueued2? Type5017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent? Type5018 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent? Type5019 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDelta2? Type5019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminator? Type5020 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminatorType? Type5021 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDone2? Type5021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventType? Type5022 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWsError? Type5022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventError? Type5023 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent? Type5023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventErrorCode? Type5024 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent? Type5024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectCreatedEventType? Type5025 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminator? Type5025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWsErrorType? Type5026 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminatorType? Type5026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaErrorPayload? Type5027 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventType? Type5027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEvent? Type5028 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventError? Type5028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2? Type5029 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventErrorCode? Type5029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEvent? Type5030 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectCreatedEventType? Type5030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate? Type5031 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWsErrorType? Type5031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectEvent? Type5032 { get; set; } + public global::tryAGI.OpenAI.BetaErrorPayload? Type5032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminator? Type5033 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEvent? Type5033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminatorType? Type5034 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2? Type5034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectEventType? Type5035 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEvent? Type5035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1? Type5036 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate? Type5036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type? Type5037 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectEvent? Type5037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponse? Type5038 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminator? Type5038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponseProperties? Type5039 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminatorType? Type5039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseVariant3? Type5040 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectEventType? Type5040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAccessProgramsParam? Type5041 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1? Type5041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsePromptCacheOptionsParam? Type5042 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type? Type5042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation? Type5043 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponse? Type5043 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5044 { get; set; } + public global::tryAGI.OpenAI.BetaCreateModelResponseProperties? Type5044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationParam? Type5045 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseVariant3? Type5045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1? Type5046 { get; set; } + public global::tryAGI.OpenAI.BetaAccessProgramsParam? Type5046 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5047 { get; set; } + public global::tryAGI.OpenAI.BetaResponsePromptCacheOptionsParam? Type5047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContextManagementParam? Type5048 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation? Type5048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentParam? Type5049 { get; set; } + public global::System.Collections.Generic.IList? Type5049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationPolicyParam? Type5050 { get; set; } + public global::tryAGI.OpenAI.BetaModerationParam? Type5050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationConfigParam? Type5051 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1? Type5051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationMode? Type5052 { get; set; } + public global::System.Collections.Generic.IList? Type5052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2? Type5053 { get; set; } + public global::tryAGI.OpenAI.BetaContextManagementParam? Type5053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEvent? Type5054 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentParam? Type5054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminator? Type5055 { get; set; } + public global::tryAGI.OpenAI.BetaModerationPolicyParam? Type5055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminatorType? Type5056 { get; set; } + public global::tryAGI.OpenAI.BetaModerationConfigParam? Type5056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type5057 { get; set; } + public global::tryAGI.OpenAI.BetaModerationMode? Type5057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type5058 { get; set; } + public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2? Type5058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEvalRequest? Type5059 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEvent? Type5059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type5060 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminator? Type5060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsOrder? Type5061 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminatorType? Type5061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type5062 { get; set; } + public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type5062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type5063 { get; set; } + public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type5063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainersOrder? Type5064 { get; set; } + public global::tryAGI.OpenAI.UpdateEvalRequest? Type5064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainerFilesOrder? Type5065 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type5065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListConversationItemsOrder? Type5066 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsOrder? Type5066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrder? Type5067 { get; set; } + public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type5067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrderBy? Type5068 { get; set; } + public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type5068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsOrder? Type5069 { get; set; } + public global::tryAGI.OpenAI.ListContainersOrder? Type5069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsStatus? Type5070 { get; set; } + public global::tryAGI.OpenAI.ListContainerFilesOrder? Type5070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type5071 { get; set; } + public global::tryAGI.OpenAI.ListConversationItemsOrder? Type5071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type5072 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrder? Type5072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesOrder? Type5073 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrderBy? Type5073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type5074 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsOrder? Type5074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type5075 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsStatus? Type5075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type5076 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type5076 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5077 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type5077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type5078 { get; set; } + public global::tryAGI.OpenAI.ListFilesOrder? Type5078 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5079 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type5079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type5080 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type5080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type5081 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type5081 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5082 { get; set; } + public global::System.Collections.Generic.IList? Type5082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type5083 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type5083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupsOrder? Type5084 { get; set; } + public global::System.Collections.Generic.IList? Type5084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type5085 { get; set; } + public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type5085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupUsersOrder? Type5086 { get; set; } + public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type5086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectApiKeysOwnerProjectAccess? Type5087 { get; set; } + public global::System.Collections.Generic.IList? Type5087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type5088 { get; set; } + public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type5088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type5089 { get; set; } + public global::tryAGI.OpenAI.ListGroupsOrder? Type5089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RetrieveProjectGroupGroupType? Type5090 { get; set; } + public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type5090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectSpendAlertsOrder? Type5091 { get; set; } + public global::tryAGI.OpenAI.ListGroupUsersOrder? Type5091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRolesOrder? Type5092 { get; set; } + public global::tryAGI.OpenAI.ListProjectApiKeysOwnerProjectAccess? Type5092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder? Type5093 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type5093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type5094 { get; set; } + public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type5094 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5095 { get; set; } + public global::tryAGI.OpenAI.RetrieveProjectGroupGroupType? Type5095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type5096 { get; set; } + public global::tryAGI.OpenAI.ListProjectSpendAlertsOrder? Type5096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type5097 { get; set; } + public global::tryAGI.OpenAI.ListRolesOrder? Type5097 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5098 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder? Type5098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type5099 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type5099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type5100 { get; set; } + public global::System.Collections.Generic.IList? Type5100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5101 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type5101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type5102 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type5102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type5103 { get; set; } + public global::System.Collections.Generic.IList? Type5103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5104 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type5104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type5105 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type5105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type5106 { get; set; } + public global::System.Collections.Generic.IList? Type5106 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5107 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type5107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type5108 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type5108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsBucketWidth? Type5109 { get; set; } + public global::System.Collections.Generic.IList? Type5109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5110 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type5110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsGroupByItem? Type5111 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type5111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type5112 { get; set; } + public global::System.Collections.Generic.IList? Type5112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5113 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type5113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSource? Type5114 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsBucketWidth? Type5114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5115 { get; set; } + public global::System.Collections.Generic.IList? Type5115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSize? Type5116 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsGroupByItem? Type5116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5117 { get; set; } + public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type5117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type5118 { get; set; } + public global::System.Collections.Generic.IList? Type5118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type5119 { get; set; } + public global::tryAGI.OpenAI.UsageImagesSource? Type5119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5120 { get; set; } + public global::System.Collections.Generic.IList? Type5120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type5121 { get; set; } + public global::tryAGI.OpenAI.UsageImagesSize? Type5121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type5122 { get; set; } + public global::System.Collections.Generic.IList? Type5122 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5123 { get; set; } + public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type5123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type5124 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type5124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsBucketWidth? Type5125 { get; set; } + public global::System.Collections.Generic.IList? Type5125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5126 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type5126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsContextLevel? Type5127 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type5127 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5128 { get; set; } + public global::System.Collections.Generic.IList? Type5128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsGroupByItem? Type5129 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type5129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type5130 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsBucketWidth? Type5130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type5131 { get; set; } + public global::System.Collections.Generic.IList? Type5131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectRolesOrder? Type5132 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsContextLevel? Type5132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type5133 { get; set; } + public global::System.Collections.Generic.IList? Type5133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListInputItemsOrder? Type5134 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsGroupByItem? Type5134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesOrder? Type5135 { get; set; } + public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type5135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsOrder? Type5136 { get; set; } + public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type5136 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5137 { get; set; } + public global::tryAGI.OpenAI.ListProjectRolesOrder? Type5137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunIncludeItem? Type5138 { get; set; } + public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type5138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsOrder? Type5139 { get; set; } + public global::tryAGI.OpenAI.ListInputItemsOrder? Type5139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5140 { get; set; } + public global::tryAGI.OpenAI.ListMessagesOrder? Type5140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type5141 { get; set; } + public global::tryAGI.OpenAI.ListRunsOrder? Type5141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5142 { get; set; } + public global::System.Collections.Generic.IList? Type5142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type5143 { get; set; } + public global::tryAGI.OpenAI.CreateRunIncludeItem? Type5143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresOrder? Type5144 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsOrder? Type5144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type5145 { get; set; } + public global::System.Collections.Generic.IList? Type5145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type5146 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type5146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type5147 { get; set; } + public global::System.Collections.Generic.IList? Type5147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type5148 { get; set; } + public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type5148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5149 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoresOrder? Type5149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem? Type5150 { get; set; } + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type5150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5151 { get; set; } + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type5151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem? Type5152 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type5152 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5153 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type5153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem? Type5154 { get; set; } + public global::System.Collections.Generic.IList? Type5154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5155 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem? Type5155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem? Type5156 { get; set; } + public global::System.Collections.Generic.IList? Type5156 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5157 { get; set; } + public global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem? Type5157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem? Type5158 { get; set; } + public global::System.Collections.Generic.IList? Type5158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaListInputItemsOrder? Type5159 { get; set; } + public global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem? Type5159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5160 { get; set; } + public global::System.Collections.Generic.IList? Type5160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem? Type5161 { get; set; } + public global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem? Type5161 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5162 { get; set; } + public global::System.Collections.Generic.IList? Type5162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem? Type5163 { get; set; } + public global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem? Type5163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type5164 { get; set; } + public global::tryAGI.OpenAI.BetaListInputItemsOrder? Type5164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalResponse? Type5165 { get; set; } + public global::System.Collections.Generic.IList? Type5165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type5166 { get; set; } + public global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem? Type5166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type5167 { get; set; } + public global::System.Collections.Generic.IList? Type5167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type5168 { get; set; } + public global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem? Type5168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponse? Type5169 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type5169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject? Type5170 { get; set; } + public global::tryAGI.OpenAI.DeleteEvalResponse? Type5170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5171 { get; set; } + public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type5171 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type5172 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type5173 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponse? Type5174 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject? Type5175 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5176 { get; set; } /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Live.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Live.JsonSerializerContext.g.cs index a5e9047da..d1b50fb56 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Live.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Live.JsonSerializerContext.g.cs @@ -24,6 +24,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveCallAcceptRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveCallAcceptSession))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsLive), TypeInfoPropertyName = "ModelIdsLive2")] @@ -45,6 +48,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveWebRTCTransportType), TypeInfoPropertyName = "LiveWebRTCTransportType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsLiveEnum), TypeInfoPropertyName = "ModelIdsLiveEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveCustomVoiceParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?, global::tryAGI.OpenAI.LiveCustomVoiceParam>), TypeInfoPropertyName = "OneOfAnyOfStringLiveInitialSessionAudioOutputParamVoiceVariant1LiveCustomVoiceParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringLiveInitialSessionAudioOutputParamVoiceVariant12")] @@ -119,6 +125,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveCallAcceptSessionType?), TypeInfoPropertyName = "NullableLiveCallAcceptSessionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveWebRTCTransportType?), TypeInfoPropertyName = "NullableLiveWebRTCTransportType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsLiveEnum?), TypeInfoPropertyName = "NullableModelIdsLiveEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?, global::tryAGI.OpenAI.LiveCustomVoiceParam>?), TypeInfoPropertyName = "NullableOneOfAnyOfStringLiveInitialSessionAudioOutputParamVoiceVariant1LiveCustomVoiceParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringLiveInitialSessionAudioOutputParamVoiceVariant12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1?), TypeInfoPropertyName = "NullableLiveInitialSessionAudioOutputParamVoiceVariant12")] @@ -212,6 +220,7 @@ private LiveSourceGenerationContext(global::System.Text.Json.JsonSerializerOptio public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ModelIdsLiveJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem14JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DelegationVariant1JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContentItem4JsonConverter()); @@ -222,6 +231,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter?, global::tryAGI.OpenAI.LiveCustomVoiceParam>()); @@ -271,6 +281,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ModelIdsLiveEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1) || typeToConvert == typeof(global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1?) @@ -426,6 +440,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ModelIdsLiveEnumNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1)) { return new global::tryAGI.OpenAI.JsonConverters.LiveInitialSessionAudioOutputParamVoiceVariant1JsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.AcceptLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.AcceptLiveSession.g.cs index 8f6bfcbe4..8097d1f3e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.AcceptLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.AcceptLiveSession.g.cs @@ -339,6 +339,228 @@ await AcceptLiveSessionAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid request body or headers. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session or call was not found or is unavailable for this operation. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session or call can no longer accept this operation. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session could not start because a rate or quota limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error occurred. The response body is plain text. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + string? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.CreateLive.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.CreateLive.g.cs index 510157307..760d8759c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.CreateLive.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.CreateLive.g.cs @@ -337,6 +337,191 @@ partial void ProcessCreateLiveResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid Live session request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The Live session request exceeds the supported size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session could not start because a rate or quota limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error occurred. The response body is plain text. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + string? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.DownloadLiveRecording.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.DownloadLiveRecording.g.cs index f3da105e2..028e0d267 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.DownloadLiveRecording.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.DownloadLiveRecording.g.cs @@ -330,6 +330,191 @@ partial void ProcessDownloadLiveRecordingResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid Live session ID. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or the stored session recording was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The stored session audio could not be exported. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio export is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } try { @@ -647,6 +832,191 @@ partial void ProcessDownloadLiveRecordingResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid Live session ID. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or the stored session recording was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The stored session audio could not be exported. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The audio export is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ForkLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ForkLiveSession.g.cs index 21699ef9e..31b06fdc7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ForkLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ForkLiveSession.g.cs @@ -346,6 +346,228 @@ partial void ProcessForkLiveSessionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid Live session request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Invalid session ID. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + string? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The Live session request exceeds the supported size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session could not start because a rate or quota limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error occurred. The response body is plain text. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + string? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.HangupLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.HangupLiveSession.g.cs index 855f3b045..1e3736d28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.HangupLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.HangupLiveSession.g.cs @@ -319,6 +319,43 @@ await HangupLiveSessionAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The session or call was not found or is unavailable for this operation. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ReferLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ReferLiveSession.g.cs index 10febaa85..3adf298bb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ReferLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ReferLiveSession.g.cs @@ -339,6 +339,117 @@ await ReferLiveSessionAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid request body or headers. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session or call was not found or is unavailable for this operation. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error occurred. The response body is plain text. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + string? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.RejectLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.RejectLiveSession.g.cs index 24c39c622..040ab0ad8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.RejectLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.RejectLiveSession.g.cs @@ -339,6 +339,154 @@ await RejectLiveSessionAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid request body or headers. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session or call was not found or is unavailable for this operation. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session or call can no longer accept this operation. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error occurred. The response body is plain text. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + string? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaErrorResponse.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaErrorResponse.Json.g.cs new file mode 100644 index 000000000..4e55fc9c9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaErrorResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class BetaErrorResponse + { + /// + /// 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.BetaErrorResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.BetaErrorResponse), + jsonSerializerContext) as global::tryAGI.OpenAI.BetaErrorResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaErrorResponse? 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.BetaErrorResponse? 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.BetaErrorResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaErrorResponse; + } + + /// + /// 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.BetaErrorResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaErrorResponse.g.cs new file mode 100644 index 000000000..919744f61 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaErrorResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class BetaErrorResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.BetaError Error { 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BetaErrorResponse( + global::tryAGI.OpenAI.BetaError error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public BetaErrorResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseStreamOptionsVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseStreamOptionsVariant1.g.cs index 1a4eced33..484608871 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseStreamOptionsVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseStreamOptionsVariant1.g.cs @@ -4,8 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Options for streaming responses. Only set this when you set `stream: true`.
- /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// Options for streaming responses. Only set this when you set `stream: true`. ///
public sealed partial class BetaResponseStreamOptionsVariant1 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEnvironmentTemplateParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEnvironmentTemplateParams.g.cs index c16095365..0e4c09bda 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEnvironmentTemplateParams.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEnvironmentTemplateParams.g.cs @@ -21,7 +21,7 @@ public sealed partial class CreateEnvironmentTemplateParams public global::System.Collections.Generic.IList? SetupCommands { get; set; } /// - /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for alpha/beta requests. + /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests. /// [global::System.Text.Json.Serialization.JsonPropertyName("network")] public global::tryAGI.OpenAI.NetworkPolicyParam? Network { get; set; } @@ -78,7 +78,7 @@ public sealed partial class CreateEnvironmentTemplateParams /// Ordered, confidential setup commands. Command bodies are never returned. /// /// - /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for alpha/beta requests. + /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests. /// /// /// Environment variables made available to the agent. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequest.g.cs index 91739171c..6f69b18f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequest.g.cs @@ -33,9 +33,9 @@ public sealed partial class CreateSpeechRequest /// The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice object with an `id`, for example `{ "id": "voice_1234" }`. Previews of the voices are available in the [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options). ///
[global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoiceJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.VoiceIdsOrCustomVoice Voice { get; set; } + public required global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2> Voice { get; set; } /// /// The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`.
@@ -99,7 +99,7 @@ public sealed partial class CreateSpeechRequest public CreateSpeechRequest( global::tryAGI.OpenAI.AnyOf model, string input, - global::tryAGI.OpenAI.VoiceIdsOrCustomVoice voice, + global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2> voice, string? instructions, global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? responseFormat, double? speed, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequestVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequestVoice.g.cs new file mode 100644 index 000000000..5ee0b2635 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequestVoice.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CreateSpeechRequestVoice + { + /// + /// + /// + Fable, + /// + /// + /// + Nova, + /// + /// + /// + Onyx, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateSpeechRequestVoiceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateSpeechRequestVoice value) + { + return value switch + { + CreateSpeechRequestVoice.Fable => "fable", + CreateSpeechRequestVoice.Nova => "nova", + CreateSpeechRequestVoice.Onyx => "onyx", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateSpeechRequestVoice? ToEnum(string value) + { + return value switch + { + "fable" => CreateSpeechRequestVoice.Fable, + "nova" => CreateSpeechRequestVoice.Nova, + "onyx" => CreateSpeechRequestVoice.Onyx, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequestVoice2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequestVoice2.Json.g.cs new file mode 100644 index 000000000..47f378dfa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequestVoice2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateSpeechRequestVoice2 + { + /// + /// 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.CreateSpeechRequestVoice2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateSpeechRequestVoice2), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateSpeechRequestVoice2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.CreateSpeechRequestVoice2? 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.CreateSpeechRequestVoice2? 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.CreateSpeechRequestVoice2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateSpeechRequestVoice2; + } + + /// + /// 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.CreateSpeechRequestVoice2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequestVoice2.g.cs new file mode 100644 index 000000000..844a6d38a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequestVoice2.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Custom voice reference. + /// + public sealed partial class CreateSpeechRequestVoice2 + { + /// + /// The custom voice ID, e.g. `voice_1234`.
+ /// Example: voice_1234 + ///
+ /// voice_1234 + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { 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 custom voice ID, e.g. `voice_1234`.
+ /// Example: voice_1234 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSpeechRequestVoice2( + string id) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSpeechRequestVoice2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentParamOpenaiHosted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentParamOpenaiHosted.g.cs index 40015a4a2..f99169b28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentParamOpenaiHosted.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentParamOpenaiHosted.g.cs @@ -30,7 +30,7 @@ public sealed partial class EnvironmentParamOpenaiHosted public global::System.Collections.Generic.IList? SetupCommands { get; set; } /// - /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for alpha/beta requests. + /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests. /// [global::System.Text.Json.Serialization.JsonPropertyName("network")] public global::tryAGI.OpenAI.NetworkPolicyParam? Network { get; set; } @@ -87,7 +87,7 @@ public sealed partial class EnvironmentParamOpenaiHosted /// Ordered, confidential setup commands. Command bodies are never returned. /// /// - /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for alpha/beta requests. + /// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests. /// /// /// Environment variables made available to the agent. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfig.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfig.g.cs index 41ff6e8b1..a8d5413fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfig.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfig.g.cs @@ -23,35 +23,9 @@ public sealed partial class EvalCustomDataSourceConfig /// /// The json schema for the run data source items.
/// Learn how to build JSON schemas [here](https://json-schema.org/).
- /// Example: {
- /// "type": "object",
- /// "properties": {
- /// "item": {
- /// "type": "object",
- /// "properties": {
- /// "label": {"type": "string"},
- /// },
- /// "required": ["label"]
- /// }
- /// },
- /// "required": ["item"]
- /// } + /// Example: {"type":"object","properties":{"item":{"type":"object","properties":{"label":{"type":"string"}},"required":["label"]}},"required":["item"]} ///
- /// - /// {
- /// "type": "object",
- /// "properties": {
- /// "item": {
- /// "type": "object",
- /// "properties": {
- /// "label": {"type": "string"},
- /// },
- /// "required": ["label"]
- /// }
- /// },
- /// "required": ["item"]
- /// } - ///
+ /// {"type":"object","properties":{"item":{"type":"object","properties":{"label":{"type":"string"}},"required":["label"]}},"required":["item"]} [global::System.Text.Json.Serialization.JsonPropertyName("schema")] [global::System.Text.Json.Serialization.JsonRequired] public required object Schema { get; set; } @@ -68,19 +42,7 @@ public sealed partial class EvalCustomDataSourceConfig /// /// The json schema for the run data source items.
/// Learn how to build JSON schemas [here](https://json-schema.org/).
- /// Example: {
- /// "type": "object",
- /// "properties": {
- /// "item": {
- /// "type": "object",
- /// "properties": {
- /// "label": {"type": "string"},
- /// },
- /// "required": ["label"]
- /// }
- /// },
- /// "required": ["item"]
- /// } + /// Example: {"type":"object","properties":{"item":{"type":"object","properties":{"label":{"type":"string"}},"required":["label"]}},"required":["item"]} /// /// /// The type of data source. Always `custom`.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfigSchema.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfigSchema.g.cs index 7d6d3e9d6..1e0c201cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfigSchema.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfigSchema.g.cs @@ -6,19 +6,7 @@ namespace tryAGI.OpenAI /// /// The json schema for the run data source items.
/// Learn how to build JSON schemas [here](https://json-schema.org/).
- /// Example: {
- /// "type": "object",
- /// "properties": {
- /// "item": {
- /// "type": "object",
- /// "properties": {
- /// "label": {"type": "string"},
- /// },
- /// "required": ["label"]
- /// }
- /// },
- /// "required": ["item"]
- /// } + /// Example: {"type":"object","properties":{"item":{"type":"object","properties":{"label":{"type":"string"}},"required":["label"]}},"required":["item"]} ///
public sealed partial class EvalCustomDataSourceConfigSchema { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.JsonSerializerContext.g.cs index e04491fa2..4296cf793 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.JsonSerializerContext.g.cs @@ -23,16 +23,27 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteModelResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListModelsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListModelsResponseObject), TypeInfoPropertyName = "ListModelsResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Model18))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelObject), TypeInfoPropertyName = "ModelObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListModelsResponseObject?), TypeInfoPropertyName = "NullableListModelsResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelObject?), TypeInfoPropertyName = "NullableModelObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ModelsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -78,11 +89,13 @@ private ModelsSourceGenerationContext(global::System.Text.Json.JsonSerializerOpt [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>()); @@ -120,7 +133,11 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ModelObject) - || typeToConvert == typeof(global::tryAGI.OpenAI.ModelObject?); + || typeToConvert == typeof(global::tryAGI.OpenAI.ModelObject?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -146,6 +163,16 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::tryAGI.OpenAI.JsonConverters.ModelObjectNullableJsonConverter(); } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamOptionsVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamOptionsVariant1.g.cs index c8435c44b..bc6cb61cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamOptionsVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamOptionsVariant1.g.cs @@ -4,8 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Options for streaming responses. Only set this when you set `stream: true`.
- /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// Options for streaming responses. Only set this when you set `stream: true`. ///
public sealed partial class ResponseStreamOptionsVariant1 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTierParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTierParam.g.cs index f7aedbc4c..45b987384 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTierParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTierParam.g.cs @@ -28,6 +28,10 @@ public enum ServiceTierParam /// ///
Priority, + /// + /// + /// + Ultrafast, } /// @@ -47,6 +51,7 @@ public static string ToValueString(this ServiceTierParam value) ServiceTierParam.Fast => "fast", ServiceTierParam.Flex => "flex", ServiceTierParam.Priority => "priority", + ServiceTierParam.Ultrafast => "ultrafast", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -62,6 +67,7 @@ public static string ToValueString(this ServiceTierParam value) "fast" => ServiceTierParam.Fast, "flex" => ServiceTierParam.Flex, "priority" => ServiceTierParam.Priority, + "ultrafast" => ServiceTierParam.Ultrafast, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTierResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTierResource.g.cs index d83beac16..d14b1652b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTierResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTierResource.g.cs @@ -28,6 +28,10 @@ public enum ServiceTierResource /// /// Priority, + /// + /// + /// + Ultrafast, } /// @@ -47,6 +51,7 @@ public static string ToValueString(this ServiceTierResource value) ServiceTierResource.Fast => "fast", ServiceTierResource.Flex => "flex", ServiceTierResource.Priority => "priority", + ServiceTierResource.Ultrafast => "ultrafast", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -62,6 +67,7 @@ public static string ToValueString(this ServiceTierResource value) "fast" => ServiceTierResource.Fast, "flex" => ServiceTierResource.Flex, "priority" => ServiceTierResource.Priority, + "ultrafast" => ServiceTierResource.Ultrafast, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionTurnErrorCodeResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionTurnErrorCodeResource.g.cs index 810f49fb0..e5d4002d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionTurnErrorCodeResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionTurnErrorCodeResource.g.cs @@ -47,6 +47,10 @@ public enum SessionTurnErrorCodeResource /// /// /// + MisalignmentPolicyViolation, + /// + /// + /// RateLimitExceeded, /// /// @@ -99,6 +103,7 @@ public static string ToValueString(this SessionTurnErrorCodeResource value) SessionTurnErrorCodeResource.ExecutorVersionIncompatible => "executor_version_incompatible", SessionTurnErrorCodeResource.InternalError => "internal_error", SessionTurnErrorCodeResource.InvalidRequest => "invalid_request", + SessionTurnErrorCodeResource.MisalignmentPolicyViolation => "misalignment_policy_violation", SessionTurnErrorCodeResource.RateLimitExceeded => "rate_limit_exceeded", SessionTurnErrorCodeResource.RequestTimeout => "request_timeout", SessionTurnErrorCodeResource.ResourceNotFound => "resource_not_found", @@ -126,6 +131,7 @@ public static string ToValueString(this SessionTurnErrorCodeResource value) "executor_version_incompatible" => SessionTurnErrorCodeResource.ExecutorVersionIncompatible, "internal_error" => SessionTurnErrorCodeResource.InternalError, "invalid_request" => SessionTurnErrorCodeResource.InvalidRequest, + "misalignment_policy_violation" => SessionTurnErrorCodeResource.MisalignmentPolicyViolation, "rate_limit_exceeded" => SessionTurnErrorCodeResource.RateLimitExceeded, "request_timeout" => SessionTurnErrorCodeResource.RequestTimeout, "resource_not_found" => SessionTurnErrorCodeResource.ResourceNotFound, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs index 75a4489dc..03c2c7d13 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs @@ -13,8 +13,7 @@ namespace tryAGI.OpenAI public readonly partial struct TranscriptionChunkingStrategy : global::System.IEquatable { /// - /// Automatically set chunking parameters based on the audio. Must be set to `"auto"`.
- /// Default Value: [auto] + /// Automatically set chunking parameters based on the audio. Must be set to `"auto"`. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Enum { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategyEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategyEnum.g.cs index b5701d5cc..450df6523 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategyEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategyEnum.g.cs @@ -4,8 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Automatically set chunking parameters based on the audio. Must be set to `"auto"`.
- /// Default Value: [auto] + /// Automatically set chunking parameters based on the audio. Must be set to `"auto"`. ///
public enum TranscriptionChunkingStrategyEnum { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateEnvironmentTemplateParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateEnvironmentTemplateParams.g.cs index a7d5e248f..574434f99 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateEnvironmentTemplateParams.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateEnvironmentTemplateParams.g.cs @@ -27,7 +27,7 @@ public sealed partial class UpdateEnvironmentTemplateParams public global::System.Collections.Generic.IList? SetupCommands { get; set; } /// - /// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for alpha/beta requests. + /// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for beta requests. /// [global::System.Text.Json.Serialization.JsonPropertyName("network")] public global::tryAGI.OpenAI.NetworkPolicyParam? Network { get; set; } @@ -81,7 +81,7 @@ public sealed partial class UpdateEnvironmentTemplateParams /// Replacement confidential setup commands, never included in returned resources. /// /// - /// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for alpha/beta requests. + /// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for beta requests. /// /// /// Replacement confidential environment values. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs index a23fc01b6..0fad6beba 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs @@ -330,6 +330,80 @@ partial void ProcessDeleteModelResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Insufficient permissions to delete the model. Model deletion requires the Owner role in the organization and a credential that permits deletion. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The model was not found, is not accessible, or cannot be deleted through this endpoint. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs index 69f11f978..88d77a00b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs @@ -317,6 +317,43 @@ partial void ProcessListModelsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The API credential does not have permission to list models. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs index 6134780a7..c35fc2c20 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs @@ -330,6 +330,80 @@ partial void ProcessRetrieveModelResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The API credential does not have permission to retrieve models. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The model was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs index 078bb36e3..1ad6feed7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs @@ -339,6 +339,80 @@ partial void ProcessCreateModerationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid moderation input or unsupported request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Access to the requested moderation model was denied. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { @@ -376,6 +450,43 @@ partial void ProcessCreateModerationResponseContent( h => h.Key, h => h.Value)); } + // The moderation request could not be processed due to an internal error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay. if ((int)__response.StatusCode == 503) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs index d685d290b..75c5117bf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs @@ -339,6 +339,117 @@ partial void ProcessAdminApiKeysCreateResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The API key creation request is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The created API key could not be found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs index 51c9bf366..c9c5ca86a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs @@ -332,6 +332,80 @@ partial void ProcessAdminApiKeysDeleteResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The API key was not found or is not available to this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs index 9aa6c98a4..8c3c9cd58 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs @@ -332,6 +332,80 @@ partial void ProcessAdminApiKeysGetResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The API key was not found or is not available to this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs index 693a67976..81aa91aa8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs @@ -367,6 +367,80 @@ partial void ProcessAdminApiKeysListResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The API key listing parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSessionMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSessionMethod.g.cs index 0bd26d79a..07d28d5ff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSessionMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSessionMethod.g.cs @@ -332,6 +332,117 @@ partial void ProcessCancelChatSessionMethodResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request is invalid or the required ChatKit beta header is missing or invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatSessionMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatSessionMethod.g.cs index b11ad6c3c..79bb4ca77 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatSessionMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatSessionMethod.g.cs @@ -337,6 +337,117 @@ partial void ProcessCreateChatSessionMethodResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request is invalid or the required ChatKit beta header is missing or invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested workflow or workflow version was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs index 3f05ce40a..95cf7949c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs @@ -337,6 +337,43 @@ partial void ProcessCreateContainerResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The container configuration or supplied skill is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs index 85c00d509..72ae95009 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs @@ -397,6 +397,80 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file input is invalid, or the container file limit would be exceeded. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The container was not found or has expired. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateWebhookEndpoint.g.cs index 6fb49a79e..d2ad3a331 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateWebhookEndpoint.g.cs @@ -337,6 +337,43 @@ partial void ProcessCreateWebhookEndpointResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The webhook endpoint parameters are invalid or the endpoint cannot be created with the requested URL or event types. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs index afb7c71b8..d978c7f4b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs @@ -365,6 +365,191 @@ partial void ProcessCreateanAPIkeyforaserviceaccountResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The API key request is invalid or the project is archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or service account was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The service account already has an API key and cannot create another. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createanexternalstorageconfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createanexternalstorageconfiguration.g.cs index b4795309e..984cf42e3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createanexternalstorageconfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createanexternalstorageconfiguration.g.cs @@ -339,6 +339,154 @@ partial void ProcessCreateanexternalstorageconfigurationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The external storage request is invalid or the organization or project does not support it. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization, project, or external storage was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // External storage registration is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createcontentprovenancecheck.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createcontentprovenancecheck.g.cs index 4cade393a..7d6a296b3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createcontentprovenancecheck.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createcontentprovenancecheck.g.cs @@ -375,6 +375,80 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file is missing, invalid, unsupported, too large, or rejected by safety checks. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Content provenance checks are unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -412,6 +486,80 @@ request.Filename is null h => h.Key, h => h.Value)); } + // The content provenance check could not be completed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Content provenance inspection is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -860,6 +1008,80 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file is missing, invalid, unsupported, too large, or rejected by safety checks. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Content provenance checks are unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -897,6 +1119,80 @@ request.Filename is null h => h.Key, h => h.Value)); } + // The content provenance check could not be completed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Content provenance inspection is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -1305,6 +1601,80 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file is missing, invalid, unsupported, too large, or rejected by safety checks. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Content provenance checks are unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -1342,6 +1712,80 @@ request.Filename is null h => h.Key, h => h.Value)); } + // The content provenance check could not be completed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Content provenance inspection is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs index 50adf7077..46c619e76 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs @@ -319,6 +319,43 @@ await DeleteContainerAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The container was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs index 053f8e04c..7593241b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs @@ -328,6 +328,43 @@ await DeleteContainerFileAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The container was not found or has expired, or the file was not found in the container. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteThreadMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteThreadMethod.g.cs index be017736d..d7be0f0ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteThreadMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteThreadMethod.g.cs @@ -330,6 +330,117 @@ partial void ProcessDeleteThreadMethodResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request is invalid or the required ChatKit beta header is missing or invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The thread was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteWebhookEndpoint.g.cs index 5661cfcf6..643764e69 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteWebhookEndpoint.g.cs @@ -330,6 +330,80 @@ partial void ProcessDeleteWebhookEndpointResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The webhook endpoint was not found in the authenticated project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteanexternalstorageconfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteanexternalstorageconfiguration.g.cs index e02789d0a..40d198da4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteanexternalstorageconfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteanexternalstorageconfiguration.g.cs @@ -332,6 +332,117 @@ partial void ProcessDeleteanexternalstorageconfigurationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The organization is not enabled for external storage. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization or external storage was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { 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 index 7a93283b4..ff36dbe73 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteorganizationspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteorganizationspendlimit.g.cs @@ -319,6 +319,80 @@ partial void ProcessDeleteorganizationspendlimitResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization does not have a hard spend limit. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { 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 index 4a14acc3e..5eb0cc7a0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteprojectspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteprojectspendlimit.g.cs @@ -332,6 +332,117 @@ partial void ProcessDeleteprojectspendlimitResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project ID is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found or does not have a hard spend limit. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetThreadMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetThreadMethod.g.cs index 79833bc71..f033470e9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetThreadMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetThreadMethod.g.cs @@ -330,6 +330,117 @@ partial void ProcessGetThreadMethodResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request is invalid or the required ChatKit beta header is missing or invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The thread was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getanexternalstorageconfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getanexternalstorageconfiguration.g.cs index a1f911ae2..d1ebf111c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getanexternalstorageconfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getanexternalstorageconfiguration.g.cs @@ -332,6 +332,117 @@ partial void ProcessGetanexternalstorageconfigurationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The organization is not enabled for external storage. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization or external storage was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getorganizationspendlimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getorganizationspendlimit.g.cs index 8bb3cce2a..5a0332bbe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getorganizationspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getorganizationspendlimit.g.cs @@ -319,6 +319,80 @@ partial void ProcessGetorganizationspendlimitResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization does not have a hard spend limit. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectsafetyalert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectsafetyalert.g.cs index f37b3e111..0a7fd7608 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectsafetyalert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectsafetyalert.g.cs @@ -330,6 +330,154 @@ partial void ProcessGetprojectsafetyalertResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The safety alert ID is too long. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The safety alert was not found or is not accessible to the caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The safety alert lookup is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectspendlimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectspendlimit.g.cs index 67ad2a7ad..8f8bfe783 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectspendlimit.g.cs @@ -332,6 +332,117 @@ partial void ProcessGetprojectspendlimitResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project ID is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found or does not have a hard spend limit. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getsafetycase.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getsafetycase.g.cs index ef3d64c62..3fdf4c09d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getsafetycase.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getsafetycase.g.cs @@ -330,6 +330,191 @@ partial void ProcessGetsafetycaseResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The safety case ID is too long. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The safety case was not found or is not accessible to the caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The safety case lookup failed. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The safety case lookup is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs index 58b2b6351..a4382b300 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs @@ -366,6 +366,43 @@ partial void ProcessListContainerFilesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The container was not found or has expired, or the file specified by `after` was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs index 0bfc03ac6..70cd8a208 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs @@ -367,6 +367,43 @@ partial void ProcessListContainersResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The container specified by `after` was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadItemsMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadItemsMethod.g.cs index 56cda1f18..b680e9f55 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadItemsMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadItemsMethod.g.cs @@ -380,6 +380,117 @@ partial void ProcessListThreadItemsMethodResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request is invalid or the required ChatKit beta header is missing or invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The thread was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadsMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadsMethod.g.cs index acb3da8d3..397328728 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadsMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadsMethod.g.cs @@ -381,6 +381,117 @@ partial void ProcessListThreadsMethodResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request is invalid or the required ChatKit beta header is missing or invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The thread specified by after was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request rate limit has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEndpoints.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEndpoints.g.cs index 1a6bf072d..df100026d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEndpoints.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEndpoints.g.cs @@ -339,6 +339,80 @@ partial void ProcessListWebhookEndpointsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The pagination cursor does not identify a webhook endpoint in the authenticated project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEventTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEventTypes.g.cs index 5af76d5e7..85d50d858 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEventTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEventTypes.g.cs @@ -317,6 +317,43 @@ partial void ProcessListWebhookEventTypesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request does not contain authentication credentials. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Listexternalstorageconfigurations.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Listexternalstorageconfigurations.g.cs index e12e472ae..5e125b958 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Listexternalstorageconfigurations.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Listexternalstorageconfigurations.g.cs @@ -361,6 +361,117 @@ partial void ProcessListexternalstorageconfigurationsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The organization is not enabled for external storage or the listing parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs index bc6a8bc5c..6fcd83acd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs @@ -326,6 +326,43 @@ partial void ProcessRetrieveContainerResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The container was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs index 0fa442d67..e34f8730c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs @@ -335,6 +335,43 @@ partial void ProcessRetrieveContainerFileResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The container was not found or has expired, or the file was not found in the container. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs index 864a14087..00fe71950 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs @@ -328,6 +328,43 @@ await RetrieveContainerFileContentAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The container was not found or has expired, or the file was not found in the container. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveWebhookEndpoint.g.cs index 4ac50a1ab..2e0de68dc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveWebhookEndpoint.g.cs @@ -330,6 +330,80 @@ partial void ProcessRetrieveWebhookEndpointResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The webhook endpoint was not found in the authenticated project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RotateWebhookEndpointSigningSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RotateWebhookEndpointSigningSecret.g.cs index ef8bab151..fd56e9af8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RotateWebhookEndpointSigningSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RotateWebhookEndpointSigningSecret.g.cs @@ -350,6 +350,80 @@ partial void ProcessRotateWebhookEndpointSigningSecretResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The webhook endpoint was not found in the authenticated project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.TestWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.TestWebhookEndpoint.g.cs index 589704ac7..ea67f65e5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.TestWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.TestWebhookEndpoint.g.cs @@ -350,6 +350,117 @@ partial void ProcessTestWebhookEndpointResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The webhook endpoint was not found in the authenticated project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The sample event could not be sent to the webhook endpoint. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateWebhookEndpoint.g.cs index 10e7c4b46..6c58727c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateWebhookEndpoint.g.cs @@ -350,6 +350,80 @@ partial void ProcessUpdateWebhookEndpointResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The webhook endpoint parameters are invalid or the requested URL or event types are not permitted. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The webhook endpoint was not found in the authenticated project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { 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 index 6bb32c01f..4e96a99cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateorganizationspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateorganizationspendlimit.g.cs @@ -339,6 +339,80 @@ partial void ProcessUpdateorganizationspendlimitResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested spend limit is invalid or cannot be applied. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { 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 index 9ec49b6ad..455c66b21 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateprojectspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateprojectspendlimit.g.cs @@ -352,6 +352,117 @@ partial void ProcessUpdateprojectspendlimitResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested spend limit is invalid or cannot be applied. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Validateanexternalstorageconfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Validateanexternalstorageconfiguration.g.cs index f7fea1c49..a5723d81a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Validateanexternalstorageconfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Validateanexternalstorageconfiguration.g.cs @@ -332,6 +332,154 @@ partial void ProcessValidateanexternalstorageconfigurationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The external storage configuration is invalid or the organization or project does not support it. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The organization, project, or external storage was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // External storage validation is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignments.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignments.JsonSerializerContext.g.cs index e437583cb..ed90192d5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignments.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignments.JsonSerializerContext.g.cs @@ -35,6 +35,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignment))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignmentObject), TypeInfoPropertyName = "GroupRoleAssignmentObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Role))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject), TypeInfoPropertyName = "RoleObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResource))] @@ -48,6 +50,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupObject?), TypeInfoPropertyName = "NullableGroupObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignmentObject?), TypeInfoPropertyName = "NullableGroupRoleAssignmentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject?), TypeInfoPropertyName = "NullableRoleObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResourceObject?), TypeInfoPropertyName = "NullableRoleListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectGroupRole.g.cs index 84bc6d2a2..9bdd9fe36 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectGroupRole.g.cs @@ -357,6 +357,117 @@ partial void ProcessAssignProjectGroupRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs index 73ef84589..9b6b31f6d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs @@ -369,6 +369,117 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.RetrieveProjectGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.RetrieveProjectGroupRole.g.cs index 542ddea7f..13eec0443 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.RetrieveProjectGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.RetrieveProjectGroupRole.g.cs @@ -346,6 +346,117 @@ partial void ProcessRetrieveProjectGroupRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectGroupRole.g.cs index da11aeed4..e02be4e3e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectGroupRole.g.cs @@ -346,6 +346,117 @@ partial void ProcessUnassignProjectGroupRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroups.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroups.JsonSerializerContext.g.cs index 38b416974..9bf585856 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroups.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroups.JsonSerializerContext.g.cs @@ -26,6 +26,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteProjectGroupBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroup))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupObject), TypeInfoPropertyName = "ProjectGroupObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupGroupType), TypeInfoPropertyName = "ProjectGroupGroupType2")] @@ -41,6 +43,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RetrieveProjectGroupGroupType), TypeInfoPropertyName = "RetrieveProjectGroupGroupType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupObject?), TypeInfoPropertyName = "NullableProjectGroupObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupGroupType?), TypeInfoPropertyName = "NullableProjectGroupGroupType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject?), TypeInfoPropertyName = "NullableProjectGroupDeletedResourceObject2")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs index b4377c054..e63be2d5e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs @@ -348,6 +348,117 @@ partial void ProcessAddProjectGroupResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -385,6 +496,43 @@ partial void ProcessAddProjectGroupResponseContent( h => h.Key, h => h.Value)); } + // The group operation could not be completed because of a server error. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs index 45dac2aec..81123eac6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs @@ -368,6 +368,117 @@ partial void ProcessListProjectGroupsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs index 6df4cf4e3..c8cd7a24a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs @@ -337,6 +337,117 @@ partial void ProcessRemoveProjectGroupResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RetrieveProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RetrieveProjectGroup.g.cs index 4b5f8827a..242af6218 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RetrieveProjectGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RetrieveProjectGroup.g.cs @@ -353,6 +353,117 @@ partial void ProcessRetrieveProjectGroupResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested group, user, or project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignments.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignments.JsonSerializerContext.g.cs index 5d06ed963..d03693172 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignments.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignments.JsonSerializerContext.g.cs @@ -31,6 +31,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Role))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject), TypeInfoPropertyName = "RoleObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResource))] @@ -52,6 +54,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder), TypeInfoPropertyName = "ListProjectUserRoleAssignmentsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject?), TypeInfoPropertyName = "NullableRoleObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResourceObject?), TypeInfoPropertyName = "NullableRoleListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserObject?), TypeInfoPropertyName = "NullableUserObject2")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectUserRole.g.cs index f571b034e..3d3b7a8f4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectUserRole.g.cs @@ -357,6 +357,117 @@ partial void ProcessAssignProjectUserRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs index 9d200d59d..fe58da967 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs @@ -369,6 +369,117 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.RetrieveProjectUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.RetrieveProjectUserRole.g.cs index bcf50069a..85162affe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.RetrieveProjectUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.RetrieveProjectUserRole.g.cs @@ -346,6 +346,117 @@ partial void ProcessRetrieveProjectUserRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectUserRole.g.cs index b48229baf..2e3b00ed0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectUserRole.g.cs @@ -346,6 +346,117 @@ partial void ProcessUnassignProjectUserRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs index e42241f2f..51f29af43 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs @@ -328,6 +328,154 @@ partial void ProcessArchiveProjectResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project is already archived or is the default project and cannot be archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs index f1cab9392..7a81a1f4c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs @@ -341,6 +341,117 @@ partial void ProcessCreateProjectResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project creation request is invalid or contains incompatible settings. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs index 46d8dd172..2ad0b0d3c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs @@ -385,6 +385,117 @@ partial void ProcessCreateProjectServiceAccountResponseContent( h => h.Key, h => h.Value)); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A requested project, user, service account, or API key was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs index 581bf79dd..21dac3bde 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs @@ -378,6 +378,117 @@ partial void ProcessDeleteProjectApiKeyResponseContent( h => h.Key, h => h.Value)); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A requested project, user, service account, or API key was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectModelPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectModelPermissions.g.cs index bf2300aaa..4788bd954 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectModelPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectModelPermissions.g.cs @@ -328,6 +328,154 @@ partial void ProcessDeleteProjectModelPermissionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project is archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or model permission settings were not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs index ac153962e..4bc0a4cab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs @@ -378,6 +378,117 @@ partial void ProcessDeleteProjectUserResponseContent( h => h.Key, h => h.Value)); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A requested project, user, service account, or API key was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs index 3f01171fc..6c9a36f27 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs @@ -364,6 +364,154 @@ partial void ProcessListProjectApiKeysResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The listing parameters are invalid or the project is archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs index 45bc787c2..767d1343a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs @@ -364,6 +364,117 @@ partial void ProcessListProjectRateLimitsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The rate limit listing parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or pagination cursor was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs index 04f85abd8..c06c46adc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs @@ -391,6 +391,117 @@ partial void ProcessListProjectServiceAccountsResponseContent( h => h.Key, h => h.Value)); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A requested project, user, service account, or API key was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs index 44fc97433..e1fe7ca22 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs @@ -391,6 +391,117 @@ partial void ProcessListProjectUsersResponseContent( h => h.Key, h => h.Value)); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A requested project, user, service account, or API key was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs index 83fe729ce..43455bdc7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs @@ -359,6 +359,154 @@ partial void ProcessListProjectsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project listing parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project specified by the after cursor was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs index 30d153fba..ff57c5cec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs @@ -387,6 +387,117 @@ partial void ProcessModifyProjectResponseContent( h => h.Key, h => h.Value)); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A requested project, user, service account, or API key was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs index 6f8e0e8a6..8753cbde5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs @@ -394,6 +394,117 @@ partial void ProcessModifyProjectUserResponseContent( h => h.Key, h => h.Value)); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A requested project, user, service account, or API key was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs index c470fa5b5..5eacc7bdd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs @@ -328,6 +328,117 @@ partial void ProcessRetrieveProjectResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs index e5f376d68..f4a98a0b6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs @@ -337,6 +337,154 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project is archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or API key was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectModelPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectModelPermissions.g.cs index 1ac3ba896..de56468ce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectModelPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectModelPermissions.g.cs @@ -328,6 +328,154 @@ partial void ProcessRetrieveProjectModelPermissionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project is archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or model permission settings were not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs index 41108c284..3dcbff7d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs @@ -337,6 +337,154 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project is archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or service account was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs index cd16e61b3..ccb87ecf0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs @@ -337,6 +337,154 @@ partial void ProcessRetrieveProjectUserResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project is archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or user was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectModelPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectModelPermissions.g.cs index 65438635b..da21af78a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectModelPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectModelPermissions.g.cs @@ -348,6 +348,154 @@ partial void ProcessUpdateProjectModelPermissionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The model permission request is invalid or the project is archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs index 0c49560f5..591e4d1c4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs @@ -394,6 +394,80 @@ partial void ProcessUpdateProjectRateLimitsResponseContent( h => h.Key, h => h.Value)); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectServiceAccount.g.cs index 30915a4a2..d1bbf2c31 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectServiceAccount.g.cs @@ -357,6 +357,154 @@ partial void ProcessUpdateProjectServiceAccountResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The service account update is invalid or the project is archived. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or service account was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs index 89aac5b0d..5c2f7e7d5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs @@ -36,6 +36,10 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CallableToolAllowedCaller), TypeInfoPropertyName = "CallableToolAllowedCaller2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoice), TypeInfoPropertyName = "VoiceIdsOrCustomVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContent))] @@ -58,7 +62,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType), TypeInfoPropertyName = "RealtimeAudioFormatsPcmaAudioFormatType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfToolChoiceOptionsToolChoiceFunctionToolChoiceMCP2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), TypeInfoPropertyName = "ToolChoiceOptions2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceFunction))] @@ -203,6 +206,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceMCPType), TypeInfoPropertyName = "ToolChoiceMCPType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), TypeInfoPropertyName = "VoiceIdsSharedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode), TypeInfoPropertyName = "PromptCacheBreakpointConfigMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentType), TypeInfoPropertyName = "InputTextContentType2")] @@ -220,6 +226,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CallableToolAllowedCaller?), TypeInfoPropertyName = "NullableCallableToolAllowedCaller2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoice?), TypeInfoPropertyName = "NullableVoiceIdsOrCustomVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared?), TypeInfoPropertyName = "NullableVoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolType?), TypeInfoPropertyName = "NullableMCPToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolConnectorId?), TypeInfoPropertyName = "NullableMCPToolConnectorId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2?), TypeInfoPropertyName = "NullableMCPToolRequireApprovalVariant1Enum22")] @@ -228,7 +235,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType?), TypeInfoPropertyName = "NullableRealtimeAudioFormatsPcmAudioFormatType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType?), TypeInfoPropertyName = "NullableRealtimeAudioFormatsPcmuAudioFormatType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType?), TypeInfoPropertyName = "NullableRealtimeAudioFormatsPcmaAudioFormatType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared?), TypeInfoPropertyName = "NullableVoiceIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfToolChoiceOptionsToolChoiceFunctionToolChoiceMCP2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceOptions?), TypeInfoPropertyName = "NullableToolChoiceOptions2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfRealtimeSessionCreateRequestGARealtimeTranscriptionSessionCreateRequestGA2")] @@ -287,6 +293,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceFunctionType?), TypeInfoPropertyName = "NullableToolChoiceFunctionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceMCPType?), TypeInfoPropertyName = "NullableToolChoiceMCPType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum?), TypeInfoPropertyName = "NullableVoiceIdsSharedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode?), TypeInfoPropertyName = "NullablePromptCacheBreakpointConfigMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentType?), TypeInfoPropertyName = "NullableInputTextContentType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageDetail?), TypeInfoPropertyName = "NullableImageDetail2")] @@ -360,6 +368,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoiceJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); @@ -369,6 +378,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::tryAGI.OpenAI.MCPToolFilter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); @@ -634,6 +644,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode) || typeToConvert == typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode?) @@ -1197,6 +1211,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode)) { return new global::tryAGI.OpenAI.JsonConverters.PromptCacheBreakpointConfigModeJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptRealtimeCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptRealtimeCall.g.cs index f62bee7a5..87eff9578 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptRealtimeCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptRealtimeCall.g.cs @@ -341,6 +341,117 @@ await AcceptRealtimeCallAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The session or call was not found or is unavailable for this operation. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session or call can no longer accept this operation. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error occurred. The response body is plain text. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + string? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeClientSecret.g.cs index bdea75795..19f371eec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeClientSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeClientSecret.g.cs @@ -353,6 +353,117 @@ partial void ProcessCreateRealtimeClientSecretResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid session configuration or model. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested model was not found or is unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested model's availability could not be determined. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranslationClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranslationClientSecret.g.cs index 2fa5407ff..25ba115ea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranslationClientSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranslationClientSecret.g.cs @@ -349,6 +349,117 @@ partial void ProcessCreateRealtimeTranslationClientSecretResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid session configuration or model. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested model was not found or is unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested model's availability could not be determined. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangupRealtimeCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangupRealtimeCall.g.cs index 5e1ada83a..d3ead5a57 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangupRealtimeCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangupRealtimeCall.g.cs @@ -321,6 +321,43 @@ await HangupRealtimeCallAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The session or call was not found or is unavailable for this operation. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferRealtimeCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferRealtimeCall.g.cs index 445a12cee..dd3bae1fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferRealtimeCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferRealtimeCall.g.cs @@ -339,6 +339,80 @@ await ReferRealtimeCallAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The session or call was not found or is unavailable for this operation. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error occurred. The response body is plain text. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + string? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectRealtimeCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectRealtimeCall.g.cs index a94ea6fd2..716569d15 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectRealtimeCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectRealtimeCall.g.cs @@ -339,6 +339,117 @@ await RejectRealtimeCallAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The session or call was not found or is unavailable for this operation. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The session or call can no longer accept this operation. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error occurred. The response body is plain text. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + string? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Responses.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Responses.JsonSerializerContext.g.cs index 5b721a15a..8d3347b41 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Responses.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Responses.JsonSerializerContext.g.cs @@ -498,6 +498,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallAction), TypeInfoPropertyName = "WebSearchToolCallAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType), TypeInfoPropertyName = "WebSearchToolCallActionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationInputType), TypeInfoPropertyName = "ModerationInputType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationResultBodyType), TypeInfoPropertyName = "ModerationResultBodyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -511,9 +514,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationPolicyParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType), TypeInfoPropertyName = "SkillReferenceParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamType), TypeInfoPropertyName = "InlineSkillSourceParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamMediaType), TypeInfoPropertyName = "InlineSkillSourceParamMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillParamType), TypeInfoPropertyName = "InlineSkillParamType2")] internal sealed partial class ResponsesSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -526,6 +526,9 @@ internal sealed partial class ResponsesSourceGenerationContextChunk0 : global::S Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamType), TypeInfoPropertyName = "InlineSkillSourceParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamMediaType), TypeInfoPropertyName = "InlineSkillSourceParamMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillParamType), TypeInfoPropertyName = "InlineSkillParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType), TypeInfoPropertyName = "ContainerNetworkPolicyDisabledParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType), TypeInfoPropertyName = "ContainerNetworkPolicyAllowlistParamType2")] @@ -760,9 +763,6 @@ internal sealed partial class ResponsesSourceGenerationContextChunk0 : global::S [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramItemParamType), TypeInfoPropertyName = "ProgramItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemStatus), TypeInfoPropertyName = "ProgramOutputItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemParamType), TypeInfoPropertyName = "ProgramOutputItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType), TypeInfoPropertyName = "SpecificProgrammaticToolCallingParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParamType), TypeInfoPropertyName = "SpecificApplyPatchParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParamType), TypeInfoPropertyName = "SpecificFunctionShellParamType2")] @@ -1301,6 +1301,7 @@ internal sealed partial class ResponsesSourceGenerationContextChunk1 : global::S [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModelIdsShared), TypeInfoPropertyName = "BetaModelIdsShared2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModelIdsResponsesEnum), TypeInfoPropertyName = "BetaModelIdsResponsesEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModelIdsSharedEnum), TypeInfoPropertyName = "BetaModelIdsSharedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaError))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMisalignmentErrorDetailsResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMisalignmentErrorType), TypeInfoPropertyName = "BetaMisalignmentErrorType2")] @@ -1537,7 +1538,6 @@ internal sealed partial class ResponsesSourceGenerationContextChunk1 : global::S [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseRefusalDeltaEventType), TypeInfoPropertyName = "BetaResponseRefusalDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputItemDoneEventType), TypeInfoPropertyName = "BetaResponseOutputItemDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent))] internal sealed partial class ResponsesSourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1550,6 +1550,7 @@ internal sealed partial class ResponsesSourceGenerationContextChunk2 : global::S Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType), TypeInfoPropertyName = "BetaResponseOutputItemAddedEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseInProgressEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseInProgressEventType), TypeInfoPropertyName = "BetaResponseInProgressEventType2")] @@ -1863,6 +1864,8 @@ internal sealed partial class ResponsesSourceGenerationContextChunk2 : global::S [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchCallStatus?), TypeInfoPropertyName = "NullableWebSearchCallStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallAction?), TypeInfoPropertyName = "NullableWebSearchToolCallAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType?), TypeInfoPropertyName = "NullableWebSearchToolCallActionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationInputType?), TypeInfoPropertyName = "NullableModerationInputType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationResultBodyType?), TypeInfoPropertyName = "NullableModerationResultBodyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheTTLEnum?), TypeInfoPropertyName = "NullablePromptCacheTTLEnum2")] @@ -2029,8 +2032,6 @@ internal sealed partial class ResponsesSourceGenerationContextChunk2 : global::S [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramItemParamType?), TypeInfoPropertyName = "NullableProgramItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemStatus?), TypeInfoPropertyName = "NullableProgramOutputItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProgramOutputItemParamType?), TypeInfoPropertyName = "NullableProgramOutputItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType?), TypeInfoPropertyName = "NullableSpecificProgrammaticToolCallingParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParamType?), TypeInfoPropertyName = "NullableSpecificApplyPatchParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParamType?), TypeInfoPropertyName = "NullableSpecificFunctionShellParamType2")] @@ -2049,7 +2050,6 @@ internal sealed partial class ResponsesSourceGenerationContextChunk2 : global::S [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModerationOutputDiscriminatorType?), TypeInfoPropertyName = "NullableModerationOutputDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEventType?), TypeInfoPropertyName = "NullableResponseCompactionCompactingStreamingEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEventType?), TypeInfoPropertyName = "NullableResponseShellCallCommandAddedStreamingEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEventType?), TypeInfoPropertyName = "NullableResponseShellCallCommandDeltaStreamingEventType2")] internal sealed partial class ResponsesSourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2062,6 +2062,7 @@ internal sealed partial class ResponsesSourceGenerationContextChunk3 : global::S Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEventType?), TypeInfoPropertyName = "NullableResponseShellCallCommandDeltaStreamingEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEventType?), TypeInfoPropertyName = "NullableResponseShellCallCommandDoneStreamingEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEventType?), TypeInfoPropertyName = "NullableResponseShellCallOutputContentDeltaStreamingEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEventType?), TypeInfoPropertyName = "NullableResponseShellCallOutputContentDoneStreamingEventType2")] @@ -2561,7 +2562,6 @@ internal sealed partial class ResponsesSourceGenerationContextChunk3 : global::S [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))] internal sealed partial class ResponsesSourceGenerationContextChunk4 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2574,6 +2574,7 @@ internal sealed partial class ResponsesSourceGenerationContextChunk4 : global::S Converters = new global::System.Type[] { })] + [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))] @@ -2689,6 +2690,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolChoiceParamJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnnotationJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContentItem3JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolCallCallerJsonConverter()); @@ -2707,7 +2709,6 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant13JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ReasoningModeEnumJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.PromptCacheDiagnosticsJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.Input4JsonConverter()); @@ -3465,6 +3466,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ModerationInputType) || typeToConvert == typeof(global::tryAGI.OpenAI.ModerationInputType?) @@ -4113,10 +4118,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ProgramOutputItemParamType?) - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) - - || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) - || typeToConvert == typeof(global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType) || typeToConvert == typeof(global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType?) @@ -7264,6 +7265,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ModerationInputType)) { return new global::tryAGI.OpenAI.JsonConverters.ModerationInputTypeJsonConverter(); @@ -8884,16 +8895,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ProgramOutputItemParamTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); - } - - if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) - { - return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); - } - if (typeToConvert == typeof(global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType)) { return new global::tryAGI.OpenAI.JsonConverters.SpecificProgrammaticToolCallingParamTypeJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCancelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCancelResponse.g.cs index 50d525961..3d69a1525 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCancelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCancelResponse.g.cs @@ -354,19 +354,19 @@ partial void ProcessBetaCancelResponseResponseContent( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::tryAGI.OpenAI.BetaError? __value_404 = null; + global::tryAGI.OpenAI.BetaErrorResponse? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.BetaError.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.BetaError.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessBetaCancelResponseResponseContent( } - throw global::tryAGI.OpenAI.ApiException.Create( + throw global::tryAGI.OpenAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCompactconversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCompactconversation.g.cs index 332a4e6b7..dcdc8cb05 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCompactconversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCompactconversation.g.cs @@ -354,6 +354,43 @@ partial void ProcessBetaCompactconversationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid compaction request or incompatible input parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.BetaErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponse.g.cs index 9cffe75f4..e8d83f2c5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponse.g.cs @@ -366,6 +366,80 @@ partial void ProcessBetaCreateResponseResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid response request or incompatible request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.BetaErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested model or a referenced resource was not found or is unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.BetaErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaDeleteResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaDeleteResponse.g.cs index 1b519b9cb..91b316764 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaDeleteResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaDeleteResponse.g.cs @@ -343,19 +343,19 @@ await BetaDeleteResponseAsResponseAsync( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::tryAGI.OpenAI.BetaError? __value_404 = null; + global::tryAGI.OpenAI.BetaErrorResponse? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.BetaError.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.BetaError.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -364,7 +364,7 @@ await BetaDeleteResponseAsResponseAsync( } - throw global::tryAGI.OpenAI.ApiException.Create( + throw global::tryAGI.OpenAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetResponse.g.cs index ac1f06a03..75b30641f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetResponse.g.cs @@ -387,6 +387,43 @@ partial void ProcessBetaGetResponseResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The response was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.BetaErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetinputtokencounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetinputtokencounts.g.cs index bfec27ef2..d6a4dfdc5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetinputtokencounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetinputtokencounts.g.cs @@ -354,6 +354,43 @@ partial void ProcessBetaGetinputtokencountsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request to count input tokens is invalid or contains incompatible parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.BetaErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaListInputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaListInputItems.g.cs index f631ec505..0fa6b2da6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaListInputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaListInputItems.g.cs @@ -387,6 +387,43 @@ partial void ProcessBetaListInputItemsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The response or the item specified by `after` was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.BetaErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.BetaErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs index 8c79c7b64..9bcf6b236 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs @@ -339,19 +339,19 @@ partial void ProcessCancelResponseResponseContent( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::tryAGI.OpenAI.Error? __value_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -360,7 +360,7 @@ partial void ProcessCancelResponseResponseContent( } - throw global::tryAGI.OpenAI.ApiException.Create( + throw global::tryAGI.OpenAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Compactconversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Compactconversation.g.cs index a4d68dda6..9cbe2ac6d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Compactconversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Compactconversation.g.cs @@ -339,6 +339,43 @@ partial void ProcessCompactconversationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid compaction request or incompatible input parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs index 843a028ce..b0b16d89f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs @@ -351,6 +351,80 @@ partial void ProcessCreateResponseResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Invalid response request or incompatible request parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested model or a referenced resource was not found or is unavailable to this caller. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs index b4a0e04a9..866028f84 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs @@ -328,19 +328,19 @@ await DeleteResponseAsResponseAsync( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::tryAGI.OpenAI.Error? __value_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -349,7 +349,7 @@ await DeleteResponseAsResponseAsync( } - throw global::tryAGI.OpenAI.ApiException.Create( + throw global::tryAGI.OpenAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs index 550dc6de9..50a1ac53a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs @@ -372,6 +372,43 @@ partial void ProcessGetResponseResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The response was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Getinputtokencounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Getinputtokencounts.g.cs index 63a8d7104..61657d27c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Getinputtokencounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Getinputtokencounts.g.cs @@ -339,6 +339,43 @@ partial void ProcessGetinputtokencountsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request to count input tokens is invalid or contains incompatible parameters. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs index e36fc83ca..1697d6b3e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs @@ -372,6 +372,43 @@ partial void ProcessListInputItemsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The response or the item specified by `after` was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Roles.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Roles.JsonSerializerContext.g.cs index 08e2b7c33..8170ed470 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Roles.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Roles.JsonSerializerContext.g.cs @@ -27,6 +27,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Role))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicRoleListResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicRoleListResourceObject), TypeInfoPropertyName = "PublicRoleListResourceObject2")] @@ -42,6 +44,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectRolesOrder), TypeInfoPropertyName = "ListProjectRolesOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicRoleListResourceObject?), TypeInfoPropertyName = "NullablePublicRoleListResourceObject2")] [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")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs index ff661304d..a4623c7e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs @@ -348,6 +348,117 @@ partial void ProcessCreateProjectRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateRole.g.cs index 1d5198153..cc1b9c127 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateRole.g.cs @@ -339,6 +339,117 @@ partial void ProcessCreateRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs index d19edce91..10ea153ce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs @@ -337,6 +337,117 @@ partial void ProcessDeleteProjectRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteRole.g.cs index be3441f97..7f0a06ec7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteRole.g.cs @@ -328,6 +328,117 @@ partial void ProcessDeleteRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs index eb4eb83bc..ee35b797d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs @@ -368,6 +368,117 @@ partial void ProcessListProjectRolesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListRoles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListRoles.g.cs index d932d5d9c..39ac4d441 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListRoles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListRoles.g.cs @@ -359,6 +359,117 @@ partial void ProcessListRolesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveProjectRole.g.cs index 4b6a9b88e..ee9281a2e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveProjectRole.g.cs @@ -337,6 +337,80 @@ partial void ProcessRetrieveProjectRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveRole.g.cs index a131381b5..abf974cd5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveRole.g.cs @@ -328,6 +328,80 @@ partial void ProcessRetrieveRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs index fe471292f..a631be844 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs @@ -357,6 +357,117 @@ partial void ProcessUpdateProjectRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateRole.g.cs index f035f5c67..aae918155 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateRole.g.cs @@ -348,6 +348,117 @@ partial void ProcessUpdateRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs index ea3b35695..79599ca8d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs @@ -424,6 +424,43 @@ __fileNameFiles2 is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The uploaded skill files or archive are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -461,6 +498,43 @@ __fileNameFiles2 is null h => h.Key, h => h.Value)); } + // The skill could not be saved. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs index d9e1da92c..432707c1d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs @@ -446,6 +446,80 @@ __fileNameFiles2 is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The uploaded skill files or archive are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The skill was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -483,6 +557,43 @@ __fileNameFiles2 is null h => h.Key, h => h.Value)); } + // The skill version could not be saved. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs index 7297366fe..3fc69f9c4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs @@ -330,6 +330,43 @@ partial void ProcessDeleteSkillResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The skill was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs index b93fbd2ce..b484f783b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs @@ -343,6 +343,80 @@ partial void ProcessDeleteSkillVersionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested version is invalid, or it is the default version and other versions remain. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The skill or requested skill version was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs index b149dee9f..836898a96 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs @@ -330,6 +330,43 @@ partial void ProcessGetSkillResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The skill was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs index d000a8745..f375e5c23 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs @@ -334,6 +334,43 @@ partial void ProcessGetSkillContentResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The skill was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContentAsBytes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContentAsBytes.g.cs index d942dfc94..6cf439fec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContentAsBytes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContentAsBytes.g.cs @@ -334,6 +334,43 @@ partial void ProcessGetSkillContentAsBytesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The skill was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -692,6 +729,43 @@ partial void ProcessGetSkillContentAsBytesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The skill was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs index 1cf4e034a..ce5e364d5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs @@ -343,6 +343,80 @@ partial void ProcessGetSkillVersionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested version is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The skill or requested skill version was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs index a288fa18f..a570571eb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs @@ -347,6 +347,80 @@ partial void ProcessGetSkillVersionContentResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested version is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The skill or requested skill version was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContentAsBytes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContentAsBytes.g.cs index c9f0e46b3..568a85895 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContentAsBytes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContentAsBytes.g.cs @@ -347,6 +347,80 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested version is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The skill or requested skill version was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -711,6 +785,80 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested version is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The skill or requested skill version was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs index f2c45952f..dafe22884 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs @@ -366,6 +366,80 @@ partial void ProcessListSkillVersionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The version specified by `after` does not belong to this skill. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The skill or the version specified by `after` was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs index 5645ce012..8ebec23c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs @@ -353,6 +353,43 @@ partial void ProcessListSkillsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The skill specified by `after` was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs index cfcfa732d..25746267e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs @@ -350,6 +350,80 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested version is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The skill or requested skill version was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlerts.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlerts.JsonSerializerContext.g.cs index e2f6b87fc..ea9b003ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlerts.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlerts.JsonSerializerContext.g.cs @@ -27,6 +27,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpendAlertBodyCurrency), TypeInfoPropertyName = "CreateSpendAlertBodyCurrency2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpendAlertBodyInterval), TypeInfoPropertyName = "CreateSpendAlertBodyInterval2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendAlertNotificationChannel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlert))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertObject), TypeInfoPropertyName = "OrganizationSpendAlertObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertCurrency), TypeInfoPropertyName = "OrganizationSpendAlertCurrency2")] @@ -36,6 +39,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertListResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertListResourceObject), TypeInfoPropertyName = "OrganizationSpendAlertListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendAlert))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendAlertObject), TypeInfoPropertyName = "ProjectSpendAlertObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendAlertCurrency), TypeInfoPropertyName = "ProjectSpendAlertCurrency2")] @@ -46,6 +51,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendAlertListResourceObject), TypeInfoPropertyName = "ProjectSpendAlertListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendAlertNotificationChannelType), TypeInfoPropertyName = "SpendAlertNotificationChannelType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectSpendAlertsOrder), TypeInfoPropertyName = "ListProjectSpendAlertsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder), TypeInfoPropertyName = "ListOrganizationSpendAlertsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] @@ -57,12 +65,15 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertInterval?), TypeInfoPropertyName = "NullableOrganizationSpendAlertInterval2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResourceObject?), TypeInfoPropertyName = "NullableOrganizationSpendAlertDeletedResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertListResourceObject?), TypeInfoPropertyName = "NullableOrganizationSpendAlertListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendAlertObject?), TypeInfoPropertyName = "NullableProjectSpendAlertObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendAlertCurrency?), TypeInfoPropertyName = "NullableProjectSpendAlertCurrency2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendAlertInterval?), TypeInfoPropertyName = "NullableProjectSpendAlertInterval2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendAlertDeletedResourceObject?), TypeInfoPropertyName = "NullableProjectSpendAlertDeletedResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectSpendAlertListResourceObject?), TypeInfoPropertyName = "NullableProjectSpendAlertListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpendAlertNotificationChannelType?), TypeInfoPropertyName = "NullableSpendAlertNotificationChannelType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectSpendAlertsOrder?), TypeInfoPropertyName = "NullableListProjectSpendAlertsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder?), TypeInfoPropertyName = "NullableListOrganizationSpendAlertsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -112,11 +123,13 @@ private SpendAlertsSourceGenerationContext(global::System.Text.Json.JsonSerializ [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>()); @@ -200,6 +213,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.SpendAlertNotificationChannelType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ListProjectSpendAlertsOrder) || typeToConvert == typeof(global::tryAGI.OpenAI.ListProjectSpendAlertsOrder?) @@ -343,6 +360,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.SpendAlertNotificationChannelTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ListProjectSpendAlertsOrder)) { return new global::tryAGI.OpenAI.JsonConverters.ListProjectSpendAlertsOrderJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateOrganizationSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateOrganizationSpendAlert.g.cs index b0c2254bd..3e5ce0a78 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateOrganizationSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateOrganizationSpendAlert.g.cs @@ -339,6 +339,80 @@ partial void ProcessCreateOrganizationSpendAlertResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The spend alert request is invalid or conflicts with the hard spend limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateProjectSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateProjectSpendAlert.g.cs index 9c20f7492..d762a57b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateProjectSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateProjectSpendAlert.g.cs @@ -348,6 +348,117 @@ partial void ProcessCreateProjectSpendAlertResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The spend alert request is invalid or conflicts with the hard spend limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteOrganizationSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteOrganizationSpendAlert.g.cs index 9f97e5989..575f28736 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteOrganizationSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteOrganizationSpendAlert.g.cs @@ -328,6 +328,80 @@ partial void ProcessDeleteOrganizationSpendAlertResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The spend alert was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteProjectSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteProjectSpendAlert.g.cs index 073da83de..330c4609a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteProjectSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteProjectSpendAlert.g.cs @@ -337,6 +337,117 @@ partial void ProcessDeleteProjectSpendAlertResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project ID is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or spend alert was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListOrganizationSpendAlerts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListOrganizationSpendAlerts.g.cs index b627cc97c..efc19ffcc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListOrganizationSpendAlerts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListOrganizationSpendAlerts.g.cs @@ -365,6 +365,117 @@ partial void ProcessListOrganizationSpendAlertsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The spend alert listing parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The spend alert specified by the after cursor was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListProjectSpendAlerts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListProjectSpendAlerts.g.cs index c5c23df79..9b7213d77 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListProjectSpendAlerts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListProjectSpendAlerts.g.cs @@ -374,6 +374,117 @@ partial void ProcessListProjectSpendAlertsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The spend alert listing parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or spend alert pagination cursor was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveOrganizationSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveOrganizationSpendAlert.g.cs index 90da8110f..08a422a7c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveOrganizationSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveOrganizationSpendAlert.g.cs @@ -328,6 +328,80 @@ partial void ProcessRetrieveOrganizationSpendAlertResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The spend alert was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveProjectSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveProjectSpendAlert.g.cs index d094fe769..1f3a4e07b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveProjectSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveProjectSpendAlert.g.cs @@ -337,6 +337,117 @@ partial void ProcessRetrieveProjectSpendAlertResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The project ID is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or spend alert was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateOrganizationSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateOrganizationSpendAlert.g.cs index 990b08c89..5a9a0fdc8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateOrganizationSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateOrganizationSpendAlert.g.cs @@ -348,6 +348,117 @@ partial void ProcessUpdateOrganizationSpendAlertResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The spend alert update is invalid or conflicts with the hard spend limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The spend alert was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateProjectSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateProjectSpendAlert.g.cs index ea7e77f5a..00b31f8d4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateProjectSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateProjectSpendAlert.g.cs @@ -357,6 +357,117 @@ partial void ProcessUpdateProjectSpendAlertResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The spend alert update is invalid or conflicts with the hard spend limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The project or spend alert was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Uploads.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Uploads.JsonSerializerContext.g.cs index 8ea1d497f..e66c741b8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Uploads.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Uploads.JsonSerializerContext.g.cs @@ -29,6 +29,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateUploadRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateUploadRequestPurpose), TypeInfoPropertyName = "CreateUploadRequestPurpose2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfterAnchor), TypeInfoPropertyName = "FileExpirationAfterAnchor2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileObject), TypeInfoPropertyName = "OpenAIFileObject2")] @@ -40,6 +43,9 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfOpenAIFileObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadPartObject), TypeInfoPropertyName = "UploadPartObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType), TypeInfoPropertyName = "MisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), TypeInfoPropertyName = "MisalignmentErrorTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentSteer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateUploadRequestPurpose?), TypeInfoPropertyName = "NullableCreateUploadRequestPurpose2")] @@ -51,6 +57,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadObject?), TypeInfoPropertyName = "NullableUploadObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfOpenAIFileObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadPartObject?), TypeInfoPropertyName = "NullableUploadPartObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorType?), TypeInfoPropertyName = "NullableMisalignmentErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?), TypeInfoPropertyName = "NullableMisalignmentErrorTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class UploadsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -96,11 +104,13 @@ private UploadsSourceGenerationContext(global::System.Text.Json.JsonSerializerOp [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); @@ -163,7 +173,11 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.UploadPartObject) - || typeToConvert == typeof(global::tryAGI.OpenAI.UploadPartObject?); + || typeToConvert == typeof(global::tryAGI.OpenAI.UploadPartObject?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum) + + || typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -249,6 +263,16 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::tryAGI.OpenAI.JsonConverters.UploadPartObjectNullableJsonConverter(); } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum?)) + { + return new global::tryAGI.OpenAI.JsonConverters.MisalignmentErrorTypeEnumNullableJsonConverter(); + } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs index 20121590e..e3dca3ff8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs @@ -390,6 +390,191 @@ request.Dataname is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The upload cannot accept more parts, or the part exceeds an upload size limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload has expired. Create a new upload before adding parts or completing it. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many upload requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The part could not be uploaded. Try the request again. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -851,6 +1036,191 @@ request.Dataname is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The upload cannot accept more parts, or the part exceeds an upload size limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload has expired. Create a new upload before adding parts or completing it. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many upload requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The part could not be uploaded. Try the request again. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -1266,6 +1636,191 @@ request.Dataname is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The upload cannot accept more parts, or the part exceeds an upload size limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload has expired. Create a new upload before adding parts or completing it. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many upload requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The part could not be uploaded. Try the request again. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs index e86215189..84b75f88d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs @@ -332,6 +332,154 @@ partial void ProcessCancelUploadResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The upload is no longer pending or is already being completed and cannot be cancelled. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload has expired. Create a new upload before adding parts or completing it. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many upload requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs index 2ad6c439a..878b003a4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs @@ -358,6 +358,191 @@ partial void ProcessCompleteUploadResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The upload cannot be completed in its current state, the parts are invalid, or the uploaded size does not match the specified size. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload has expired. Create a new upload before adding parts or completing it. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many upload requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The upload could not be completed. Retry the same request, preserving the part order and MD5 value. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs index 8e7b76787..13e14d9ed 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs @@ -365,6 +365,80 @@ partial void ProcessCreateUploadResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The upload request is invalid or exceeds a file size or storage quota limit. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many upload requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Usage.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Usage.JsonSerializerContext.g.cs index ede823344..00e1b2c19 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Usage.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Usage.JsonSerializerContext.g.cs @@ -33,6 +33,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResultObject), TypeInfoPropertyName = "UsageAudioSpeechesResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult))] @@ -110,6 +112,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CostsResultObject?), TypeInfoPropertyName = "NullableCostsResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringCostsResultQuantityUnitObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CostsResultQuantityUnit?), TypeInfoPropertyName = "NullableCostsResultQuantityUnit2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResultObject?), TypeInfoPropertyName = "NullableUsageAudioSpeechesResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject?), TypeInfoPropertyName = "NullableUsageAudioTranscriptionsResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject?), TypeInfoPropertyName = "NullableUsageCodeInterpreterSessionsResultObject2")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs index c2c02587b..b9d22eeda 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs @@ -425,6 +425,80 @@ partial void ProcessUsageAudioSpeechesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs index 8ded4d8d3..9261e6e9c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs @@ -425,6 +425,80 @@ partial void ProcessUsageAudioTranscriptionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs index 50c311567..061834c29 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs @@ -395,6 +395,80 @@ partial void ProcessUsageCodeInterpreterSessionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs index 99549a79f..23743fcfe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs @@ -435,6 +435,80 @@ partial void ProcessUsageCompletionsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs index 8b9a31007..b1b467de1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs @@ -419,6 +419,80 @@ partial void ProcessUsageCostsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs index d636f7eb5..9375cac52 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs @@ -425,6 +425,80 @@ partial void ProcessUsageEmbeddingsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageFileSearchCalls.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageFileSearchCalls.g.cs index 771d3f565..a6d0a806b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageFileSearchCalls.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageFileSearchCalls.g.cs @@ -425,6 +425,80 @@ partial void ProcessUsageFileSearchCallsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs index 759f51ca2..b362f698a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs @@ -445,6 +445,80 @@ partial void ProcessUsageImagesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs index 87252579b..d483a9fd0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs @@ -425,6 +425,80 @@ partial void ProcessUsageModerationsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs index 357461303..c5e0aa91c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs @@ -395,6 +395,80 @@ partial void ProcessUsageVectorStoresResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageWebSearchCalls.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageWebSearchCalls.g.cs index e7e910746..98f1c8856 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageWebSearchCalls.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageWebSearchCalls.g.cs @@ -435,6 +435,80 @@ partial void ProcessUsageWebSearchCallsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignments.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignments.JsonSerializerContext.g.cs index 66faf6ae6..21560fd3c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignments.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignments.JsonSerializerContext.g.cs @@ -31,6 +31,8 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MisalignmentErrorDetailsResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Role))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PermissionErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject), TypeInfoPropertyName = "RoleObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResource))] @@ -52,6 +54,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder), TypeInfoPropertyName = "ListUserRoleAssignmentsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject?), TypeInfoPropertyName = "NullableRoleObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResourceObject?), TypeInfoPropertyName = "NullableRoleListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserObject?), TypeInfoPropertyName = "NullableUserObject2")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignUserRole.g.cs index bacb10532..c96079069 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignUserRole.g.cs @@ -348,6 +348,117 @@ partial void ProcessAssignUserRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserRoleAssignments.g.cs index 2c5529942..47d99c560 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserRoleAssignments.g.cs @@ -360,6 +360,117 @@ partial void ProcessListUserRoleAssignmentsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.RetrieveUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.RetrieveUserRole.g.cs index f9ee86de8..8ef4a6d6a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.RetrieveUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.RetrieveUserRole.g.cs @@ -337,6 +337,117 @@ partial void ProcessRetrieveUserRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignUserRole.g.cs index fce2b5f10..eb5b505dd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignUserRole.g.cs @@ -337,6 +337,117 @@ partial void ProcessUnassignUserRoleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request parameters are invalid or the requested operation cannot be performed. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The endpoint is unavailable or a requested resource was not found in this organization or project. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs index eeec20004..e55e548c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs @@ -355,6 +355,117 @@ partial void ProcessListUsersResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The user listing parameters are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs index d793e98c3..0f45be386 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs @@ -348,6 +348,154 @@ partial void ProcessModifyUserResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested user role is invalid or the update is not permitted. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The user was not found in this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs index a25347782..88fd74eb9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs @@ -328,6 +328,117 @@ partial void ProcessRetrieveUserResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The caller does not have permission to perform this operation. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.PermissionErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.PermissionErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The user was not found in this organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many management requests. Reduce the request rate and try again later. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs index 6e803d922..259ae4962 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs @@ -335,6 +335,117 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file batch identifier is invalid or the vector store has expired. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store or file batch was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store is temporarily unavailable for this change or was modified concurrently. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs index 948e3ae04..ca389b70c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs @@ -337,6 +337,80 @@ partial void ProcessCreateVectorStoreResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The vector store input, files or chunking configuration are invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // A referenced input file was not found or is not accessible. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs index 897b0427b..1e4cf822c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs @@ -350,6 +350,117 @@ partial void ProcessCreateVectorStoreFileResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file input is invalid, the store has expired, or a file limit would be exceeded. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store is temporarily unavailable for this change or was modified concurrently. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -387,6 +498,43 @@ partial void ProcessCreateVectorStoreFileResponseContent( h => h.Key, h => h.Value)); } + // The file could not be attached to the vector store. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs index 831d2566b..2a912aa85 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs @@ -350,6 +350,117 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file batch input is invalid, the store has expired, or a file limit would be exceeded. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store is temporarily unavailable for this change or was modified concurrently. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -387,6 +498,43 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( h => h.Key, h => h.Value)); } + // The files could not be attached to the vector store. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs index 54bad7d5a..fc6e64544 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs @@ -326,6 +326,80 @@ partial void ProcessDeleteVectorStoreResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The vector store was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store is temporarily unavailable for this change or was modified concurrently. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs index 7ca5b30db..1c8dace34 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs @@ -335,6 +335,117 @@ partial void ProcessDeleteVectorStoreFileResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The vector store has expired. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store or file was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store is temporarily unavailable for this change or was modified concurrently. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -372,6 +483,43 @@ partial void ProcessDeleteVectorStoreFileResponseContent( h => h.Key, h => h.Value)); } + // The vector store file could not be deleted. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs index 3c68cc5ba..c5c8a776e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs @@ -326,6 +326,43 @@ partial void ProcessGetVectorStoreResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The vector store was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs index fbadcda36..b8c0775c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs @@ -343,6 +343,43 @@ partial void ProcessGetVectorStoreFileResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The vector store or file was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -380,6 +417,43 @@ partial void ProcessGetVectorStoreFileResponseContent( h => h.Key, h => h.Value)); } + // The vector store file could not be retrieved. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs index 3a8aa3851..eceecab29 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs @@ -343,6 +343,80 @@ partial void ProcessGetVectorStoreFileBatchResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file batch identifier is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store or file batch was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs index de0376665..2bfb2f238 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs @@ -395,6 +395,80 @@ partial void ProcessListFilesInVectorStoreBatchResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file batch identifier or file filter is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store or file batch was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs index 8b395397b..c5c074c3e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs @@ -386,6 +386,80 @@ partial void ProcessListVectorStoreFilesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The requested file filter is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs index 5a490ec08..dc7641611 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs @@ -404,6 +404,43 @@ partial void ProcessListVectorStoresResponseContent( h => h.Key, h => h.Value)); } + // The vector store list is temporarily unavailable. Retry the request. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs index 32fa76d93..0cdc242ea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs @@ -346,6 +346,117 @@ partial void ProcessModifyVectorStoreResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The vector store input is invalid, the store has expired, or the store cannot be modified. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The caller is not authorized to update the vector store. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs index e6399cc2a..15a87c65c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs @@ -343,6 +343,80 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The vector store has expired or the file content is not ready. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store or file was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -380,6 +454,43 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( h => h.Key, h => h.Value)); } + // The vector store file content could not be retrieved. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs index cb98f3cfd..7c354da87 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs @@ -350,6 +350,80 @@ partial void ProcessSearchVectorStoreResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The search input or filters are invalid, or the vector store has expired. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs index 75ca76bb4..d24b65f85 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs @@ -363,6 +363,117 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The file attributes are invalid or the vector store has expired. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store or file was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The vector store is temporarily unavailable for this change or was modified concurrently. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // The request was rejected because a rate limit was exceeded. if ((int)__response.StatusCode == 429) { @@ -400,6 +511,43 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( h => h.Key, h => h.Value)); } + // The vector store file attributes could not be updated. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml index 4ab704211..5bdd220df 100644 --- a/src/libs/tryAGI.OpenAI/openapi.yaml +++ b/src/libs/tryAGI.OpenAI/openapi.yaml @@ -641,8 +641,41 @@ paths: text/event-stream: schema: $ref: "#/components/schemas/CreateSpeechResponseStreamEvent" + "400": + description: Invalid speech request, input, output format, or voice. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "401": + description: Authentication failed because the API key is missing or revoked, or + the client IP is not authorized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "403": + description: Access to a personal API organization is blocked by the + organization policy. + content: + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The voice or speech audio could not be processed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" x-oaiMeta: @@ -760,8 +793,53 @@ paths: text/event-stream: schema: $ref: "#/components/schemas/CreateTranscriptionResponseStreamEvent" + "400": + description: Invalid audio input or request parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "401": + description: Authentication failed because the API key is missing or revoked, or + the client IP is not authorized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "403": + description: Access to a personal API organization is blocked by the + organization policy. + content: + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "413": + description: The audio request exceeds the supported size limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The audio could not be processed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "502": + description: The upstream audio service connection failed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" x-oaiMeta: @@ -1358,8 +1436,53 @@ paths: oneOf: - $ref: "#/components/schemas/CreateTranslationResponseJson" - $ref: "#/components/schemas/CreateTranslationResponseVerboseJson" + "400": + description: Invalid audio input or request parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "401": + description: Authentication failed because the API key is missing or revoked, or + the client IP is not authorized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "403": + description: Access to a personal API organization is blocked by the + organization policy. + content: + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "413": + description: The audio request exceeds the supported size limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The audio could not be processed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "502": + description: The upstream audio service connection failed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" x-oaiMeta: @@ -1441,6 +1564,18 @@ paths: application/json: schema: $ref: "#/components/schemas/VoiceConsentResource" + "400": + description: Invalid consent recording or consent phrase. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The endpoint is unavailable to this caller. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: audio examples: @@ -1485,6 +1620,18 @@ paths: application/json: schema: $ref: "#/components/schemas/VoiceConsentListResource" + "400": + description: Invalid pagination parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The endpoint is unavailable or the pagination cursor was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: audio examples: @@ -1513,6 +1660,18 @@ paths: application/json: schema: $ref: "#/components/schemas/VoiceConsentResource" + "400": + description: Invalid consent recording ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The endpoint is unavailable or the consent recording was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: audio examples: @@ -1546,6 +1705,18 @@ paths: application/json: schema: $ref: "#/components/schemas/VoiceConsentResource" + "400": + description: Invalid consent recording ID or update. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The endpoint is unavailable or the consent recording was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: audio examples: @@ -1578,6 +1749,18 @@ paths: application/json: schema: $ref: "#/components/schemas/VoiceConsentDeletedResource" + "400": + description: Invalid consent recording ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The endpoint is unavailable or the consent recording was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: audio examples: @@ -1606,6 +1789,25 @@ paths: application/json: schema: $ref: "#/components/schemas/VoiceResource" + "400": + description: Invalid voice request, consent recording, or audio sample. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The endpoint is unavailable or the consent recording was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The audio sample could not be processed or the voice could not be + created. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: audio examples: @@ -1637,6 +1839,31 @@ paths: application/json: schema: $ref: "#/components/schemas/Batch" + "400": + description: The request is invalid or the account cannot create a batch. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request was rejected because a rate limit was exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: An internal error prevented the batch from being created. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "503": + description: The batch could not be created because the service is temporarily + unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: batch examples: @@ -1702,7 +1929,7 @@ paths: }, "metadata": { "customer_id": "user_123456789", - "batch_description": "Nightly eval job", + "batch_description": "Nightly eval job" } } get: @@ -1738,6 +1965,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ListBatchesResponse" + "400": + description: Invalid pagination parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: No batch was found with the specified pagination cursor. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request was rejected because a rate limit was exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: batch examples: @@ -1825,6 +2070,24 @@ paths: application/json: schema: $ref: "#/components/schemas/Batch" + "400": + description: Invalid batch ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: No batch was found with the specified ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request was rejected because a rate limit was exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: batch examples: @@ -1877,7 +2140,7 @@ paths: }, "metadata": { "customer_id": "user_123456789", - "batch_description": "Nightly eval job", + "batch_description": "Nightly eval job" } } /batches/{batch_id}/cancel: @@ -1903,6 +2166,30 @@ paths: application/json: schema: $ref: "#/components/schemas/Batch" + "400": + description: Invalid batch ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: No batch was found with the specified ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The batch's current status does not allow cancellation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request was rejected because a rate limit was exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: batch examples: @@ -1956,7 +2243,7 @@ paths: }, "metadata": { "customer_id": "user_123456789", - "batch_description": "Nightly eval job", + "batch_description": "Nightly eval job" } } /chat/completions: @@ -2018,6 +2305,20 @@ paths: application/json: schema: $ref: "#/components/schemas/ChatCompletionList" + "400": + description: Invalid pagination or filter parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + description: An internal error prevented the request from being completed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chat path: list @@ -2119,8 +2420,48 @@ paths: text/event-stream: schema: $ref: "#/components/schemas/CreateChatCompletionStreamResponse" + "400": + description: Invalid chat completion request or incompatible request parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "401": + description: Authentication failed because the API key is missing or revoked, or + the client IP is not authorized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "403": + description: Access to a personal API organization is blocked by the + organization policy. + content: + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "404": + description: The requested model or a referenced resource was not found or is + unavailable to this caller. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The chat completion could not be processed due to an internal error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" x-oaiMeta: @@ -3018,6 +3359,20 @@ paths: application/json: schema: $ref: "#/components/schemas/CreateChatCompletionResponse" + "404": + description: No stored chat completion was found with the specified ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + description: An internal error prevented the request from being completed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chat examples: @@ -3115,6 +3470,26 @@ paths: application/json: schema: $ref: "#/components/schemas/CreateChatCompletionResponse" + "400": + description: Invalid metadata update. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: No stored chat completion was found with the specified ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + description: An internal error prevented the request from being completed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chat examples: @@ -3202,6 +3577,20 @@ paths: application/json: schema: $ref: "#/components/schemas/ChatCompletionDeleted" + "404": + description: No stored chat completion was found with the specified ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + description: An internal error prevented the request from being completed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chat examples: @@ -3279,6 +3668,26 @@ paths: application/json: schema: $ref: "#/components/schemas/ChatCompletionMessageList" + "400": + description: Invalid message pagination parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: No stored chat completion was found with the specified ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + description: An internal error prevented the request from being completed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chat examples: @@ -3346,8 +3755,48 @@ paths: application/json: schema: $ref: "#/components/schemas/CreateCompletionResponse" + "400": + description: Invalid completion request or incompatible request parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "401": + description: Authentication failed because the API key is missing or revoked, or + the client IP is not authorized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "403": + description: Access to a personal API organization is blocked by the + organization policy. + content: + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "404": + description: The requested model was not found, is unavailable, or does not + support this endpoint. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The completion could not be processed due to an internal error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" x-oaiMeta: @@ -3468,8 +3917,8 @@ paths: "finish_reason": null } ], - "model": "gpt-3.5-turbo-instruct" - "system_fingerprint": "fp_44709d6fcb", + "model": "gpt-3.5-turbo-instruct", + "system_fingerprint": "fp_44709d6fcb" } /containers: get: @@ -3519,6 +3968,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ContainerListResource" + "404": + description: The container specified by `after` was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -3568,6 +4023,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ContainerResource" + "400": + description: The container configuration or supplied skill is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -3634,6 +4095,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ContainerResource" + "404": + description: The container was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -3672,6 +4139,12 @@ paths: responses: "200": description: OK + "404": + description: The container was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -3720,6 +4193,19 @@ paths: application/json: schema: $ref: "#/components/schemas/ContainerFileResource" + "400": + description: The file input is invalid, or the container file limit would be + exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The container was not found or has expired. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -3787,6 +4273,13 @@ paths: application/json: schema: $ref: "#/components/schemas/ContainerFileListResource" + "404": + description: The container was not found or has expired, or the file specified + by `after` was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -3838,6 +4331,13 @@ paths: application/json: schema: $ref: "#/components/schemas/ContainerFileResource" + "404": + description: The container was not found or has expired, or the file was not + found in the container. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -3878,6 +4378,13 @@ paths: responses: "200": description: OK + "404": + description: The container was not found or has expired, or the file was not + found in the container. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -3913,6 +4420,13 @@ paths: responses: "200": description: Success + "404": + description: The container was not found or has expired, or the file was not + found in the container. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -3973,8 +4487,27 @@ paths: application/json: schema: $ref: "#/components/schemas/ConversationItemList" + "400": + description: The items are invalid, are already in the conversation, or the + conversation is locked. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The conversation was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The conversation update could not be finalized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: conversations path: create-item @@ -4195,6 +4728,18 @@ paths: application/json: schema: $ref: "#/components/schemas/ConversationItemList" + "400": + description: The stored encrypted item content could not be validated. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The conversation or the item specified by `after` was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -4293,6 +4838,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ConversationItem" + "404": + description: The conversation or the item in that conversation was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -4370,8 +4921,26 @@ paths: application/json: schema: $ref: "#/components/schemas/ConversationResource" + "400": + description: The item cannot be removed while the conversation is locked. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The conversation or the item in that conversation was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The conversation update could not be finalized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: conversations path: delete-item @@ -4440,8 +5009,42 @@ paths: application/json: schema: $ref: "#/components/schemas/CreateEmbeddingResponse" + "400": + description: Invalid embedding input or request parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "401": + description: Authentication failed because the API key is missing or revoked, or + the client IP is not authorized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. + "403": + description: Access to a personal API organization is blocked by the + organization policy. + content: + text/plain: + schema: + type: string + description: JSON-encoded error text containing an error object and the HTTP + status. "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The embedding request could not be processed due to an internal + error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" x-oaiMeta: @@ -4707,6 +5310,12 @@ paths: application/json: schema: $ref: "#/components/schemas/Eval" + "400": + description: The evaluation input or grader configuration is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -4832,6 +5441,7 @@ paths: "item", "sample" ] + } }, "testing_criteria": [ { @@ -4894,6 +5504,12 @@ paths: application/json: schema: $ref: "#/components/schemas/Eval" + "404": + description: The evaluation was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -4968,7 +5584,7 @@ paths: ], "name": "External Data Eval", "created_at": 1739314509, - "metadata": {}, + "metadata": {} } post: operationId: updateEval @@ -5004,6 +5620,18 @@ paths: application/json: schema: $ref: "#/components/schemas/Eval" + "400": + description: The evaluation name or metadata is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The evaluation was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -5081,7 +5709,7 @@ paths: ], "name": "Updated Eval", "created_at": 1739314509, - "metadata": {"description": "Updated description"}, + "metadata": {"description": "Updated description"} } delete: operationId: deleteEval @@ -5118,12 +5746,18 @@ paths: - object - deleted - eval_id + "400": + description: The evaluation cannot be deleted while it has unfinished runs. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "404": description: Evaluation not found. content: application/json: schema: - $ref: "#/components/schemas/Error" + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -5212,6 +5846,18 @@ paths: application/json: schema: $ref: "#/components/schemas/EvalRunList" + "400": + description: The run list parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The evaluation or the run specified by `after` was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -5358,9 +6004,21 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Error" + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The evaluation or a referenced resource was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The evaluation run could not be created. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: evals examples: @@ -5548,6 +6206,18 @@ paths: application/json: schema: $ref: "#/components/schemas/EvalRun" + "400": + description: The evaluation run does not belong to the specified evaluation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The evaluation or evaluation run was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -5961,12 +6631,18 @@ paths: run_id: type: string example: evalrun_677469f564d48190807532a852da3afb + "400": + description: The evaluation run cannot be deleted until it is finished. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "404": description: Run not found content: application/json: schema: - $ref: "#/components/schemas/Error" + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -6071,6 +6747,18 @@ paths: application/json: schema: $ref: "#/components/schemas/EvalRunOutputItemList" + "400": + description: The output item list parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The evaluation or evaluation run was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -6205,6 +6893,19 @@ paths: application/json: schema: $ref: "#/components/schemas/EvalRunOutputItem" + "400": + description: The output item was not found, its identifier is invalid, or the + run does not belong to the evaluation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The evaluation or evaluation run was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -6351,6 +7052,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ListFilesResponse" + "400": + description: The file listing parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The file specified by the after cursor was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many file requests. Reduce the request rate and try again later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: files examples: @@ -6388,7 +7107,7 @@ paths: "created_at": 1613677385, "expires_at": 1677614202, "filename": "salesOverview.pdf", - "purpose": "assistants", + "purpose": "assistants" }, { "id": "file-abc456", @@ -6397,7 +7116,7 @@ paths: "created_at": 1613779121, "expires_at": 1677614202, "filename": "puppy.jsonl", - "purpose": "fine-tune", + "purpose": "fine-tune" } ], "first_id": "file-abc123", @@ -6458,6 +7177,25 @@ paths: application/json: schema: $ref: "#/components/schemas/OpenAIFile" + "400": + description: The file upload request is invalid or exceeds a file size or + storage quota limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many file requests. Reduce the request rate and try again later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The file could not be uploaded because of a server error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: files examples: @@ -6509,7 +7247,7 @@ paths: "created_at": 1677610602, "expires_at": 1677614202, "filename": "mydata.jsonl", - "purpose": "fine-tune", + "purpose": "fine-tune" } /files/{file_id}: delete: @@ -6532,6 +7270,18 @@ paths: application/json: schema: $ref: "#/components/schemas/DeleteFileResponse" + "404": + description: The file was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many file requests. Reduce the request rate and try again later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: files examples: @@ -6583,6 +7333,18 @@ paths: application/json: schema: $ref: "#/components/schemas/OpenAIFile" + "404": + description: The file was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many file requests. Reduce the request rate and try again later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: files examples: @@ -6615,7 +7377,7 @@ paths: "created_at": 1677610602, "expires_at": 1677614202, "filename": "mydata.jsonl", - "purpose": "fine-tune", + "purpose": "fine-tune" } /files/{file_id}/content: get: @@ -6635,9 +7397,35 @@ paths: "200": description: OK content: - application/json: + application/octet-stream: schema: type: string + format: binary + "400": + description: The file cannot be downloaded for its purpose or the account does + not have permission to download it. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The file was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many file requests. Reduce the request rate and try again later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The file could not be downloaded because of a server error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: files examples: @@ -6684,6 +7472,18 @@ paths: application/json: schema: $ref: "#/components/schemas/RunGraderResponse" + "400": + description: The grader definition or request is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true group: graders @@ -6924,6 +7724,18 @@ paths: application/json: schema: $ref: "#/components/schemas/ValidateGraderResponse" + "400": + description: The grader definition or request is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true group: graders @@ -7009,6 +7821,18 @@ paths: application/json: schema: $ref: "#/components/schemas/ListFineTuningCheckpointPermissionResponse" + "400": + description: The query parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -7031,7 +7855,7 @@ paths: "id": "cp_enQCFmOTGj3syEpYVhBRLTSy", "created_at": 1721764800, "project_id": "proj_iqGMw1llN8IrBb6SvvY5A1oF" - }, + } ], "first_id": "cp_zc4Q7MP6XxulcVzj4MZdwsAB", "last_id": "cp_enQCFmOTGj3syEpYVhBRLTSy", @@ -7068,6 +7892,26 @@ paths: application/json: schema: $ref: "#/components/schemas/ListFineTuningCheckpointPermissionResponse" + "400": + description: The request is invalid or checkpoint permissions cannot be changed + for the requested projects or job state. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The checkpoint or its fine-tuning job was not found, or the + checkpoint cannot be shared. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -7125,6 +7969,26 @@ paths: application/json: schema: $ref: "#/components/schemas/DeleteFineTuningCheckpointPermissionResponse" + "400": + description: The checkpoint permission cannot be removed for the requested + project or job state. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The checkpoint, permission, associated project, or fine-tuning job + was not found, or the checkpoint cannot be shared. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -7163,6 +8027,19 @@ paths: application/json: schema: $ref: "#/components/schemas/FineTuningJob" + "400": + description: The request is invalid or the organization does not meet the + requirements to create a fine-tuning job. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: A request or fine-tuning job limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -7216,7 +8093,7 @@ paths: "hyperparameters": { "batch_size": "auto", "learning_rate_multiplier": "auto", - "n_epochs": "auto", + "n_epochs": "auto" } } }, @@ -7569,7 +8446,7 @@ paths: "hyperparameters": { "batch_size": "auto", "learning_rate_multiplier": "auto", - "n_epochs": "auto", + "n_epochs": "auto" } } }, @@ -7615,7 +8492,7 @@ paths: "type": "wandb", "wandb": { "project": "my-wandb-project", - "entity": None, + "entity": null, "run_id": "ftjob-abc123" } } @@ -7626,7 +8503,7 @@ paths: "hyperparameters": { "batch_size": "auto", "learning_rate_multiplier": "auto", - "n_epochs": "auto", + "n_epochs": "auto" } } }, @@ -7673,6 +8550,18 @@ paths: application/json: schema: $ref: "#/components/schemas/ListPaginatedFineTuningJobsResponse" + "400": + description: The query parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -7748,6 +8637,18 @@ paths: application/json: schema: $ref: "#/components/schemas/FineTuningJob" + "404": + description: The fine-tuning job was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -7834,6 +8735,24 @@ paths: application/json: schema: $ref: "#/components/schemas/FineTuningJob" + "400": + description: The fine-tuning job cannot be cancelled in its current state. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The fine-tuning job was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -7912,6 +8831,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ListFineTuningJobCheckpointsResponse" + "400": + description: The query parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The fine-tuning job was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -7989,6 +8926,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ListFineTuningJobEventsResponse" + "400": + description: The query parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The fine-tuning job was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -8071,6 +9026,26 @@ paths: application/json: schema: $ref: "#/components/schemas/FineTuningJob" + "400": + description: The fine-tuning job cannot be paused in its current state or does + not support pausing. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The fine-tuning job was not found or is not accessible, or this + operation is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -8135,6 +9110,26 @@ paths: application/json: schema: $ref: "#/components/schemas/FineTuningJob" + "400": + description: The fine-tuning job cannot be resumed in its current state or does + not support resuming. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The fine-tuning job was not found or is not accessible, or this + operation is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: A request or fine-tuning job limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: fine-tuning examples: @@ -8232,8 +9227,33 @@ paths: text/event-stream: schema: $ref: "#/components/schemas/ImageEditStreamEvent" + "400": + description: Invalid image request, including invalid DALL-E parameters or input. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The project does not have access to the requested model. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "410": + description: The requested DALL-E image endpoint is unavailable because it has + been retired. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The image could not be generated or processed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" x-oaiMeta: @@ -8449,8 +9469,33 @@ paths: text/event-stream: schema: $ref: "#/components/schemas/ImageGenStreamEvent" + "400": + description: Invalid image request, including invalid DALL-E parameters or input. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The project does not have access to the requested model. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "410": + description: The requested DALL-E image endpoint is unavailable because it has + been retired. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The image could not be generated or processed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" x-oaiMeta: @@ -8588,6 +9633,51 @@ paths: application/json: schema: $ref: "#/components/schemas/ImagesResponse" + "400": + description: Invalid image or request, or the request cannot be processed for + this account. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The project does not have access to the requested model. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "410": + description: The image variations endpoint is no longer available. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The image rate limit was exceeded. + headers: + X-RateLimit-Limit-Images: + description: The image limit for the rate-limit window. + schema: + type: number + X-RateLimit-Remaining-Images: + description: The number of images remaining in the rate-limit window. + schema: + type: number + minimum: 0 + X-RateLimit-Reset-Images: + description: The number of seconds until the rate-limit window resets. + schema: + type: integer + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The image variation could not be generated or processed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: images examples: @@ -8678,6 +9768,46 @@ paths: transport: type: webrtc sdp: + "400": + description: Invalid Live session request. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + text/plain: + schema: + type: string + "413": + description: The Live session request exceeds the supported size limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + text/plain: + schema: + type: string + "429": + description: The session could not start because a rate or quota limit was + exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: An internal error occurred. The response body is plain text. + content: + text/plain: + schema: + type: string + "503": + description: The session is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + text/plain: + schema: + type: string x-oaiMeta: group: live returns: Returns 201 Created with the session identifier in session.id and SDP @@ -8719,6 +9849,44 @@ paths: responses: "200": description: Session accept request accepted. + "400": + description: Invalid request body or headers. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The session or call was not found or is unavailable for this + operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The session or call can no longer accept this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The session could not start because a rate or quota limit was + exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: An internal error occurred. The response body is plain text. + content: + text/plain: + schema: + type: string + "503": + description: The session is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: live-sessions returns: Returns 200 OK when the control request succeeds. @@ -8749,6 +9917,43 @@ paths: application/json: schema: $ref: "#/components/schemas/LiveCreateResponse" + "400": + description: Invalid Live session request. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: Invalid session ID. + content: + text/plain: + schema: + type: string + "413": + description: The Live session request exceeds the supported size limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The session could not start because a rate or quota limit was + exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: An internal error occurred. The response body is plain text. + content: + text/plain: + schema: + type: string + "503": + description: The session is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: live returns: The new session identifier in session.id and SDP answer in @@ -8779,6 +9984,13 @@ paths: responses: "200": description: Session hangup request accepted. + "404": + description: The session or call was not found or is unavailable for this + operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: live-sessions returns: Returns 200 OK when the control request succeeds. @@ -8808,6 +10020,25 @@ paths: responses: "200": description: Session refer request accepted. + "400": + description: Invalid request body or headers. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The session or call was not found or is unavailable for this + operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: An internal error occurred. The response body is plain text. + content: + text/plain: + schema: + type: string x-oaiMeta: group: live-sessions returns: Returns 200 OK when the control request succeeds. @@ -8837,6 +10068,31 @@ paths: responses: "200": description: Session reject request accepted. + "400": + description: Invalid request body or headers. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The session or call was not found or is unavailable for this + operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The session or call can no longer accept this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: An internal error occurred. The response body is plain text. + content: + text/plain: + schema: + type: string x-oaiMeta: group: live-sessions returns: Returns 200 OK when the control request succeeds. @@ -8855,6 +10111,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ListModelsResponse" + "403": + description: The API credential does not have permission to list models. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" x-oaiMeta: group: models examples: @@ -8917,7 +10179,7 @@ paths: "created": 1686935002, "owned_by": "openai", "shutdown_date": "2026-10-23" - }, + } ] } /models/{model}: @@ -8943,6 +10205,18 @@ paths: application/json: schema: $ref: "#/components/schemas/Model" + "403": + description: The API credential does not have permission to retrieve models. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The model was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: models examples: @@ -9009,6 +10283,21 @@ paths: application/json: schema: $ref: "#/components/schemas/DeleteModelResponse" + "403": + description: Insufficient permissions to delete the model. Model deletion + requires the Owner role in the organization and a credential that + permits deletion. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The model was not found, is not accessible, or cannot be deleted + through this endpoint. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: models examples: @@ -9084,8 +10373,27 @@ paths: application/json: schema: $ref: "#/components/schemas/CreateModerationResponse" + "400": + description: Invalid moderation input or unsupported request parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: Access to the requested moderation model was denied. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The moderation request could not be processed due to an internal + error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" x-oaiMeta: @@ -9369,6 +10677,18 @@ paths: application/json: schema: $ref: "#/components/schemas/ApiKeyList" + "400": + description: The API key listing parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" x-oaiMeta: group: administration examples: @@ -9435,6 +10755,24 @@ paths: application/json: schema: $ref: "#/components/schemas/AdminApiKeyCreateResponse" + "400": + description: The API key creation request is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The created API key could not be found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -9488,6 +10826,18 @@ paths: application/json: schema: $ref: "#/components/schemas/AdminApiKey" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The API key was not found or is not available to this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -9551,6 +10901,18 @@ paths: - id - object - deleted + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The API key was not found or is not available to this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -9692,6 +11054,19 @@ paths: application/json: schema: $ref: "#/components/schemas/ListAuditLogsResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: No audit log was found with the specified pagination cursor. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -9722,7 +11097,7 @@ paths: }, "project.archived": { "id": "proj_abc" - }, + } }, { "id": "audit_log-yyy__20240101", @@ -9755,7 +11130,7 @@ paths: "data": { "scopes": ["resource_2.operation_2"] } - }, + } } ], "first_id": "audit_log-xxx__20240101", @@ -9809,6 +11184,19 @@ paths: application/json: schema: $ref: "#/components/schemas/ListCertificatesResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -9832,7 +11220,7 @@ paths: "valid_at": 12345667, "expires_at": 12345678 } - }, + } ], "first_id": "cert_abc", "last_id": "cert_abc", @@ -9865,6 +11253,19 @@ paths: application/json: schema: $ref: "#/components/schemas/Certificate" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -9921,8 +11322,34 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationCertificateActivationResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A certificate was not found in this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The certificate update could not be completed because of a server + error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -9963,8 +11390,8 @@ paths: "valid_at": 12345667, "expires_at": 12345678 } - }, - ], + } + ] } /organization/certificates/deactivate: post: @@ -9994,8 +11421,34 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationCertificateDeactivationResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A certificate was not found in this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The certificate update could not be completed because of a server + error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -10036,8 +11489,8 @@ paths: "valid_at": 12345667, "expires_at": 12345678 } - }, - ], + } + ] } /organization/certificates/{certificate_id}: get: @@ -10077,6 +11530,25 @@ paths: application/json: schema: $ref: "#/components/schemas/Certificate" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A certificate was not found in this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -10128,8 +11600,34 @@ paths: application/json: schema: $ref: "#/components/schemas/Certificate" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A certificate was not found in this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The certificate update could not be completed because of a server + error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -10181,6 +11679,25 @@ paths: application/json: schema: $ref: "#/components/schemas/DeleteCertificateResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A certificate was not found in this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -10290,6 +11807,19 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -10343,6 +11873,18 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationDataRetention" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The organization was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -10378,6 +11920,24 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationDataRetention" + "400": + description: The requested data retention setting or transition is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The organization was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -10444,6 +12004,26 @@ paths: application/json: schema: $ref: "#/components/schemas/GroupListResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -10492,8 +12072,40 @@ paths: application/json: schema: $ref: "#/components/schemas/GroupResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "422": + description: The organization has reached its maximum number of groups. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The group operation could not be completed because of a server error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -10536,8 +12148,34 @@ paths: application/json: schema: $ref: "#/components/schemas/GroupResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The group operation could not be completed because of a server error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -10585,8 +12223,34 @@ paths: application/json: schema: $ref: "#/components/schemas/GroupResourceWithSuccess" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The group operation could not be completed because of a server error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -10629,6 +12293,25 @@ paths: application/json: schema: $ref: "#/components/schemas/GroupDeletedResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -10695,6 +12378,26 @@ paths: application/json: schema: $ref: "#/components/schemas/RoleListResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -10762,6 +12465,26 @@ paths: application/json: schema: $ref: "#/components/schemas/GroupRoleAssignment" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -10827,6 +12550,26 @@ paths: application/json: schema: $ref: "#/components/schemas/AssignedRoleDetails" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -10883,6 +12626,26 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedRoleAssignmentResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -10950,8 +12713,34 @@ paths: application/json: schema: $ref: "#/components/schemas/UserListResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "502": + description: The upstream group service returned an invalid pagination cursor. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11077,6 +12866,26 @@ paths: application/json: schema: $ref: "#/components/schemas/GroupMemberUser" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -11202,6 +13011,31 @@ paths: application/json: schema: $ref: "#/components/schemas/InviteListResponse" + "400": + description: The invite listing parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The invite specified by the after cursor was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11252,6 +13086,26 @@ paths: application/json: schema: $ref: "#/components/schemas/Invite" + "400": + description: The invite request is invalid or the user has already joined or + been invited. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11318,6 +13172,37 @@ paths: application/json: schema: $ref: "#/components/schemas/Invite" + "400": + description: The invite request is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The invite was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The invite could not be retrieved because of a server error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11447,6 +13332,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectListResponse" + "400": + description: The project listing parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project specified by the after cursor was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11495,6 +13405,26 @@ paths: application/json: schema: $ref: "#/components/schemas/Project" + "400": + description: The project creation request is invalid or contains incompatible + settings. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11538,6 +13468,25 @@ paths: application/json: schema: $ref: "#/components/schemas/Project" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11590,6 +13539,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A requested project, user, service account, or API key was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11659,6 +13627,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectApiKeyListResponse" + "400": + description: The listing parameters are invalid or the project is archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11724,6 +13717,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectApiKey" + "400": + description: The project is archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or API key was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11793,6 +13811,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A requested project, user, service account, or API key was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11831,6 +13868,32 @@ paths: application/json: schema: $ref: "#/components/schemas/Project" + "400": + description: The project is already archived or is the default project and + cannot be archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -11902,6 +13965,19 @@ paths: application/json: schema: $ref: "#/components/schemas/ListProjectCertificatesResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -11925,7 +14001,7 @@ paths: "valid_at": 12345667, "expires_at": 12345678 } - }, + } ], "first_id": "cert_abc", "last_id": "cert_abc", @@ -11966,8 +14042,34 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationProjectCertificateActivationResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A certificate was not found in this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The certificate update could not be completed because of a server + error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12004,8 +14106,8 @@ paths: "valid_at": 12345667, "expires_at": 12345678 } - }, - ], + } + ] } /organization/projects/{project_id}/certificates/deactivate: post: @@ -12039,8 +14141,34 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationProjectCertificateDeactivationResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A certificate was not found in this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The certificate update could not be completed because of a server + error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12077,8 +14205,8 @@ paths: "valid_at": 12345667, "expires_at": 12345678 } - }, - ], + } + ] } /organization/projects/{project_id}/data_retention: get: @@ -12103,6 +14231,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectDataRetention" + "400": + description: The project ID is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The organization or project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12145,6 +14291,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectDataRetention" + "400": + description: The requested data retention setting or transition is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The organization or project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12210,6 +14374,26 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectGroupListResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -12264,8 +14448,34 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectGroup" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The group operation could not be completed because of a server error. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12327,6 +14537,26 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectGroup" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -12374,6 +14604,26 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectGroupDeletedResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested group, user, or project + was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -12412,6 +14662,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectHostedToolPermissions" + "400": + description: The project ID is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12467,6 +14742,37 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectHostedToolPermissions" + "400": + description: The hosted tool permission request is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The requested project setting conflicts with the organization policy. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12524,6 +14830,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectModelPermissions" + "400": + description: The project is archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or model permission settings were not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12570,6 +14901,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectModelPermissions" + "400": + description: The model permission request is invalid or the project is archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12614,6 +14970,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectModelPermissionsDeleteResponse" + "400": + description: The project is archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or model permission settings were not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12679,6 +15060,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectRateLimitListResponse" + "400": + description: The rate limit listing parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or pagination cursor was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12751,6 +15150,18 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12824,6 +15235,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A requested project, user, service account, or API key was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12884,6 +15314,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A requested project, user, service account, or API key was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12939,6 +15388,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectServiceAccount" + "400": + description: The project is archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or service account was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -12990,6 +15464,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectServiceAccount" + "400": + description: The service account update is invalid or the project is archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or service account was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13143,6 +15642,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectSpendAlertListResource" + "400": + description: The spend alert listing parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or spend alert pagination cursor was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13201,6 +15718,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectSpendAlert" + "400": + description: The spend alert request is invalid or conflicts with the hard spend + limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13261,6 +15797,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectSpendAlert" + "400": + description: The project ID is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or spend alert was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13317,6 +15871,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectSpendAlert" + "400": + description: The spend alert update is invalid or conflicts with the hard spend + limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or spend alert was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13376,6 +15949,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectSpendAlertDeletedResource" + "400": + description: The project ID is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or spend alert was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13438,6 +16029,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A requested project, user, service account, or API key was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13577,6 +16187,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectUser" + "400": + description: The project is archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or user was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13635,6 +16270,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A requested project, user, service account, or API key was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13696,6 +16350,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: A requested project, user, service account, or API key was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -13753,6 +16426,26 @@ paths: application/json: schema: $ref: "#/components/schemas/PublicRoleListResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -13805,6 +16498,26 @@ paths: application/json: schema: $ref: "#/components/schemas/Role" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -13859,6 +16572,19 @@ paths: application/json: schema: $ref: "#/components/schemas/Role" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -13912,6 +16638,26 @@ paths: application/json: schema: $ref: "#/components/schemas/Role" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -13966,6 +16712,26 @@ paths: application/json: schema: $ref: "#/components/schemas/RoleDeletedResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -14032,6 +16798,24 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationSpendAlertListResource" + "400": + description: The spend alert listing parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The spend alert specified by the after cursor was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -14083,6 +16867,19 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationSpendAlert" + "400": + description: The spend alert request is invalid or conflicts with the hard spend + limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" x-oaiMeta: group: administration examples: @@ -14137,6 +16934,18 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationSpendAlert" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The spend alert was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -14188,6 +16997,25 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationSpendAlert" + "400": + description: The spend alert update is invalid or conflicts with the hard spend + limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The spend alert was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -14242,6 +17070,18 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationSpendAlertDeletedResource" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The spend alert was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -14361,6 +17201,19 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -14499,6 +17352,19 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -14609,14 +17475,184 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "429": + $ref: "#/components/responses/TooManyRequests" + x-oaiMeta: + group: usage-code-interpreter-sessions + examples: + request: + curl: | + curl "https://api.openai.com/v1/organization/usage/code_interpreter_sessions?start_time=1730419200&limit=1" \ + -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ + -H "Content-Type: application/json" + response: > + { + "object": "page", + "data": [ + { + "object": "bucket", + "start_time": 1730419200, + "end_time": 1730505600, + "results": [ + { + "object": "organization.usage.code_interpreter_sessions.result", + "num_sessions": 1, + "project_id": null + } + ] + } + ], + "has_more": false, + "next_page": null + } + /organization/usage/completions: + get: + security: + - AdminApiKeyAuth: [] + summary: Completions + description: Get completions usage details for the organization. + operationId: usage-completions + tags: + - Usage + parameters: + - name: start_time + in: query + description: Start time (Unix seconds) of the query time range, inclusive. + required: true + schema: + type: integer + - name: end_time + in: query + description: End time (Unix seconds) of the query time range, exclusive. + required: false + schema: + type: integer + - name: bucket_width + in: query + description: Width of each time bucket in response. Currently `1m`, `1h` and + `1d` are supported, default to `1d`. + required: false + schema: + type: string + enum: + - 1m + - 1h + - 1d + default: 1d + - name: project_ids + in: query + description: Return only usage for these projects. + required: false + schema: + type: array + items: + type: string + - name: user_ids + in: query + description: Return only usage for these users. + required: false + schema: + type: array + items: + type: string + - name: api_key_ids + in: query + description: Return only usage for these API keys. + required: false + schema: + type: array + items: + type: string + - name: models + in: query + description: Return only usage for these models. + required: false + schema: + type: array + items: + type: string + - name: batch + in: query + description: > + If `true`, return batch jobs only. If `false`, return non-batch jobs + only. By default, return both. + required: false + schema: + type: boolean + - name: group_by + in: query + description: Group the usage data by the specified fields. Support fields + include `project_id`, `user_id`, `api_key_id`, `model`, `batch`, + `service_tier` or any combination of them. + required: false + schema: + type: array + items: + type: string + enum: + - project_id + - user_id + - api_key_id + - model + - batch + - service_tier + - name: limit + in: query + description: | + Specifies the number of buckets to return. + - `bucket_width=1d`: default: 7, max: 31 + - `bucket_width=1h`: default: 24, max: 168 + - `bucket_width=1m`: default: 60, max: 1440 + required: false + schema: + type: integer + - name: page + in: query + description: A cursor for use in pagination. Corresponding to the `next_page` + field from the previous response. + schema: + type: string + responses: + "200": + description: Usage data retrieved successfully. + content: + application/json: + schema: + $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: - group: usage-code-interpreter-sessions + group: usage-completions examples: request: curl: | - curl "https://api.openai.com/v1/organization/usage/code_interpreter_sessions?start_time=1730419200&limit=1" \ + curl "https://api.openai.com/v1/organization/usage/completions?start_time=1730419200&limit=1" \ -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ -H "Content-Type: application/json" response: > @@ -14629,23 +17665,42 @@ paths: "end_time": 1730505600, "results": [ { - "object": "organization.usage.code_interpreter_sessions.result", - "num_sessions": 1, - "project_id": null + "object": "organization.usage.completions.result", + "input_tokens": 1000, + "input_cached_tokens": 400, + "input_cache_write_tokens": 100, + "input_uncached_tokens": 500, + "output_tokens": 500, + "input_text_tokens": 400, + "output_text_tokens": 400, + "input_cached_text_tokens": 300, + "input_audio_tokens": 50, + "input_cached_audio_tokens": 50, + "output_audio_tokens": 50, + "input_image_tokens": 50, + "input_cached_image_tokens": 50, + "output_image_tokens": 50, + "num_model_requests": 5, + "project_id": null, + "user_id": null, + "api_key_id": null, + "model": null, + "batch": null, + "service_tier": null } ] } ], - "has_more": false, - "next_page": null + "has_more": true, + "next_page": "page_AAAAAGdGxdEiJdKOAAAAAGcqsYA=" } - /organization/usage/completions: + /organization/usage/embeddings: get: security: - AdminApiKeyAuth: [] - summary: Completions - description: Get completions usage details for the organization. - operationId: usage-completions + summary: Embeddings + description: Get embeddings usage details for the organization. + operationId: usage-embeddings tags: - Usage parameters: @@ -14705,19 +17760,11 @@ paths: type: array items: type: string - - name: batch - in: query - description: > - If `true`, return batch jobs only. If `false`, return non-batch jobs - only. By default, return both. - required: false - schema: - type: boolean - name: group_by in: query description: Group the usage data by the specified fields. Support fields - include `project_id`, `user_id`, `api_key_id`, `model`, `batch`, - `service_tier` or any combination of them. + include `project_id`, `user_id`, `api_key_id`, `model` or any + combination of them. required: false schema: type: array @@ -14728,8 +17775,6 @@ paths: - user_id - api_key_id - model - - batch - - service_tier - name: limit in: query description: | @@ -14753,14 +17798,27 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: - group: usage-completions + group: usage-embeddings examples: request: curl: | - curl "https://api.openai.com/v1/organization/usage/completions?start_time=1730419200&limit=1" \ + curl "https://api.openai.com/v1/organization/usage/embeddings?start_time=1730419200&limit=1" \ -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ -H "Content-Type: application/json" response: > @@ -14773,42 +17831,27 @@ paths: "end_time": 1730505600, "results": [ { - "object": "organization.usage.completions.result", - "input_tokens": 1000, - "input_cached_tokens": 400, - "input_cache_write_tokens": 100, - "input_uncached_tokens": 500, - "output_tokens": 500, - "input_text_tokens": 400, - "output_text_tokens": 400, - "input_cached_text_tokens": 300, - "input_audio_tokens": 50, - "input_cached_audio_tokens": 50, - "output_audio_tokens": 50, - "input_image_tokens": 50, - "input_cached_image_tokens": 50, - "output_image_tokens": 50, - "num_model_requests": 5, + "object": "organization.usage.embeddings.result", + "input_tokens": 16, + "num_model_requests": 2, "project_id": null, "user_id": null, "api_key_id": null, - "model": null, - "batch": null, - "service_tier": null + "model": null } ] } ], - "has_more": true, - "next_page": "page_AAAAAGdGxdEiJdKOAAAAAGcqsYA=" + "has_more": false, + "next_page": null } - /organization/usage/embeddings: + /organization/usage/file_search_calls: get: security: - AdminApiKeyAuth: [] - summary: Embeddings - description: Get embeddings usage details for the organization. - operationId: usage-embeddings + summary: File search calls + description: Get file search calls usage details for the organization. + operationId: usage-file-search-calls tags: - Usage parameters: @@ -14860,9 +17903,9 @@ paths: type: array items: type: string - - name: models + - name: vector_store_ids in: query - description: Return only usage for these models. + description: Return only usage for these vector stores. required: false schema: type: array @@ -14871,8 +17914,8 @@ paths: - name: group_by in: query description: Group the usage data by the specified fields. Support fields - include `project_id`, `user_id`, `api_key_id`, `model` or any - combination of them. + include `project_id`, `user_id`, `api_key_id`, `vector_store_id` or + any combination of them. required: false schema: type: array @@ -14882,7 +17925,7 @@ paths: - project_id - user_id - api_key_id - - model + - vector_store_id - name: limit in: query description: | @@ -14906,14 +17949,27 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: - group: usage-embeddings + group: usage-file-search-calls examples: request: curl: | - curl "https://api.openai.com/v1/organization/usage/embeddings?start_time=1730419200&limit=1" \ + curl "https://api.openai.com/v1/organization/usage/file_search_calls?start_time=1730419200&limit=1" \ -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ -H "Content-Type: application/json" response: > @@ -14926,13 +17982,12 @@ paths: "end_time": 1730505600, "results": [ { - "object": "organization.usage.embeddings.result", - "input_tokens": 16, - "num_model_requests": 2, + "object": "organization.usage.file_searches.result", + "num_requests": 2, "project_id": null, "user_id": null, "api_key_id": null, - "model": null + "vector_store_id": null } ] } @@ -14940,13 +17995,13 @@ paths: "has_more": false, "next_page": null } - /organization/usage/file_search_calls: + /organization/usage/images: get: security: - AdminApiKeyAuth: [] - summary: File search calls - description: Get file search calls usage details for the organization. - operationId: usage-file-search-calls + summary: Images + description: Get images usage details for the organization. + operationId: usage-images tags: - Usage parameters: @@ -14974,6 +18029,36 @@ paths: - 1h - 1d default: 1d + - name: sources + in: query + description: Return only usages for these sources. Possible values are + `image.generation`, `image.edit`, `image.variation` or any + combination of them. + required: false + schema: + type: array + items: + type: string + enum: + - image.generation + - image.edit + - image.variation + - name: sizes + in: query + description: Return only usages for these image sizes. Possible values are + `256x256`, `512x512`, `1024x1024`, `1792x1792`, `1024x1792` or any + combination of them. + required: false + schema: + type: array + items: + type: string + enum: + - 256x256 + - 512x512 + - 1024x1024 + - 1792x1792 + - 1024x1792 - name: project_ids in: query description: Return only usage for these projects. @@ -14998,9 +18083,9 @@ paths: type: array items: type: string - - name: vector_store_ids + - name: models in: query - description: Return only usage for these vector stores. + description: Return only usage for these models. required: false schema: type: array @@ -15009,8 +18094,8 @@ paths: - name: group_by in: query description: Group the usage data by the specified fields. Support fields - include `project_id`, `user_id`, `api_key_id`, `vector_store_id` or - any combination of them. + include `project_id`, `user_id`, `api_key_id`, `model`, `size`, + `source` or any combination of them. required: false schema: type: array @@ -15020,7 +18105,9 @@ paths: - project_id - user_id - api_key_id - - vector_store_id + - model + - size + - source - name: limit in: query description: | @@ -15044,17 +18131,30 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: - group: usage-file-search-calls + group: usage-images examples: request: curl: | - curl "https://api.openai.com/v1/organization/usage/file_search_calls?start_time=1730419200&limit=1" \ + curl "https://api.openai.com/v1/organization/usage/images?start_time=1730419200&limit=1" \ -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ -H "Content-Type: application/json" - response: > + response: | { "object": "page", "data": [ @@ -15064,12 +18164,15 @@ paths: "end_time": 1730505600, "results": [ { - "object": "organization.usage.file_searches.result", - "num_requests": 2, + "object": "organization.usage.images.result", + "images": 2, + "num_model_requests": 2, + "size": null, + "source": null, "project_id": null, "user_id": null, "api_key_id": null, - "vector_store_id": null + "model": null } ] } @@ -15077,13 +18180,13 @@ paths: "has_more": false, "next_page": null } - /organization/usage/images: + /organization/usage/moderations: get: security: - AdminApiKeyAuth: [] - summary: Images - description: Get images usage details for the organization. - operationId: usage-images + summary: Moderations + description: Get moderations usage details for the organization. + operationId: usage-moderations tags: - Usage parameters: @@ -15111,36 +18214,6 @@ paths: - 1h - 1d default: 1d - - name: sources - in: query - description: Return only usages for these sources. Possible values are - `image.generation`, `image.edit`, `image.variation` or any - combination of them. - required: false - schema: - type: array - items: - type: string - enum: - - image.generation - - image.edit - - image.variation - - name: sizes - in: query - description: Return only usages for these image sizes. Possible values are - `256x256`, `512x512`, `1024x1024`, `1792x1792`, `1024x1792` or any - combination of them. - required: false - schema: - type: array - items: - type: string - enum: - - 256x256 - - 512x512 - - 1024x1024 - - 1792x1792 - - 1024x1792 - name: project_ids in: query description: Return only usage for these projects. @@ -15176,8 +18249,8 @@ paths: - name: group_by in: query description: Group the usage data by the specified fields. Support fields - include `project_id`, `user_id`, `api_key_id`, `model`, `size`, - `source` or any combination of them. + include `project_id`, `user_id`, `api_key_id`, `model` or any + combination of them. required: false schema: type: array @@ -15188,8 +18261,6 @@ paths: - user_id - api_key_id - model - - size - - source - name: limit in: query description: | @@ -15213,146 +18284,19 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" - "429": - $ref: "#/components/responses/TooManyRequests" - x-oaiMeta: - group: usage-images - examples: - request: - curl: | - curl "https://api.openai.com/v1/organization/usage/images?start_time=1730419200&limit=1" \ - -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ - -H "Content-Type: application/json" - response: | - { - "object": "page", - "data": [ - { - "object": "bucket", - "start_time": 1730419200, - "end_time": 1730505600, - "results": [ - { - "object": "organization.usage.images.result", - "images": 2, - "num_model_requests": 2, - "size": null, - "source": null, - "project_id": null, - "user_id": null, - "api_key_id": null, - "model": null - } - ] - } - ], - "has_more": false, - "next_page": null - } - /organization/usage/moderations: - get: - security: - - AdminApiKeyAuth: [] - summary: Moderations - description: Get moderations usage details for the organization. - operationId: usage-moderations - tags: - - Usage - parameters: - - name: start_time - in: query - description: Start time (Unix seconds) of the query time range, inclusive. - required: true - schema: - type: integer - - name: end_time - in: query - description: End time (Unix seconds) of the query time range, exclusive. - required: false - schema: - type: integer - - name: bucket_width - in: query - description: Width of each time bucket in response. Currently `1m`, `1h` and - `1d` are supported, default to `1d`. - required: false - schema: - type: string - enum: - - 1m - - 1h - - 1d - default: 1d - - name: project_ids - in: query - description: Return only usage for these projects. - required: false - schema: - type: array - items: - type: string - - name: user_ids - in: query - description: Return only usage for these users. - required: false - schema: - type: array - items: - type: string - - name: api_key_ids - in: query - description: Return only usage for these API keys. - required: false - schema: - type: array - items: - type: string - - name: models - in: query - description: Return only usage for these models. - required: false - schema: - type: array - items: - type: string - - name: group_by - in: query - description: Group the usage data by the specified fields. Support fields - include `project_id`, `user_id`, `api_key_id`, `model` or any - combination of them. - required: false - schema: - type: array - items: - type: string - enum: - - project_id - - user_id - - api_key_id - - model - - name: limit - in: query - description: | - Specifies the number of buckets to return. - - `bucket_width=1d`: default: 7, max: 31 - - `bucket_width=1h`: default: 24, max: 168 - - `bucket_width=1m`: default: 60, max: 1440 - required: false - schema: - type: integer - - name: page - in: query - description: A cursor for use in pagination. Corresponding to the `next_page` - field from the previous response. - schema: - type: string - responses: - "200": - description: Usage data retrieved successfully. + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. content: application/json: schema: - $ref: "#/components/schemas/UsageResponse" + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -15463,6 +18407,19 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -15610,6 +18567,19 @@ paths: application/json: schema: $ref: "#/components/schemas/UsageResponse" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -15689,6 +18659,25 @@ paths: application/json: schema: $ref: "#/components/schemas/UserListResponse" + "400": + description: The user listing parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -15737,6 +18726,25 @@ paths: application/json: schema: $ref: "#/components/schemas/User" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The user was not found in this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -15783,6 +18791,31 @@ paths: application/json: schema: $ref: "#/components/schemas/User" + "400": + description: The requested user role is invalid or the update is not permitted. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The user was not found in this organization. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -15917,6 +18950,26 @@ paths: application/json: schema: $ref: "#/components/schemas/RoleListResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -15985,6 +19038,26 @@ paths: application/json: schema: $ref: "#/components/schemas/UserRoleAssignment" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16052,6 +19125,26 @@ paths: application/json: schema: $ref: "#/components/schemas/AssignedRoleDetails" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16108,6 +19201,26 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedRoleAssignmentResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16176,6 +19289,26 @@ paths: application/json: schema: $ref: "#/components/schemas/RoleListResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16249,6 +19382,26 @@ paths: application/json: schema: $ref: "#/components/schemas/GroupRoleAssignment" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16320,6 +19473,26 @@ paths: application/json: schema: $ref: "#/components/schemas/AssignedRoleDetails" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16382,6 +19555,26 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedRoleAssignmentResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16446,6 +19639,26 @@ paths: application/json: schema: $ref: "#/components/schemas/PublicRoleListResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16506,6 +19719,26 @@ paths: application/json: schema: $ref: "#/components/schemas/Role" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16567,6 +19800,19 @@ paths: application/json: schema: $ref: "#/components/schemas/Role" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16625,6 +19871,26 @@ paths: application/json: schema: $ref: "#/components/schemas/Role" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16684,6 +19950,26 @@ paths: application/json: schema: $ref: "#/components/schemas/RoleDeletedResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16753,6 +20039,26 @@ paths: application/json: schema: $ref: "#/components/schemas/RoleListResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16826,6 +20132,26 @@ paths: application/json: schema: $ref: "#/components/schemas/UserRoleAssignment" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16898,6 +20224,26 @@ paths: application/json: schema: $ref: "#/components/schemas/AssignedRoleDetails" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -16960,6 +20306,26 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedRoleAssignmentResource" + "400": + description: The request parameters are invalid or the requested operation + cannot be performed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The endpoint is unavailable or a requested resource was not found + in this organization or project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -17090,6 +20456,25 @@ paths: responses: "200": description: Call accepted successfully. + "404": + description: The session or call was not found or is unavailable for this + operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The session or call can no longer accept this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: An internal error occurred. The response body is plain text. + content: + text/plain: + schema: + type: string x-oaiMeta: group: realtime-calls returns: >- @@ -17133,6 +20518,13 @@ paths: responses: "200": description: Call hangup initiated successfully. + "404": + description: The session or call was not found or is unavailable for this + operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: realtime-calls returns: Returns `200 OK` when OpenAI begins terminating the realtime call. @@ -17170,6 +20562,19 @@ paths: responses: "200": description: Call referred successfully. + "404": + description: The session or call was not found or is unavailable for this + operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: An internal error occurred. The response body is plain text. + content: + text/plain: + schema: + type: string x-oaiMeta: group: realtime-calls returns: Returns `200 OK` once the REFER is handed off to your SIP provider. @@ -17213,6 +20618,25 @@ paths: responses: "200": description: Call rejected successfully. + "404": + description: The session or call was not found or is unavailable for this + operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The session or call can no longer accept this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: An internal error occurred. The response body is plain text. + content: + text/plain: + schema: + type: string x-oaiMeta: group: realtime-calls returns: Returns `200 OK` after OpenAI sends the SIP status code to the caller. @@ -17274,6 +20698,24 @@ paths: application/json: schema: $ref: "#/components/schemas/RealtimeCreateClientSecretResponse" + "400": + description: Invalid session configuration or model. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The requested model was not found or is unavailable to this caller. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The requested model's availability could not be determined. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: realtime examples: @@ -17322,7 +20764,7 @@ paths: "transcription": null, "noise_reduction": null, "turn_detection": { - "type": "server_vad", + "type": "server_vad" } }, "output": { @@ -17526,6 +20968,24 @@ paths: application/json: schema: $ref: "#/components/schemas/RealtimeTranslationClientSecretCreateResponse" + "400": + description: Invalid session configuration or model. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The requested model was not found or is unavailable to this caller. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The requested model's availability could not be determined. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: realtime examples: @@ -17623,6 +21083,19 @@ paths: text/event-stream: schema: $ref: "#/components/schemas/ResponseStreamEvent" + "400": + description: Invalid response request or incompatible request parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The requested model or a referenced resource was not found or is + unavailable to this caller. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" "503": @@ -18970,6 +22443,12 @@ paths: application/json: schema: $ref: "#/components/schemas/Response" + "404": + description: The response was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -19075,7 +22554,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Error" + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -19134,7 +22613,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Error" + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -19265,6 +22744,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ResponseItemList" + "404": + description: The response or the item specified by `after` was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -21989,6 +25474,20 @@ paths: application/json: schema: $ref: "#/components/schemas/Upload" + "400": + description: The upload request is invalid or exceeds a file size or storage + quota limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many upload requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: uploads examples: @@ -22043,6 +25542,33 @@ paths: application/json: schema: $ref: "#/components/schemas/Upload" + "400": + description: The upload is no longer pending or is already being completed and + cannot be cancelled. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The upload was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "410": + description: The upload has expired. Create a new upload before adding parts or + completing it. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many upload requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: uploads examples: @@ -22108,6 +25634,40 @@ paths: application/json: schema: $ref: "#/components/schemas/Upload" + "400": + description: The upload cannot be completed in its current state, the parts are + invalid, or the uploaded size does not match the specified size. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The upload was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "410": + description: The upload has expired. Create a new upload before adding parts or + completing it. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many upload requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The upload could not be completed. Retry the same request, + preserving the part order and MD5 value. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: uploads examples: @@ -22134,7 +25694,7 @@ paths: "created_at": 1719186911, "expires_at": 1719127296, "filename": "training_examples.jsonl", - "purpose": "fine-tune", + "purpose": "fine-tune" } } /uploads/{upload_id}/parts: @@ -22171,6 +25731,39 @@ paths: application/json: schema: $ref: "#/components/schemas/UploadPart" + "400": + description: The upload cannot accept more parts, or the part exceeds an upload + size limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The upload was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "410": + description: The upload has expired. Create a new upload before adding parts or + completing it. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many upload requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The part could not be uploaded. Try the request again. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: uploads examples: @@ -22241,6 +25834,12 @@ paths: $ref: "#/components/schemas/ListVectorStoresResponse" "429": $ref: "#/components/responses/TooManyRequests" + "503": + description: The vector store list is temporarily unavailable. Retry the request. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: vector_stores examples: @@ -22324,6 +25923,18 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreObject" + "400": + description: The vector store input, files or chunking configuration are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: A referenced input file was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -22395,6 +26006,12 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreObject" + "404": + description: The vector store was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -22458,6 +26075,25 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreObject" + "400": + description: The vector store input is invalid, the store has expired, or the + store cannot be modified. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller is not authorized to update the vector store. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -22532,6 +26168,27 @@ paths: application/json: schema: $ref: "#/components/schemas/DeleteVectorStoreResponse" + "404": + description: The vector store was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The vector store is temporarily unavailable for this change or was + modified concurrently. + headers: + Retry-After: + description: When this change is blocked by a vector store migration, the number + of seconds to wait before retrying. Other conflicts may omit + this header. + schema: + type: integer + minimum: 1 + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -22566,9 +26223,9 @@ paths: main(); response: | { - id: "vs_abc123", - object: "vector_store.deleted", - deleted: true + "id": "vs_abc123", + "object": "vector_store.deleted", + "deleted": true } /vector_stores/{vector_store_id}/file_batches: post: @@ -22599,8 +26256,42 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreFileBatchObject" + "400": + description: The file batch input is invalid, the store has expired, or a file + limit would be exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The vector store is temporarily unavailable for this change or was + modified concurrently. + headers: + Retry-After: + description: When this change is blocked by a vector store migration, the number + of seconds to wait before retrying. Other conflicts may omit + this header. + schema: + type: integer + minimum: 1 + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The files could not be attached to the vector store. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: vector_stores examples: @@ -22696,7 +26387,7 @@ paths: "completed": 1, "failed": 0, "cancelled": 0, - "total": 0, + "total": 0 } } /vector_stores/{vector_store_id}/file_batches/{batch_id}: @@ -22728,6 +26419,18 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreFileBatchObject" + "400": + description: The file batch identifier is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store or file batch was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -22780,7 +26483,7 @@ paths: "completed": 1, "failed": 0, "cancelled": 0, - "total": 0, + "total": 0 } } /vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel: @@ -22811,6 +26514,33 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreFileBatchObject" + "400": + description: The file batch identifier is invalid or the vector store has expired. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store or file batch was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The vector store is temporarily unavailable for this change or was + modified concurrently. + headers: + Retry-After: + description: When this change is blocked by a vector store migration, the number + of seconds to wait before retrying. Other conflicts may omit + this header. + schema: + type: integer + minimum: 1 + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -22864,7 +26594,7 @@ paths: "completed": 3, "failed": 0, "cancelled": 0, - "total": 15, + "total": 15 } } /vector_stores/{vector_store_id}/file_batches/{batch_id}/files: @@ -22944,6 +26674,18 @@ paths: application/json: schema: $ref: "#/components/schemas/ListVectorStoreFilesResponse" + "400": + description: The file batch identifier or file filter is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store or file batch was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -23072,6 +26814,18 @@ paths: application/json: schema: $ref: "#/components/schemas/ListVectorStoreFilesResponse" + "400": + description: The requested file filter is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -23155,8 +26909,42 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreFileObject" + "400": + description: The file input is invalid, the store has expired, or a file limit + would be exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The vector store is temporarily unavailable for this change or was + modified concurrently. + headers: + Retry-After: + description: When this change is blocked by a vector store migration, the number + of seconds to wait before retrying. Other conflicts may omit + this header. + schema: + type: integer + minimum: 1 + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The file could not be attached to the vector store. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: vector_stores examples: @@ -23235,8 +27023,20 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreFileObject" + "404": + description: The vector store or file was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The vector store file could not be retrieved. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: vector_stores examples: @@ -23310,8 +27110,41 @@ paths: application/json: schema: $ref: "#/components/schemas/DeleteVectorStoreFileResponse" + "400": + description: The vector store has expired. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store or file was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The vector store is temporarily unavailable for this change or was + modified concurrently. + headers: + Retry-After: + description: When this change is blocked by a vector store migration, the number + of seconds to wait before retrying. Other conflicts may omit + this header. + schema: + type: integer + minimum: 1 + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The vector store file could not be deleted. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: vector_stores examples: @@ -23349,9 +27182,9 @@ paths: main(); response: | { - id: "file-abc123", - object: "vector_store.file.deleted", - deleted: true + "id": "file-abc123", + "object": "vector_store.file.deleted", + "deleted": true } post: operationId: updateVectorStoreFileAttributes @@ -23387,8 +27220,41 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreFileObject" + "400": + description: The file attributes are invalid or the vector store has expired. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store or file was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The vector store is temporarily unavailable for this change or was + modified concurrently. + headers: + Retry-After: + description: When this change is blocked by a vector store migration, the number + of seconds to wait before retrying. Other conflicts may omit + this header. + schema: + type: integer + minimum: 1 + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The vector store file attributes could not be updated. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: vector_stores examples: @@ -23439,8 +27305,26 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreFileContentResponse" + "400": + description: The vector store has expired or the file content is not ready. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store or file was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The vector store file content could not be retrieved. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: vector_stores examples: @@ -23488,6 +27372,19 @@ paths: application/json: schema: $ref: "#/components/schemas/VectorStoreSearchResultsPage" + "400": + description: The search input or filters are invalid, or the vector store has + expired. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The vector store was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -23503,7 +27400,7 @@ paths: response: | { "object": "vector_store.search_results.page", - "search_query": "What is the return policy?", + "search_query": ["What is the return policy?"], "data": [ { "file_id": "file_123", @@ -23559,8 +27456,20 @@ paths: application/json: schema: $ref: "#/components/schemas/ConversationResource" + "400": + description: The conversation input is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The conversation update could not be finalized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: conversations path: create @@ -23658,6 +27567,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ConversationResource" + "404": + description: The conversation was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -23722,6 +27637,12 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedConversationResource" + "404": + description: The conversation was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -23791,8 +27712,26 @@ paths: application/json: schema: $ref: "#/components/schemas/ConversationResource" + "400": + description: The conversation metadata is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The conversation was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The conversation update could not be finalized. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: conversations path: update @@ -23871,6 +27810,32 @@ paths: application/json: schema: $ref: "#/components/schemas/SafetyCaseResource" + "400": + description: The safety case ID is too long. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The safety case was not found or is not accessible to the caller. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + description: The safety case lookup failed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "503": + description: The safety case lookup is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: safety-cases path: retrieve @@ -23909,6 +27874,26 @@ paths: application/json: schema: $ref: "#/components/schemas/SafetyAlertResource" + "400": + description: The safety alert ID is too long. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The safety alert was not found or is not accessible to the caller. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + $ref: "#/components/responses/TooManyRequests" + "503": + description: The safety alert lookup is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: safety-alerts path: retrieve @@ -23958,6 +27943,39 @@ paths: in the left channel and output audio in the right channel. type: string format: binary + "400": + description: Invalid Live session ID. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The endpoint is unavailable or the stored session recording was not + found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + description: The stored session audio could not be exported. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "503": + description: The audio export is temporarily unavailable. + headers: + Retry-After: + description: The minimum number of seconds to wait before retrying. + schema: + type: integer + minimum: 1 + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: live returns: The stored session recording as binary stereo WAV audio. @@ -24003,6 +28021,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ExternalStorageListResource" + "400": + description: The organization is not enabled for external storage or the listing + parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The organization or project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24047,10 +28084,27 @@ paths: "geography": "US", "status": "validated", "created_at": 1711471500 + }, + { + "object": "organization.external_storage", + "id": "extstorage_gcp123", + "project_id": "proj_gcp123", + "provider": { + "type": "gcp", + "bucket": "customer-gcp-retention", + "workload_identity_project_number": "123456789012", + "workload_identity_pool_id": "customer-pool", + "workload_identity_provider_id": "customer-provider", + "region": "us-central1", + "audience": "proj_gcp123" + }, + "geography": "US", + "status": "validated", + "created_at": 1711471400 } ], "first_id": "extstorage_abc123", - "last_id": "extstorage_azure123", + "last_id": "extstorage_gcp123", "has_more": false } security: @@ -24073,6 +28127,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ExternalStorageResponse" + "400": + description: The external storage request is invalid or the organization or + project does not support it. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The organization, project, or external storage was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "503": + description: External storage registration is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24144,6 +28223,41 @@ paths: "status": "pending", "created_at": 1711471533 } + - title: Google Cloud Storage + request: + curl: > + curl -X POST + https://api.openai.com/v1/organization/external_storage \ + -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \ + -H "Content-Type: application/json" \ + -d '{ + "project_id": "proj_gcp123", + "provider": { + "type": "gcp", + "bucket": "customer-gcp-retention", + "workload_identity_project_number": "123456789012", + "workload_identity_pool_id": "customer-pool", + "workload_identity_provider_id": "customer-provider" + } + }' + response: | + { + "object": "organization.external_storage", + "id": "extstorage_gcp123", + "project_id": "proj_gcp123", + "provider": { + "type": "gcp", + "bucket": "customer-gcp-retention", + "workload_identity_project_number": "123456789012", + "workload_identity_pool_id": "customer-pool", + "workload_identity_provider_id": "customer-provider", + "region": "us-central1", + "audience": "proj_gcp123" + }, + "geography": "US", + "status": "pending", + "created_at": 1711471400 + } security: - AdminApiKeyAuth: [] /organization/external_storage/{external_storage_id}: @@ -24165,6 +28279,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ExternalStorageResponse" + "400": + description: The organization is not enabled for external storage. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The organization or external storage was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24215,6 +28347,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ExternalStorageDeletedResource" + "400": + description: The organization is not enabled for external storage. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The organization or external storage was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24250,6 +28400,31 @@ paths: application/json: schema: $ref: "#/components/schemas/ExternalStorageResponse" + "400": + description: The external storage configuration is invalid or the organization + or project does not support it. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The organization, project, or external storage was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "503": + description: External storage validation is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24291,6 +28466,18 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationSpendLimitResource" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The organization does not have a hard spend limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24330,6 +28517,18 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationSpendLimitResource" + "400": + description: The requested spend limit is invalid or cannot be applied. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" x-oaiMeta: group: administration examples: @@ -24367,6 +28566,18 @@ paths: application/json: schema: $ref: "#/components/schemas/OrganizationSpendLimitDeletedResource" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The organization does not have a hard spend limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24403,6 +28614,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectSpendLimitResource" + "400": + description: The project ID is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found or does not have a hard spend limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24442,6 +28671,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectSpendLimitDeletedResource" + "400": + description: The project ID is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found or does not have a hard spend limit. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24483,6 +28730,24 @@ paths: application/json: schema: $ref: "#/components/schemas/ProjectSpendLimitResource" + "400": + description: The requested spend limit is invalid or cannot be applied. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24541,6 +28806,37 @@ paths: application/json: schema: $ref: "#/components/schemas/ServiceAccountApiKeyBody" + "400": + description: The API key request is invalid or the project is archived. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "403": + description: The caller does not have permission to perform this operation. + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionErrorResponse" + "404": + description: The project or service account was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "409": + description: The service account already has an API key and cannot create another. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: Too many management requests. Reduce the request rate and try again + later. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: administration examples: @@ -24584,8 +28880,33 @@ paths: application/json: schema: $ref: "#/components/schemas/ProvenanceResource" + "400": + description: The file is missing, invalid, unsupported, too large, or rejected + by safety checks. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: Content provenance checks are unavailable to this caller. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The content provenance check could not be completed. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "503": + description: Content provenance inspection is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: content_provenance_checks examples: [] @@ -24613,8 +28934,28 @@ paths: application/json: schema: $ref: "#/components/schemas/VideoResource" + "400": + description: The video request is invalid, or the organization does not support + video generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: A referenced character was not found or is not accessible, or the + Videos API is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The video generation task could not be created. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" deprecated: true @@ -24750,6 +29091,20 @@ paths: application/json: schema: $ref: "#/components/schemas/VideoListResource" + "400": + description: The query parameters are invalid, or the organization does not + support video generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The video specified by after was not found or is not accessible, or + the Videos API is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" deprecated: true x-oaiMeta: group: videos @@ -24854,6 +29209,31 @@ paths: application/json: schema: $ref: "#/components/schemas/VideoCharacterResource" + "400": + description: The character request or video upload is invalid, or the + organization does not support video generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The video character endpoint is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The character could not be created. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "504": + description: The character creation request timed out. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" deprecated: true /videos/characters/{character_id}: get: @@ -24877,6 +29257,20 @@ paths: application/json: schema: $ref: "#/components/schemas/VideoCharacterResource" + "400": + description: The character ID is invalid, or the organization does not support + video generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The character was not found or is not accessible, or the video + character endpoint is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" deprecated: true /videos/edits: post: @@ -24902,8 +29296,30 @@ paths: application/json: schema: $ref: "#/components/schemas/VideoResource" + "400": + description: The edit request or source video is invalid, or the organization + does not support video generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The source video or a referenced character was not found or is not + accessible, the source video is not ready, or the Videos API is + unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The source video media is unavailable or the edit task could not be + created. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" deprecated: true @@ -24930,8 +29346,29 @@ paths: application/json: schema: $ref: "#/components/schemas/VideoResource" + "400": + description: The extension request or source video is invalid, or the + organization does not support video generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The source video was not found or is not accessible, the source + video is not ready, or the Videos API is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The source video media is unavailable or the extension task could + not be created. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" deprecated: true @@ -24957,6 +29394,20 @@ paths: application/json: schema: $ref: "#/components/schemas/VideoResource" + "400": + description: The request is invalid, or the organization does not support video + generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The video was not found or is not accessible, or the Videos API is + unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" deprecated: true x-oaiMeta: group: videos @@ -25044,12 +29495,37 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedVideoResource" + "400": + description: The video is still being processed, the request is invalid, or the + organization does not support video generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The video was not found or is not accessible, or the Videos API is + unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The video or its stored media could not be deleted. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" deprecated: true x-oaiMeta: group: videos path: delete examples: - response: "" + response: | + { + "id": "video_123", + "object": "video.deleted", + "deleted": true + } request: javascript: | import OpenAI from 'openai'; @@ -25154,6 +29630,26 @@ paths: application/json: schema: type: string + "400": + description: The request or content variant is invalid, or the organization does + not support video generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The video was not found or is not ready, its download is + unavailable or expired, or the Videos API is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The requested video media is unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" deprecated: true x-oaiMeta: group: videos @@ -25266,8 +29762,30 @@ paths: application/json: schema: $ref: "#/components/schemas/VideoResource" + "400": + description: The request or source video is not supported for remixing, or the + organization does not support video generation. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The source video or a referenced character was not found or is not + accessible, the source video is not ready, or the Videos API is + unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" + "500": + description: The source generation is unavailable or the remix task could not be + created. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "503": $ref: "#/components/responses/InferenceServiceUnavailable" deprecated: true @@ -25409,6 +29927,13 @@ paths: application/json: schema: $ref: "#/components/schemas/TokenCountsResource" + "400": + description: The request to count input tokens is invalid or contains + incompatible parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -25537,6 +30062,12 @@ paths: application/json: schema: $ref: "#/components/schemas/CompactResource" + "400": + description: Invalid compaction request or incompatible input parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" "503": @@ -25705,8 +30236,20 @@ paths: application/json: schema: $ref: "#/components/schemas/SkillResource" + "400": + description: The uploaded skill files or archive are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The skill could not be saved. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" get: tags: - Skills @@ -25743,6 +30286,12 @@ paths: application/json: schema: $ref: "#/components/schemas/SkillListResource" + "404": + description: The skill specified by `after` was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" /skills/{skill_id}: @@ -25767,6 +30316,12 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedSkillResource" + "404": + description: The skill was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" get: @@ -25790,6 +30345,12 @@ paths: application/json: schema: $ref: "#/components/schemas/SkillResource" + "404": + description: The skill was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" post: @@ -25818,6 +30379,18 @@ paths: application/json: schema: $ref: "#/components/schemas/SkillResource" + "400": + description: The requested version is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The skill or requested skill version was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" /skills/{skill_id}/content: @@ -25846,6 +30419,12 @@ paths: application/json: schema: type: string + "404": + description: The skill was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" /skills/{skill_id}/versions: @@ -25878,8 +30457,26 @@ paths: application/json: schema: $ref: "#/components/schemas/SkillVersionResource" + "400": + description: The uploaded skill files or archive are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The skill was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" + "500": + description: The skill version could not be saved. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" get: tags: - Skills @@ -25922,6 +30519,18 @@ paths: application/json: schema: $ref: "#/components/schemas/SkillVersionListResource" + "400": + description: The version specified by `after` does not belong to this skill. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The skill or the version specified by `after` was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" /skills/{skill_id}/versions/{version}: @@ -25953,6 +30562,18 @@ paths: application/json: schema: $ref: "#/components/schemas/SkillVersionResource" + "400": + description: The requested version is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The skill or requested skill version was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" delete: @@ -25983,6 +30604,19 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedSkillVersionResource" + "400": + description: The requested version is invalid, or it is the default version and + other versions remain. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The skill or requested skill version was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" /skills/{skill_id}/versions/{version}/content: @@ -26018,6 +30652,18 @@ paths: application/json: schema: type: string + "400": + description: The requested version is invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The skill or requested skill version was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" /chatkit/sessions/{session_id}/cancel: @@ -26043,6 +30689,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ChatSessionResource" + "400": + description: The request is invalid or the required ChatKit beta header is + missing or invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The session was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chatkit beta: true @@ -26160,6 +30825,26 @@ paths: application/json: schema: $ref: "#/components/schemas/ChatSessionResource" + "400": + description: The request is invalid or the required ChatKit beta header is + missing or invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The requested workflow or workflow version was not found or is not + accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chatkit beta: true @@ -26345,6 +31030,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ThreadItemListResource" + "400": + description: The request is invalid or the required ChatKit beta header is + missing or invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The thread was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chatkit beta: true @@ -26483,6 +31187,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ThreadResource" + "400": + description: The request is invalid or the required ChatKit beta header is + missing or invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The thread was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chatkit beta: true @@ -26617,10 +31340,34 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedThreadResource" + "400": + description: The request is invalid or the required ChatKit beta header is + missing or invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The thread was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true examples: - response: "" + response: | + { + "id": "cthr_123", + "object": "chatkit.thread.deleted", + "deleted": true + } request: javascript: > import OpenAI from 'openai'; @@ -26751,6 +31498,25 @@ paths: application/json: schema: $ref: "#/components/schemas/ThreadListResource" + "400": + description: The request is invalid or the required ChatKit beta header is + missing or invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The thread specified by after was not found or is not accessible. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "429": + description: The request rate limit has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: group: chatkit beta: true @@ -26888,6 +31654,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -26985,6 +31757,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -27050,6 +31828,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -27730,6 +32514,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -27785,6 +32575,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -27845,6 +32641,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -27909,6 +32711,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -27968,6 +32776,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -29335,6 +34149,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -29404,6 +34224,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "404": description: The requested session or event was not found. content: @@ -30145,6 +34971,19 @@ paths: application/json: schema: $ref: "#/components/schemas/WebhookEndpointListResource" + "400": + description: The request parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The pagination cursor does not identify a webhook endpoint in the + authenticated project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true post: @@ -30164,6 +35003,13 @@ paths: application/json: schema: $ref: "#/components/schemas/WebhookEndpointWithSecretResource" + "400": + description: The webhook endpoint parameters are invalid or the endpoint cannot + be created with the requested URL or event types. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true /webhook_endpoints/{webhook_endpoint_id}: @@ -30186,6 +35032,18 @@ paths: application/json: schema: $ref: "#/components/schemas/WebhookEndpointBody" + "400": + description: The request parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The webhook endpoint was not found in the authenticated project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true post: @@ -30212,6 +35070,19 @@ paths: application/json: schema: $ref: "#/components/schemas/WebhookEndpointBody" + "400": + description: The webhook endpoint parameters are invalid or the requested URL or + event types are not permitted. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The webhook endpoint was not found in the authenticated project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true delete: @@ -30233,6 +35104,18 @@ paths: application/json: schema: $ref: "#/components/schemas/DeletedWebhookEndpointResource" + "400": + description: The request parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The webhook endpoint was not found in the authenticated project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true /webhook_endpoints/{webhook_endpoint_id}/rotate_secret: @@ -30261,6 +35144,18 @@ paths: application/json: schema: $ref: "#/components/schemas/WebhookEndpointWithSecretResource" + "400": + description: The request parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The webhook endpoint was not found in the authenticated project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true /webhook_endpoints/{webhook_endpoint_id}/test: @@ -30288,6 +35183,24 @@ paths: application/json: schema: $ref: "#/components/schemas/WebhookEndpointTestResultResource" + "400": + description: The request parameters are invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "404": + description: The webhook endpoint was not found in the authenticated project. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + "500": + description: The sample event could not be sent to the webhook endpoint. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true /webhook_event_types: @@ -30303,6 +35216,18 @@ paths: application/json: schema: $ref: "#/components/schemas/WebhookEventTypeListResource" + "401": + description: The request does not contain authentication credentials. + headers: + WWW-Authenticate: + description: The bearer authentication challenge returned by the service. + schema: + type: string + example: Bearer realm="OpenAI API" + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" x-oaiMeta: beta: true /responses?beta=true: @@ -30351,6 +35276,19 @@ paths: text/event-stream: schema: $ref: "#/components/schemas/BetaResponseStreamEvent" + "400": + description: Invalid response request or incompatible request parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/BetaErrorResponse" + "404": + description: The requested model or a referenced resource was not found or is + unavailable to this caller. + content: + application/json: + schema: + $ref: "#/components/schemas/BetaErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" "503": @@ -31725,6 +36663,12 @@ paths: application/json: schema: $ref: "#/components/schemas/BetaResponse" + "404": + description: The response was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/BetaErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -31843,7 +36787,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BetaError" + $ref: "#/components/schemas/BetaErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -31915,7 +36859,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BetaError" + $ref: "#/components/schemas/BetaErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -32024,6 +36968,12 @@ paths: application/json: schema: $ref: "#/components/schemas/BetaCompactResource" + "400": + description: Invalid compaction request or incompatible input parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/BetaErrorResponse" "429": $ref: "#/components/responses/InferenceRateLimited" "503": @@ -32240,6 +37190,12 @@ paths: application/json: schema: $ref: "#/components/schemas/BetaResponseItemList" + "404": + description: The response or the item specified by `after` was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/BetaErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -32324,6 +37280,13 @@ paths: application/json: schema: $ref: "#/components/schemas/BetaTokenCountsResource" + "400": + description: The request to count input tokens is invalid or contains + incompatible parameters. + content: + application/json: + schema: + $ref: "#/components/schemas/BetaErrorResponse" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -34847,7 +39810,7 @@ components: }, "metadata": { "customer_id": "user_123456789", - "batch_description": "Nightly eval job", + "batch_description": "Nightly eval job" } } BatchError: @@ -36950,10 +41913,6 @@ components: - name - created_at - status - - id - - name - - created_at - - status x-oaiMeta: name: The container object example: | @@ -40801,7 +45760,25 @@ components: `{ "id": "voice_1234" }`. Previews of the voices are available in the [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).' - $ref: "#/components/schemas/VoiceIdsOrCustomVoice" + title: Voice + anyOf: + - anyOf: + - $ref: "#/components/schemas/VoiceIdsShared" + - type: string + enum: + - fable + - onyx + - nova + - type: object + description: Custom voice reference. + additionalProperties: false + required: + - id + properties: + id: + type: string + description: The custom voice ID, e.g. `voice_1234`. + example: voice_1234 response_format: description: The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`. @@ -42613,7 +47590,7 @@ components: "item_schema": { "type": "object", "properties": { - "label": {"type": "string"}, + "label": {"type": "string"} }, "required": ["label"] }, @@ -42625,13 +47602,13 @@ components: "type": "string_check", "input": "{{sample.output_text}}", "reference": "{{item.label}}", - "operation": "eq", + "operation": "eq" } ], "name": "External Data Eval", "created_at": 1739314509, "metadata": { - "test": "synthetics", + "test": "synthetics" } } EvalApiError: @@ -42683,20 +47660,18 @@ components: The json schema for the run data source items. Learn how to build JSON schemas [here](https://json-schema.org/). additionalProperties: true - example: | - { - "type": "object", - "properties": { - "item": { - "type": "object", - "properties": { - "label": {"type": "string"}, - }, - "required": ["label"] - } - }, - "required": ["item"] - } + example: + type: object + properties: + item: + type: object + properties: + label: + type: string + required: + - label + required: + - item required: - type - schema @@ -42712,7 +47687,7 @@ components: "item": { "type": "object", "properties": { - "label": {"type": "string"}, + "label": {"type": "string"} }, "required": ["label"] } @@ -42738,20 +47713,12 @@ components: x-oaiMeta: name: Eval Python Grader group: graders - example: | + example: > { "type": "python", "name": "Example python grader", "image_tag": "2025-05-08", - "source": """ - def grade(sample: dict, item: dict) -> float: - \""" - Returns 1.0 if `output_text` equals `label`, otherwise 0.0. - \""" - output = sample.get("output_text") - label = item.get("label") - return 1.0 if output == label else 0.0 - """, + "source": "\ndef grade(sample: dict, item: dict) -> float:\n \"\"\"\n Returns 1.0 if `output_text` equals `label`, otherwise 0.0.\n \"\"\"\n output = sample.get(\"output_text\")\n label = item.get(\"label\")\n return 1.0 if output == label else 0.0\n", "pass_threshold": 0.8 } EvalGraderScoreModel: @@ -43042,7 +48009,7 @@ components: ], "name": "External Data Eval", "created_at": 1739314509, - "metadata": {}, + "metadata": {} } ], "first_id": "eval_67abd54d9b0081909a86353f6fb9317a", @@ -43104,7 +48071,8 @@ components: "required": [ "item", "sample" - } + ] + } } EvalResponsesSource: type: object @@ -43734,7 +48702,7 @@ components: "name": "String Check Grader", "type": "string-check-grader", "score": 1.0, - "passed": true, + "passed": true } ], "sample": { @@ -43828,7 +48796,7 @@ components: "name": "String Check Grader", "type": "string-check-grader", "score": 1.0, - "passed": true, + "passed": true } ], "sample": { @@ -43862,7 +48830,7 @@ components: "top_p": 1.0, "seed": 42 } - }, + } ], "first_id": "outputitem_67abd55eb6548190bb580745d5644a33", "last_id": "outputitem_67abd55eb6548190bb580745d5644a33", @@ -43944,7 +48912,8 @@ components: "required": [ "item", "sample" - } + ] + } } EvalStoredCompletionsSource: type: object @@ -44852,7 +49821,7 @@ components: example: | { "object": "fine_tuning.job.event", - "id": "ftevent-abc123" + "id": "ftevent-abc123", "created_at": 1677610602, "level": "info", "message": "Created fine-tuning job", @@ -45232,20 +50201,12 @@ components: x-oaiMeta: name: Python Grader group: graders - example: | + example: > { "type": "python", "name": "Example python grader", "image_tag": "2025-05-08", - "source": """ - def grade(sample: dict, item: dict) -> float: - \""" - Returns 1.0 if `output_text` equals `label`, otherwise 0.0. - \""" - output = sample.get("output_text") - label = item.get("label") - return 1.0 if output == label else 0.0 - """, + "source": "\ndef grade(sample: dict, item: dict) -> float:\n \"\"\"\n Returns 1.0 if `output_text` equals `label`, otherwise 0.0.\n \"\"\"\n output = sample.get(\"output_text\")\n label = item.get(\"label\")\n return 1.0 if output == label else 0.0\n" } GraderScoreModel: type: object @@ -45334,12 +50295,7 @@ components: "content": [ { "type": "input_text", - "text": ( - "Score how close the reference answer is to the model answer. Score 1.0 if they are the same and 0.0 if they are different." - " Return just a floating point score\n\n" - " Reference answer: {{item.label}}\n\n" - " Model answer: {{sample.output_text}}" - ) + "text": "Score how close the reference answer is to the model answer. Score 1.0 if they are the same and 0.0 if they are different. Return just a floating point score\n\n Reference answer: {{item.label}}\n\n Model answer: {{sample.output_text}}" }, { "type": "input_image", @@ -45347,7 +50303,7 @@ components: "file_id": null, "detail": "auto" } - ], + ] } ], "model": "gpt-5-mini", @@ -45357,7 +50313,7 @@ components: "seed": 42, "max_completions_tokens": 32768, "reasoning_effort": "medium" - }, + } } GraderStringCheck: type: object @@ -49523,7 +54479,7 @@ components: "created_at": 1677610602, "expires_at": 1680202602, "filename": "salesOverview.pdf", - "purpose": "assistants", + "purpose": "assistants" } OrganizationCertificate: type: object @@ -62679,7 +67635,8 @@ components: "part": { "type": "output_text", "text": "", - "annotations": [] + "annotations": [], + "logprobs": [] }, "sequence_number": 1 } @@ -62733,7 +67690,8 @@ components: "part": { "type": "output_text", "text": "In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.", - "annotations": [] + "annotations": [], + "logprobs": [] } } ResponseCreatedEvent: @@ -62838,6 +67796,7 @@ components: example: | { "type": "response.custom_tool_call_input.delta", + "sequence_number": 1, "output_index": 0, "item_id": "ctc_1234567890abcdef", "delta": "partial input text" @@ -62878,6 +67837,7 @@ components: example: | { "type": "response.custom_tool_call_input.done", + "sequence_number": 1, "output_index": 0, "item_id": "ctc_1234567890abcdef", "input": "final complete input text" @@ -63320,7 +68280,7 @@ components: "type": "response.function_call_arguments.delta", "item_id": "item-abc", "output_index": 0, - "delta": "{ \"arg\":" + "delta": "{ \"arg\":", "sequence_number": 1 } ResponseFunctionCallArgumentsDoneEvent: @@ -65516,7 +70476,6 @@ components: Options for streaming responses. Only set this when you set `stream: true`. type: object - default: null properties: include_obfuscation: type: boolean @@ -65595,7 +70554,8 @@ components: "output_index": 0, "content_index": 0, "delta": "In", - "sequence_number": 1 + "sequence_number": 1, + "logprobs": [] } ResponseTextDoneEvent: type: object @@ -65651,7 +70611,8 @@ components: "output_index": 0, "content_index": 0, "text": "In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.", - "sequence_number": 1 + "sequence_number": 1, + "logprobs": [] } ResponseTextParam: type: object @@ -69412,8 +74373,6 @@ components: - type: string enum: - auto - default: - - auto description: > Automatically set chunking parameters based on the audio. Must be set to `"auto"`. @@ -69736,7 +74695,7 @@ components: "bytes": 2147483648, "created_at": 1719186911, "filename": "training_examples.jsonl", - "purpose": "fine-tune", + "purpose": "fine-tune" } } UploadCertificateRequest: @@ -73199,6 +78158,36 @@ components: "type": "safety.warning_issued", "data": {"id": "C-abc123"} } + _MisalignmentErrorType: + anyOf: + - type: string + - type: string + enum: + - potentially_unintended_data_transfer + - potentially_unintended_data_access + - potentially_unintended_destructive_activity + - other + _MisalignmentSteer: + properties: + message: + type: string + description: The public continuation instruction. + type: object + required: + - message + MisalignmentErrorDetailsResource: + properties: + error_type: + $ref: "#/components/schemas/_MisalignmentErrorType" + description: An optional classification; clients must accept additional values. + detailed_explanation: + type: string + description: The public explanation for this block. + steer: + $ref: "#/components/schemas/_MisalignmentSteer" + description: An optional public continuation instruction. + type: object + required: [] ModerationInputType: type: string enum: @@ -76886,36 +81875,6 @@ components: - object - metadata - created_at - _MisalignmentErrorType: - anyOf: - - type: string - - type: string - enum: - - potentially_unintended_data_transfer - - potentially_unintended_data_access - - potentially_unintended_destructive_activity - - other - _MisalignmentSteer: - properties: - message: - type: string - description: The public continuation instruction. - type: object - required: - - message - MisalignmentErrorDetailsResource: - properties: - error_type: - $ref: "#/components/schemas/_MisalignmentErrorType" - description: An optional classification; clients must accept additional values. - detailed_explanation: - type: string - description: The public explanation for this block. - steer: - $ref: "#/components/schemas/_MisalignmentSteer" - description: An optional public continuation instruction. - type: object - required: [] ImageGenOutputTokensDetails: properties: image_tokens: @@ -82659,6 +87618,7 @@ components: - rate_limit_exceeded - server_overloaded - cyber_policy + - misalignment_policy_violation - connection_failed - server_error - authentication_error @@ -82677,6 +87637,7 @@ components: - The request exceeds the available rate limit. - The model service is temporarily overloaded. - The request was rejected by a safety policy. + - The request was blocked by the safety systems. - The request could not connect to the model service. - The model service encountered an unexpected error. - The API credentials are invalid or lack the required access. @@ -82991,6 +87952,7 @@ components: - flex - priority - fast + - ultrafast description: The service-tier policy configured for an agent. PersistedAgentToolResourceFunction: type: object @@ -83595,12 +88557,14 @@ components: - flex - priority - fast + - ultrafast x-enumDescriptions: - Selects the service tier automatically. - Uses the default service tier. - Uses the flex service tier. - Uses the priority service tier. - Uses the fast service tier. + - Uses the ultrafast service tier. description: The service tier used for model requests. PersistedAgentToolConfigParamFunction: type: object @@ -84732,7 +89696,7 @@ components: - $ref: "#/components/schemas/NetworkPolicyParam" - type: "null" description: Network access policy for the environment. Defaults to disabled for - GA requests and enabled for alpha/beta requests. + GA requests and enabled for beta requests. env: type: - object @@ -84830,7 +89794,7 @@ components: - type: "null" description: Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA - requests or enabled for alpha/beta requests. + requests or enabled for beta requests. env: type: - object @@ -85976,7 +90940,7 @@ components: - $ref: "#/components/schemas/NetworkPolicyParam" - type: "null" description: Network access policy for the environment. Defaults to disabled for - GA requests and enabled for alpha/beta requests. + GA requests and enabled for beta requests. env: type: - object @@ -97284,6 +102248,13 @@ components: - gpt-3.5-turbo-1106 - gpt-3.5-turbo-0125 - gpt-3.5-turbo-16k-0613 + BetaErrorResponse: + type: object + properties: + error: + $ref: "#/components/schemas/BetaError" + required: + - error BetaError: type: object properties: @@ -98823,6 +103794,7 @@ components: example: | { "type": "response.custom_tool_call_input.done", + "sequence_number": 1, "output_index": 0, "item_id": "ctc_1234567890abcdef", "input": "final complete input text" @@ -98869,6 +103841,7 @@ components: example: | { "type": "response.custom_tool_call_input.delta", + "sequence_number": 1, "output_index": 0, "item_id": "ctc_1234567890abcdef", "delta": "partial input text" @@ -100777,7 +105750,8 @@ components: "output_index": 0, "content_index": 0, "text": "In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.", - "sequence_number": 1 + "sequence_number": 1, + "logprobs": [] } BetaResponseLogProb: type: object @@ -100872,7 +105846,8 @@ components: "output_index": 0, "content_index": 0, "delta": "In", - "sequence_number": 1 + "sequence_number": 1, + "logprobs": [] } BetaResponseRefusalDoneEvent: type: object @@ -101452,7 +106427,7 @@ components: "type": "response.function_call_arguments.delta", "item_id": "item-abc", "output_index": 0, - "delta": "{ \"arg\":" + "delta": "{ \"arg\":", "sequence_number": 1 } BetaResponseFileSearchCallSearchingEvent: @@ -101759,7 +106734,8 @@ components: "part": { "type": "output_text", "text": "In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.", - "annotations": [] + "annotations": [], + "logprobs": [] } } BetaOutputContent: @@ -101823,7 +106799,8 @@ components: "part": { "type": "output_text", "text": "", - "annotations": [] + "annotations": [], + "logprobs": [] }, "sequence_number": 1 } @@ -104918,7 +109895,6 @@ components: Options for streaming responses. Only set this when you set `stream: true`. type: object - default: null properties: include_obfuscation: type: boolean