diff --git a/.claude/skills/tryagi-openai/SKILL.md b/.claude/skills/tryagi-openai/SKILL.md index fc0d90e9..874e00e6 100644 --- a/.claude/skills/tryagi-openai/SKILL.md +++ b/.claude/skills/tryagi-openai/SKILL.md @@ -48,7 +48,7 @@ dnx tryAGI.OpenAI.CLI --help | `project-group` | 3 | | | `project-group-role-assignment` | 3 | | | `project-user-role-assignment` | 3 | | -| `realtime` | 8 | | +| `realtime` | 9 | | | `response` | 5 | | | `role` | 8 | | | `skill` | 11 | | diff --git a/.claude/skills/tryagi-openai/commands.md b/.claude/skills/tryagi-openai/commands.md index b8886bd5..e25a75bc 100644 --- a/.claude/skills/tryagi-openai/commands.md +++ b/.claude/skills/tryagi-openai/commands.md @@ -291,6 +291,7 @@ Given text and/or image inputs, classifies if those inputs are potentially harmf | `create-client-secret` | `POST /realtime/client_secrets` | Create a Realtime client secret with an associated session configuration. Client secrets are short-lived tokens that can be passed to a client app, such as a web frontend or mobile client, which grants access to the Realtime API without leaking your main API key. You can configure a custom TTL for each client secret. You can also attach session configuration options to the client secret, which will be applied to any sessions created using that client secret, but these can also be overridden by the client connection. [Learn more about authentication with client secrets over WebRTC](/docs/guides/realtime-webrtc). Returns the created client secret and the effective session object. The client secret is a string that looks like `ek_1234`. | | `create-session` | `POST /realtime/sessions` | Create an ephemeral API token for use in client-side applications with the Realtime API. Can be configured with the same session parameters as the `session.update` client event. It responds with a session object, plus a `client_secret` key which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API. Returns the created Realtime session object, plus an ephemeral key. | | `create-transcription-session` | `POST /realtime/transcription_sessions` | Create an ephemeral API token for use in client-side applications with the Realtime API specifically for realtime transcriptions. Can be configured with the same session parameters as the `transcription_session.update` client event. It responds with a session object, plus a `client_secret` key which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API. Returns the created Realtime transcription session object, plus an ephemeral key. | +| `create-translation-client-secret` | `POST /realtime/translations/client_secrets` | Create a Realtime translation client secret with an associated translation session configuration. Client secrets are short-lived tokens that can be passed to a client app, such as a web frontend or mobile client, which grants access to the Realtime Translation API without leaking your main API key. You can configure a custom TTL for each client secret. Returns the created client secret and the effective translation session object. The client secret is a string that looks like `ek_1234`. | | `hang-up-call` | `POST /realtime/calls/{call_id}/hangup` | End an active Realtime API call, whether it was initiated over SIP or WebRTC. | | `refer-call` | `POST /realtime/calls/{call_id}/refer` | Transfer an active SIP call to a new destination using the SIP REFER verb. | | `reject-call` | `POST /realtime/calls/{call_id}/reject` | Decline an incoming SIP call by returning a SIP status code to the caller. | diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateTranslationClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateTranslationClientSecret.g.cs new file mode 100644 index 00000000..a63d3ce3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateTranslationClientSecret.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IRealtimeClient + { + /// + /// Create a Realtime translation client secret with an associated translation session configuration.
+ /// Client secrets are short-lived tokens that can be passed to a client app,
+ /// such as a web frontend or mobile client, which grants access to the Realtime
+ /// Translation API without leaking your main API key. You can configure a custom
+ /// TTL for each client secret.
+ /// Returns the created client secret and the effective translation session object.
+ /// The client secret is a string that looks like `ek_1234`. + ///
+ /// + /// 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 CreateTranslationClientSecretAsync( + + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create a Realtime translation client secret with an associated translation session configuration.
+ /// Client secrets are short-lived tokens that can be passed to a client app,
+ /// such as a web frontend or mobile client, which grants access to the Realtime
+ /// Translation API without leaking your main API key. You can configure a custom
+ /// TTL for each client secret.
+ /// Returns the created client secret and the effective translation session object.
+ /// The client secret is a string that looks like `ek_1234`. + ///
+ /// + /// 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> CreateTranslationClientSecretAsResponseAsync( + + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create a Realtime translation client secret with an associated translation session configuration.
+ /// Client secrets are short-lived tokens that can be passed to a client app,
+ /// such as a web frontend or mobile client, which grants access to the Realtime
+ /// Translation API without leaking your main API key. You can configure a custom
+ /// TTL for each client secret.
+ /// Returns the created client secret and the effective translation session object.
+ /// The client secret is a string that looks like `ek_1234`. + ///
+ /// + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. + /// + /// + /// Realtime translation session configuration. Translation sessions stream source
+ /// audio in and translated audio plus transcript deltas out continuously. + /// + /// 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 CreateTranslationClientSecretAsync( + global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest session, + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? expiresAfter = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs new file mode 100644 index 00000000..be2ac739 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs @@ -0,0 +1,189 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class RealtimeTranslationClientEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientEvent Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("event_id")) __score0++; + if (__jsonProps.Contains("session")) __score0++; + if (__jsonProps.Contains("session.audio")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("audio")) __score1++; + if (__jsonProps.Contains("event_id")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("event_id")) __score2++; + if (__jsonProps.Contains("type")) __score2++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? sessionUpdate = default; + global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? sessionInputAudioBufferAppend = default; + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? sessionClose = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate).Name}"); + sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend).Name}"); + sessionInputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 2) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose).Name}"); + sessionClose = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (sessionUpdate == null && sessionInputAudioBufferAppend == null && sessionClose == null) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate).Name}"); + sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend).Name}"); + sessionInputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose).Name}"); + sessionClose = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.RealtimeTranslationClientEvent( + sessionUpdate, + + sessionInputAudioBufferAppend, + + sessionClose + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientEvent value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsSessionUpdate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdate!, typeInfo); + } + else if (value.IsSessionInputAudioBufferAppend) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioBufferAppend!, typeInfo); + } + else if (value.IsSessionClose) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionClose!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendType.g.cs new file mode 100644 index 00000000..ac755a68 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType 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.RealtimeTranslationClientEventInputAudioBufferAppendTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullable.g.cs new file mode 100644 index 00000000..89d0ec4d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType? 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.RealtimeTranslationClientEventInputAudioBufferAppendTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType? 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.RealtimeTranslationClientEventInputAudioBufferAppendTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseType.g.cs new file mode 100644 index 00000000..69d7babd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientEventSessionCloseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType 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.RealtimeTranslationClientEventSessionCloseTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseTypeNullable.g.cs new file mode 100644 index 00000000..f6802c4e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientEventSessionCloseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType? 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.RealtimeTranslationClientEventSessionCloseTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType? 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.RealtimeTranslationClientEventSessionCloseTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateType.g.cs new file mode 100644 index 00000000..771d5c3c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientEventSessionUpdateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType 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.RealtimeTranslationClientEventSessionUpdateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateTypeNullable.g.cs new file mode 100644 index 00000000..780cc998 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientEventSessionUpdateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType? 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.RealtimeTranslationClientEventSessionUpdateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType? 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.RealtimeTranslationClientEventSessionUpdateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor.g.cs new file mode 100644 index 00000000..451cadcd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor 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.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullable.g.cs new file mode 100644 index 00000000..fb240933 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? 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.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? 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.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs new file mode 100644 index 00000000..6d918ea0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs @@ -0,0 +1,377 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class RealtimeTranslationServerEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEvent Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("error")) __score0++; + if (__jsonProps.Contains("error.code")) __score0++; + if (__jsonProps.Contains("error.event_id")) __score0++; + if (__jsonProps.Contains("error.message")) __score0++; + if (__jsonProps.Contains("error.param")) __score0++; + if (__jsonProps.Contains("error.type")) __score0++; + if (__jsonProps.Contains("event_id")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("event_id")) __score1++; + if (__jsonProps.Contains("session")) __score1++; + if (__jsonProps.Contains("session.audio")) __score1++; + if (__jsonProps.Contains("session.expires_at")) __score1++; + if (__jsonProps.Contains("session.id")) __score1++; + if (__jsonProps.Contains("session.model")) __score1++; + if (__jsonProps.Contains("session.type")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("event_id")) __score2++; + if (__jsonProps.Contains("session")) __score2++; + if (__jsonProps.Contains("session.audio")) __score2++; + if (__jsonProps.Contains("session.expires_at")) __score2++; + if (__jsonProps.Contains("session.id")) __score2++; + if (__jsonProps.Contains("session.model")) __score2++; + if (__jsonProps.Contains("session.type")) __score2++; + if (__jsonProps.Contains("type")) __score2++; + var __score3 = 0; + if (__jsonProps.Contains("event_id")) __score3++; + if (__jsonProps.Contains("type")) __score3++; + var __score4 = 0; + if (__jsonProps.Contains("delta")) __score4++; + if (__jsonProps.Contains("elapsed_ms")) __score4++; + if (__jsonProps.Contains("event_id")) __score4++; + if (__jsonProps.Contains("type")) __score4++; + var __score5 = 0; + if (__jsonProps.Contains("delta")) __score5++; + if (__jsonProps.Contains("elapsed_ms")) __score5++; + if (__jsonProps.Contains("event_id")) __score5++; + if (__jsonProps.Contains("type")) __score5++; + var __score6 = 0; + if (__jsonProps.Contains("channels")) __score6++; + if (__jsonProps.Contains("delta")) __score6++; + if (__jsonProps.Contains("elapsed_ms")) __score6++; + if (__jsonProps.Contains("event_id")) __score6++; + if (__jsonProps.Contains("format")) __score6++; + if (__jsonProps.Contains("sample_rate")) __score6++; + if (__jsonProps.Contains("type")) __score6++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } + + global::tryAGI.OpenAI.RealtimeServerEventError? error = default; + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? sessionCreated = default; + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? sessionUpdated = default; + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? sessionClosed = default; + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? sessionInputTranscriptDelta = default; + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? sessionOutputTranscriptDelta = default; + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? sessionOutputAudioDelta = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated).Name}"); + sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 2) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated).Name}"); + sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 3) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed).Name}"); + sessionClosed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 4) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta).Name}"); + sessionInputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 5) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta).Name}"); + sessionOutputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 6) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta).Name}"); + sessionOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (error == null && sessionCreated == null && sessionUpdated == null && sessionClosed == null && sessionInputTranscriptDelta == null && sessionOutputTranscriptDelta == null && sessionOutputAudioDelta == null) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated).Name}"); + sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated).Name}"); + sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed).Name}"); + sessionClosed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta).Name}"); + sessionInputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta).Name}"); + sessionOutputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta).Name}"); + sessionOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.RealtimeTranslationServerEvent( + error, + + sessionCreated, + + sessionUpdated, + + sessionClosed, + + sessionInputTranscriptDelta, + + sessionOutputTranscriptDelta, + + sessionOutputAudioDelta + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEvent value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsError) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + } + else if (value.IsSessionCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCreated!, typeInfo); + } + else if (value.IsSessionUpdated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdated!, typeInfo); + } + else if (value.IsSessionClosed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionClosed!, typeInfo); + } + else if (value.IsSessionInputTranscriptDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputTranscriptDelta!, typeInfo); + } + else if (value.IsSessionOutputTranscriptDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionOutputTranscriptDelta!, typeInfo); + } + else if (value.IsSessionOutputAudioDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionOutputAudioDelta!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedType.g.cs new file mode 100644 index 00000000..5c17a3b6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionClosedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType 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.RealtimeTranslationServerEventSessionClosedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullable.g.cs new file mode 100644 index 00000000..d51b51d3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType? 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.RealtimeTranslationServerEventSessionClosedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType? 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.RealtimeTranslationServerEventSessionClosedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedType.g.cs new file mode 100644 index 00000000..f52fde46 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionCreatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType 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.RealtimeTranslationServerEventSessionCreatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedTypeNullable.g.cs new file mode 100644 index 00000000..2b069a7b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionCreatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType? 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.RealtimeTranslationServerEventSessionCreatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType? 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.RealtimeTranslationServerEventSessionCreatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionInputTranscriptDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionInputTranscriptDeltaType.g.cs new file mode 100644 index 00000000..80bdb5fa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionInputTranscriptDeltaType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType 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.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeNullable.g.cs new file mode 100644 index 00000000..1b906c48 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType? 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.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType? 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.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat.g.cs new file mode 100644 index 00000000..6027821b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionOutputAudioDeltaFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat 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.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatNullable.g.cs new file mode 100644 index 00000000..ec221b95 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionOutputAudioDeltaFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? 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.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? 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.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaType.g.cs new file mode 100644 index 00000000..7dcf1954 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionOutputAudioDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType 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.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeNullable.g.cs new file mode 100644 index 00000000..a9908a8b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionOutputAudioDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType? 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.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType? 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.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType.g.cs new file mode 100644 index 00000000..25ebaa8e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType 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.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeNullable.g.cs new file mode 100644 index 00000000..fdd04023 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? 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.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? 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.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionUpdatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionUpdatedType.g.cs new file mode 100644 index 00000000..7d63d4cc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionUpdatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionUpdatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType 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.RealtimeTranslationServerEventSessionUpdatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionUpdatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionUpdatedTypeNullable.g.cs new file mode 100644 index 00000000..882c59f7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionUpdatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventSessionUpdatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType? 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.RealtimeTranslationServerEventSessionUpdatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType? 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.RealtimeTranslationServerEventSessionUpdatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationSessionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationSessionType.g.cs new file mode 100644 index 00000000..0317dd67 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationSessionType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationSessionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationSessionType 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.RealtimeTranslationSessionTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationSessionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationSessionType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationSessionType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationSessionTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationSessionTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationSessionTypeNullable.g.cs new file mode 100644 index 00000000..95c49ec9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationSessionTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationSessionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationSessionType? 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.RealtimeTranslationSessionTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationSessionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationSessionType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationSessionType? 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.RealtimeTranslationSessionTypeExtensions.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 5ca93de8..61b31170 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs @@ -2389,6 +2389,54 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionUpdatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionUpdatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationSessionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationSessionTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumNullableJsonConverter), @@ -4333,6 +4381,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter), @@ -6547,6 +6599,52 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEvent), TypeInfoPropertyName = "RealtimeTranslationClientEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType), TypeInfoPropertyName = "RealtimeTranslationClientEventInputAudioBufferAppendType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType), TypeInfoPropertyName = "RealtimeTranslationClientEventSessionCloseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType), TypeInfoPropertyName = "RealtimeTranslationClientEventSessionUpdateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor), TypeInfoPropertyName = "RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSession))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEvent), TypeInfoPropertyName = "RealtimeTranslationServerEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionClosedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionInputTranscriptDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionOutputAudioDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionOutputAudioDeltaFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionOutputTranscriptDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionUpdatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionType), TypeInfoPropertyName = "RealtimeTranslationSessionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), TypeInfoPropertyName = "RealtimeTruncationEnum2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnumType), TypeInfoPropertyName = "RealtimeTruncationEnumType2")] 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 7a826bc0..0f1750f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs @@ -7172,3831 +7172,4015 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type1786 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEvent? Type1786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type1787 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? Type1787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type1788 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? Type1788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type1789 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? Type1789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type1790 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator? Type1790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type1791 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType? Type1791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type1792 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType? Type1792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type1793 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType? Type1793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Reasoning? Type1794 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest? Type1794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummary2? Type1795 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest? Type1795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningGenerateSummary2? Type1796 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? Type1796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemType? Type1797 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? Type1797 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1798 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest? Type1798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContent? Type1799 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse? Type1799 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1800 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSession? Type1800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemStatus? Type1801 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEvent? Type1801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Response? Type1802 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? Type1802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3? Type1803 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? Type1803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Object? Type1804 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? Type1804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Status? Type1805 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? Type1805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorVariant1? Type1806 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? Type1806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails2? Type1807 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? Type1807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type1808 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator? Type1808 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1809 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType? Type1809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type1810 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType? Type1810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsage? Type1811 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType? Type1811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Conversation22? Type1812 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType? Type1812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type1813 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? Type1813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type1814 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? Type1814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type1815 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType? Type1815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type1816 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionType? Type1816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type1817 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudio? Type1817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type1818 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? Type1818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type1819 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2? Type1819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type1820 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2? Type1820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type1821 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? Type1821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type1822 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? Type1822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type1823 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? Type1823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type1824 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2? Type1824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type1825 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2? Type1825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type1826 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? Type1826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type1827 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? Type1827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type1828 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? Type1828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type1829 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2? Type1829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type1830 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2? Type1830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEvent? Type1831 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? Type1831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEventType? Type1832 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type1832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type1833 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type1833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type1834 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type1834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type1835 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type1835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type1836 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type1836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEvent? Type1837 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type1837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEventType? Type1838 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type1838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type1839 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type1839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type1840 { get; set; } + public global::tryAGI.OpenAI.Reasoning? Type1840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type1841 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummary2? Type1841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type1842 { get; set; } + public global::tryAGI.OpenAI.ReasoningGenerateSummary2? Type1842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorCode? Type1843 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemType? Type1843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEvent? Type1844 { get; set; } + public global::System.Collections.Generic.IList? Type1844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEventType? Type1845 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContent? Type1845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEvent? Type1846 { get; set; } + public global::System.Collections.Generic.IList? Type1846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEventType? Type1847 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemStatus? Type1847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type1848 { get; set; } + public global::tryAGI.OpenAI.Response? Type1848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type1849 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3? Type1849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type1850 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Object? Type1850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type1851 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Status? Type1851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type1852 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorVariant1? Type1852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type1853 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails2? Type1853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type1854 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type1854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type1855 { get; set; } + public global::System.Collections.Generic.IList? Type1855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type1856 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type1856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type1857 { get; set; } + public global::tryAGI.OpenAI.ResponseUsage? Type1857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextType? Type1858 { get; set; } + public global::tryAGI.OpenAI.Conversation22? Type1858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type1859 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type1859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type1860 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type1860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPython? Type1861 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type1861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type1862 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type1862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type1863 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type1863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type1864 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type1864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type1865 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type1865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type1866 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type1866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type1867 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type1867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type1868 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type1868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type1869 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type1869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type1870 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type1870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type1871 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type1871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type1872 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type1872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type1873 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type1873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type1874 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type1874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEvent? Type1875 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type1875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEventType? Type1876 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type1876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type1877 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEvent? Type1877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type1878 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEventType? Type1878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemList? Type1879 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type1879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemListObject? Type1880 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type1880 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1881 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type1881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProb? Type1882 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type1882 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1883 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEvent? Type1883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type1884 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEventType? Type1884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type1885 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type1885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type1886 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type1886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type1887 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type1887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type1888 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type1888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type1889 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorCode? Type1889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type1890 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEvent? Type1890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type1891 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEventType? Type1891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type1892 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEvent? Type1892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type1893 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEventType? Type1893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type1894 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type1894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type1895 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type1895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type1896 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type1896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type1897 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type1897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type1898 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type1898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type1899 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type1899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type1900 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type1900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type1901 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type1901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type1902 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type1902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type1903 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type1903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type1904 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextType? Type1904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type1905 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type1905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type1906 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type1906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type1907 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPython? Type1907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1908 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type1908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextParam? Type1909 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type1909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceParam? Type1910 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type1910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsePropertiesTruncation2? Type1911 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type1911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEvent? Type1912 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type1912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEventType? Type1913 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type1913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type1914 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type1914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type1915 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type1915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type1916 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type1916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type1917 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type1917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type1918 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type1918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type1919 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type1919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type1920 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type1920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type1921 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEvent? Type1921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type1922 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEventType? Type1922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type1923 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type1923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type1924 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type1924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type1925 { get; set; } + public global::tryAGI.OpenAI.ResponseItemList? Type1925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type1926 { get; set; } + public global::tryAGI.OpenAI.ResponseItemListObject? Type1926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type1927 { get; set; } + public global::System.Collections.Generic.IList? Type1927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type1928 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProb? Type1928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type1929 { get; set; } + public global::System.Collections.Generic.IList? Type1929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type1930 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type1930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type1931 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type1931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type1932 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type1932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type1933 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type1933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEvent? Type1934 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type1934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type1935 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type1935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type1936 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type1936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type1937 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type1937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type1938 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type1938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type1939 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type1939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type1940 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type1940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type1941 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type1941 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1942 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type1942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type1943 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type1943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type1944 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type1944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type1945 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type1945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type1946 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type1946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type1947 { get; set; } + public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type1947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type1948 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type1948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEvent? Type1949 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type1949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type1950 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type1950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type1951 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type1951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type1952 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type1952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type1953 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type1953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEvent? Type1954 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type1955 { get; set; } + public global::tryAGI.OpenAI.ResponseTextParam? Type1955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleObject? Type1956 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceParam? Type1956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleDeletedResource? Type1957 { get; set; } + public global::tryAGI.OpenAI.ResponsePropertiesTruncation2? Type1957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type1958 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEvent? Type1958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleListResource? Type1959 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEventType? Type1959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleListResourceObject? Type1960 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type1960 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1961 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type1961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type1962 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type1962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderRequest? Type1963 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type1963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponse? Type1964 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type1964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type1965 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type1965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type1966 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type1966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectObject? Type1967 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type1967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectStatus? Type1968 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type1968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredAction? Type1969 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type1969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type1970 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type1970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type1971 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type1971 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1972 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type1972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObject? Type1973 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type1973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastError? Type1974 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type1974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type1975 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type1975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type1976 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type1976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type1977 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type1977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type1978 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type1978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObject? Type1979 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type1979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type1980 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEvent? Type1980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type1981 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type1981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1982 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type1982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type1983 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type1983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type1984 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type1984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type1985 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type1985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type1986 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type1986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type1987 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type1987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type1988 { get; set; } + public global::System.Collections.Generic.IList? Type1988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type1989 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type1989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1990 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type1990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type1991 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type1991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type1992 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type1992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type1993 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type1993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type1994 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type1994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type1995 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEvent? Type1995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type1996 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type1996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type1997 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type1997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type1998 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type1998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type1999 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type1999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type2000 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEvent? Type2000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type2001 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type2001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type2002 { get; set; } + public global::tryAGI.OpenAI.RoleObject? Type2002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type2003 { get; set; } + public global::tryAGI.OpenAI.RoleDeletedResource? Type2003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type2004 { get; set; } + public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type2004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type2005 { get; set; } + public global::tryAGI.OpenAI.RoleListResource? Type2005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type2006 { get; set; } + public global::tryAGI.OpenAI.RoleListResourceObject? Type2006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type2007 { get; set; } + public global::System.Collections.Generic.IList? Type2007 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type2008 { get; set; } + public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type2008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2009 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequest? Type2009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type2010 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponse? Type2010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type2011 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type2011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type2012 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type2012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type2013 { get; set; } + public global::tryAGI.OpenAI.RunObjectObject? Type2013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type2014 { get; set; } + public global::tryAGI.OpenAI.RunObjectStatus? Type2014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type2015 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredAction? Type2015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type2016 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type2016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type2017 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type2017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type2018 { get; set; } + public global::System.Collections.Generic.IList? Type2018 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2019 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObject? Type2019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type2020 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastError? Type2020 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2021 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type2021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2022 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type2022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2023 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type2023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2024 { get; set; } + public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type2024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2025 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObject? Type2025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2026 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type2026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2027 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type2027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2028 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectObject? Type2029 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type2029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectType? Type2030 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type2030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectStatus? Type2031 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type2031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2032 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type2032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastError2? Type2033 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type2033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2034 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type2034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2035 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type2035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2036 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2037 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type2037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2038 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type2038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2039 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type2039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2040 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type2040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2041 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type2041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2042 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type2042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2043 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type2043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2044 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type2044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2045 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type2045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2046 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type2046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2047 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type2047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2048 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type2048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2049 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type2049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2050 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type2050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2051 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type2051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2052 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type2052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2053 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type2053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2054 { get; set; } + public global::System.Collections.Generic.IList>? Type2054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2055 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2056 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type2056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2057 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type2057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2058 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type2058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2059 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type2059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2060 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type2060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2061 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type2061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2062 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type2062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2063 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type2063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2064 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type2064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2065 { get; set; } + public global::System.Collections.Generic.IList? Type2065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2066 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type2066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2067 { get; set; } + public global::System.Collections.Generic.IList? Type2067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2068 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectType? Type2069 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2070 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2071 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2072 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2073 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2074 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2075 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectObject? Type2075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2076 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectType? Type2076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2077 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectStatus? Type2077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2078 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2078 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2079 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastError2? Type2079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2080 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2081 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2082 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObject? Type2083 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectObject? Type2084 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResources2? Type2085 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2086 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2087 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2088 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2089 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2090 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionTool? Type2091 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchTool? Type2092 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerTool? Type2093 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2094 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchTool? Type2095 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParam? Type2096 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParam? Type2097 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParam? Type2098 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParam? Type2099 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParam? Type2100 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2101 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2102 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolDiscriminator? Type2103 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2104 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2105 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2106 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustom? Type2107 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2108 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2109 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2110 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypes? Type2111 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2112 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2113 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2114 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2115 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectType? Type2115 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2116 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2117 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2118 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2119 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2120 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2121 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2122 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2123 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2124 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2125 { get; set; } + public global::System.Collections.Generic.IList? Type2125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2126 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2127 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationObjectType? Type2128 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateGroupBody? Type2129 { get; set; } + public global::tryAGI.OpenAI.ThreadObject? Type2129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2130 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectObject? Type2130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2131 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResources2? Type2131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2132 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2133 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Upload? Type2134 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadStatus? Type2135 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadObject? Type2136 { get; set; } + public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2137 { get; set; } + public global::tryAGI.OpenAI.FunctionTool? Type2137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadCertificateRequest? Type2138 { get; set; } + public global::tryAGI.OpenAI.FileSearchTool? Type2138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPart? Type2139 { get; set; } + public global::tryAGI.OpenAI.ComputerTool? Type2139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPartObject? Type2140 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2141 { get; set; } + public global::tryAGI.OpenAI.WebSearchTool? Type2141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2142 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolParam? Type2142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2143 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParam? Type2143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2144 { get; set; } + public global::tryAGI.OpenAI.CustomToolParam? Type2144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2145 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParam? Type2145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2146 { get; set; } + public global::tryAGI.OpenAI.ToolSearchToolParam? Type2146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResult? Type2147 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2148 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2149 { get; set; } + public global::tryAGI.OpenAI.ToolDiscriminator? Type2149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2150 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResult? Type2151 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResultObject? Type2152 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResult? Type2153 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustom? Type2153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2154 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponse? Type2155 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponseObject? Type2156 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2156 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2157 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypes? Type2157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucket? Type2158 { get; set; } + public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2159 { get; set; } + public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2160 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResultsItem? Type2161 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2162 { get; set; } + public global::System.Collections.Generic.IList? Type2162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2163 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2164 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.User? Type2165 { get; set; } + public global::System.Collections.Generic.IList? Type2165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserObject? Type2166 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1? Type2167 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1Object? Type2168 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjects2? Type2169 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsObject? Type2170 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2171 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsDataItem? Type2172 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponse? Type2173 { get; set; } + public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2174 { get; set; } + public global::tryAGI.OpenAI.TruncationObjectType? Type2174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResource? Type2175 { get; set; } + public global::tryAGI.OpenAI.UpdateGroupBody? Type2175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResourceObject? Type2176 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2176 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2177 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponse? Type2178 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponseObject? Type2179 { get; set; } + public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2179 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2180 { get; set; } + public global::tryAGI.OpenAI.Upload? Type2180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignment? Type2181 { get; set; } + public global::tryAGI.OpenAI.UploadStatus? Type2181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2182 { get; set; } + public global::tryAGI.OpenAI.UploadObject? Type2182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2183 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfigType? Type2184 { get; set; } + public global::tryAGI.OpenAI.UploadCertificateRequest? Type2184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderRequest? Type2185 { get; set; } + public global::tryAGI.OpenAI.UploadPart? Type2185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderResponse? Type2186 { get; set; } + public global::tryAGI.OpenAI.UploadPartObject? Type2186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2187 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2188 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2189 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2190 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2191 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2192 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2193 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResult? Type2193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2194 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2195 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2196 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2197 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResult? Type2197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2198 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResultObject? Type2198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastError2? Type2199 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResult? Type2199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2200 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2201 { get; set; } + public global::tryAGI.OpenAI.UsageResponse? Type2201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2202 { get; set; } + public global::tryAGI.OpenAI.UsageResponseObject? Type2202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2203 { get; set; } + public global::System.Collections.Generic.IList? Type2203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2204 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucket? Type2204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2205 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2206 { get; set; } + public global::System.Collections.Generic.IList? Type2206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2207 { get; set; } + public global::tryAGI.OpenAI.ResultsItem? Type2207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2208 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2209 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2210 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2211 { get; set; } + public global::tryAGI.OpenAI.User? Type2211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2212 { get; set; } + public global::tryAGI.OpenAI.UserObject? Type2212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2213 { get; set; } + public global::tryAGI.OpenAI.UserUser1? Type2213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2214 { get; set; } + public global::tryAGI.OpenAI.UserUser1Object? Type2214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2215 { get; set; } + public global::tryAGI.OpenAI.UserProjects2? Type2215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2216 { get; set; } + public global::tryAGI.OpenAI.UserProjectsObject? Type2216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2217 { get; set; } + public global::System.Collections.Generic.IList? Type2217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2218 { get; set; } + public global::tryAGI.OpenAI.UserProjectsDataItem? Type2218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResource? Type2219 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponse? Type2219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2220 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2221 { get; set; } + public global::tryAGI.OpenAI.UserListResource? Type2221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResource? Type2222 { get; set; } + public global::tryAGI.OpenAI.UserListResourceObject? Type2222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2223 { get; set; } + public global::System.Collections.Generic.IList? Type2223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2224 { get; set; } + public global::tryAGI.OpenAI.UserListResponse? Type2224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2225 { get; set; } + public global::tryAGI.OpenAI.UserListResponseObject? Type2225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResource? Type2226 { get; set; } + public global::System.Collections.Generic.IList? Type2226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResourceObject? Type2227 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignment? Type2227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFind? Type2228 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFindType? Type2229 { get; set; } + public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2230 { get; set; } + public global::tryAGI.OpenAI.VadConfigType? Type2230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2231 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderRequest? Type2231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearch? Type2232 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderResponse? Type2232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2233 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2233 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2234 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2235 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2236 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2237 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2238 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolType? Type2239 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolFilters2? Type2240 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2241 { get; set; } + public global::System.Collections.Generic.IList? Type2241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallType? Type2242 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type2243 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2244 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2245 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastError2? Type2245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2246 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2247 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2248 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2249 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2250 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2251 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2252 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2253 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpired? Type2254 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2255 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2256 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2257 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailed? Type2258 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2259 { get; set; } + public global::System.Collections.Generic.IList? Type2259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2260 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2261 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2262 { get; set; } + public global::System.Collections.Generic.IList? Type2262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2263 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2264 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2265 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResource? Type2265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2266 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2267 { get; set; } + public global::System.Collections.Generic.IList? Type2267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2268 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResource? Type2268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2269 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2270 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2271 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2272 { get; set; } + public global::tryAGI.OpenAI.VoiceResource? Type2272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2273 { get; set; } + public global::tryAGI.OpenAI.VoiceResourceObject? Type2273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2274 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFind? Type2274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2275 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFindType? Type2275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2276 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2277 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2278 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearch? Type2278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2279 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2280 { get; set; } + public global::System.Collections.Generic.IList? Type2280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2281 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2282 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2283 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2284 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2285 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolType? Type2285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2286 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolFilters2? Type2286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2287 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2288 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallType? Type2288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2289 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type2289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2290 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2291 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2292 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2293 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2294 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2295 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2296 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2297 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2298 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2299 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailed? Type2300 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpired? Type2300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2301 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2302 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2303 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2304 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailed? Type2304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2305 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2306 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2307 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillReferenceParamType? Type2308 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2309 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2310 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2311 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillParamType? Type2312 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2313 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2314 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2315 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2315 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2316 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStatus? Type2317 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRole? Type2318 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentType? Type2319 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBody? Type2320 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBodyType? Type2321 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBody? Type2322 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBodyType? Type2323 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2324 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2325 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Annotation? Type2326 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2327 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TopLogProb? Type2328 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProb? Type2329 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2329 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2330 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContentType? Type2331 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2331 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2332 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2332 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2333 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContent? Type2334 { get; set; } + public global::System.Collections.Generic.IList? Type2334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContentType? Type2335 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContentType? Type2336 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContentType? Type2337 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContentType? Type2338 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageDetail? Type2339 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentType? Type2340 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2341 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2342 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileInputDetail? Type2343 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentType? Type2344 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhase2? Type2345 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageType? Type2346 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailed? Type2346 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2347 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem3? Type2348 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2349 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickButtonType? Type2350 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickParamType? Type2351 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClickActionType? Type2352 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CoordParam? Type2353 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragParamType? Type2354 { get; set; } + public global::tryAGI.OpenAI.SkillReferenceParamType? Type2354 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2355 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPressActionType? Type2356 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MoveParamType? Type2357 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScreenshotParamType? Type2358 { get; set; } + public global::tryAGI.OpenAI.InlineSkillParamType? Type2358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScrollParamType? Type2359 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TypeParamType? Type2360 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitParamType? Type2361 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2362 { get; set; } + public global::System.Collections.Generic.IList? Type2362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallType? Type2363 { get; set; } + public global::tryAGI.OpenAI.MessageStatus? Type2363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolType? Type2364 { get; set; } + public global::tryAGI.OpenAI.MessageRole? Type2364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankerVersionType? Type2365 { get; set; } + public global::tryAGI.OpenAI.InputTextContentType? Type2365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HybridSearchOptions? Type2366 { get; set; } + public global::tryAGI.OpenAI.FileCitationBody? Type2366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankingOptions? Type2367 { get; set; } + public global::tryAGI.OpenAI.FileCitationBodyType? Type2367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Filters2? Type2368 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBody? Type2368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolType? Type2369 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBodyType? Type2369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolType? Type2370 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerEnvironment? Type2371 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2372 { get; set; } + public global::tryAGI.OpenAI.Annotation? Type2372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2373 { get; set; } + public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2374 { get; set; } + public global::tryAGI.OpenAI.TopLogProb? Type2374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy2? Type2375 { get; set; } + public global::tryAGI.OpenAI.LogProb? Type2375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2376 { get; set; } + public global::System.Collections.Generic.IList? Type2376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParamType? Type2377 { get; set; } + public global::tryAGI.OpenAI.OutputTextContentType? Type2377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParam? Type2378 { get; set; } + public global::System.Collections.Generic.IList? Type2378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamType? Type2379 { get; set; } + public global::System.Collections.Generic.IList? Type2379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy3? Type2380 { get; set; } + public global::tryAGI.OpenAI.TextContent? Type2380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2381 { get; set; } + public global::tryAGI.OpenAI.TextContentType? Type2381 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2382 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContentType? Type2382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem2? Type2383 { get; set; } + public global::tryAGI.OpenAI.ReasoningTextContentType? Type2383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2384 { get; set; } + public global::tryAGI.OpenAI.RefusalContentType? Type2384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalSkillParam? Type2385 { get; set; } + public global::tryAGI.OpenAI.ImageDetail? Type2385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2386 { get; set; } + public global::tryAGI.OpenAI.InputImageContentType? Type2386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2387 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2387 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2388 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParam? Type2389 { get; set; } + public global::tryAGI.OpenAI.FileInputDetail? Type2389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2390 { get; set; } + public global::tryAGI.OpenAI.InputFileContentType? Type2390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2391 { get; set; } + public global::tryAGI.OpenAI.MessagePhase2? Type2391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant1? Type2392 { get; set; } + public global::tryAGI.OpenAI.MessageType? Type2392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2393 { get; set; } + public global::System.Collections.Generic.IList? Type2393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParam? Type2394 { get; set; } + public global::tryAGI.OpenAI.ContentItem3? Type2394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2395 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GrammarSyntax1? Type2396 { get; set; } + public global::tryAGI.OpenAI.ClickButtonType? Type2396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2397 { get; set; } + public global::tryAGI.OpenAI.ClickParamType? Type2397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2398 { get; set; } + public global::tryAGI.OpenAI.DoubleClickActionType? Type2398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamType? Type2399 { get; set; } + public global::tryAGI.OpenAI.CoordParam? Type2399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format2? Type2400 { get; set; } + public global::tryAGI.OpenAI.DragParamType? Type2400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2401 { get; set; } + public global::System.Collections.Generic.IList? Type2401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmptyModelParam? Type2402 { get; set; } + public global::tryAGI.OpenAI.KeyPressActionType? Type2402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParam? Type2403 { get; set; } + public global::tryAGI.OpenAI.MoveParamType? Type2403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParamType? Type2404 { get; set; } + public global::tryAGI.OpenAI.ScreenshotParamType? Type2404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamType? Type2405 { get; set; } + public global::tryAGI.OpenAI.ScrollParamType? Type2405 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2406 { get; set; } + public global::tryAGI.OpenAI.TypeParamType? Type2406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem13? Type2407 { get; set; } + public global::tryAGI.OpenAI.WaitParamType? Type2407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2408 { get; set; } + public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2409 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallType? Type2409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocation? Type2410 { get; set; } + public global::tryAGI.OpenAI.FunctionToolType? Type2410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocationType? Type2411 { get; set; } + public global::tryAGI.OpenAI.RankerVersionType? Type2411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContextSize? Type2412 { get; set; } + public global::tryAGI.OpenAI.HybridSearchOptions? Type2412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContentType? Type2413 { get; set; } + public global::tryAGI.OpenAI.RankingOptions? Type2413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2414 { get; set; } + public global::tryAGI.OpenAI.Filters2? Type2414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2415 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolType? Type2415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2416 { get; set; } + public global::tryAGI.OpenAI.ComputerToolType? Type2416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputType? Type2417 { get; set; } + public global::tryAGI.OpenAI.ComputerEnvironment? Type2417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionBodyType? Type2418 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2419 { get; set; } + public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2420 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecActionType? Type2421 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy2? Type2421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellAction? Type2422 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallStatus? Type2423 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolParamType? Type2423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2424 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParam? Type2424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2425 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamType? Type2425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResource? Type2426 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy3? Type2426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2427 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallType? Type2428 { get; set; } + public global::System.Collections.Generic.IList? Type2428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant12? Type2429 { get; set; } + public global::tryAGI.OpenAI.SkillsItem2? Type2429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2430 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type2431 { get; set; } + public global::tryAGI.OpenAI.LocalSkillParam? Type2431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2432 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2433 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2434 { get; set; } + public global::System.Collections.Generic.IList? Type2434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2435 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParam? Type2435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2436 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Outcome? Type2437 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2438 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant1? Type2438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2439 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2439 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2440 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParam? Type2440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type2441 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type2442 { get; set; } + public global::tryAGI.OpenAI.GrammarSyntax1? Type2442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type2443 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type2444 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type2445 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamType? Type2445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type2446 { get; set; } + public global::tryAGI.OpenAI.Format2? Type2446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type2447 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type2448 { get; set; } + public global::tryAGI.OpenAI.EmptyModelParam? Type2448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Operation? Type2449 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParam? Type2449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type2450 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParamType? Type2450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type2451 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamType? Type2451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type2452 { get; set; } + public global::System.Collections.Generic.IList? Type2452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DetailEnum? Type2453 { get; set; } + public global::tryAGI.OpenAI.ToolsItem13? Type2453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemStatus? Type2454 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type2455 { get; set; } + public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParam? Type2456 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocation? Type2456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParamType? Type2457 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocationType? Type2457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type2458 { get; set; } + public global::tryAGI.OpenAI.SearchContextSize? Type2458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type2459 { get; set; } + public global::tryAGI.OpenAI.SearchContentType? Type2459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileDetailEnum? Type2460 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParam? Type2461 { get; set; } + public global::System.Collections.Generic.IList? Type2461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParamType? Type2462 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type2463 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputType? Type2463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2464 { get; set; } + public global::tryAGI.OpenAI.CompactionBodyType? Type2464 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2465 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputVariant2Item? Type2466 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type2467 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecActionType? Type2467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type2468 { get; set; } + public global::tryAGI.OpenAI.FunctionShellAction? Type2468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type2469 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallStatus? Type2469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type2470 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellActionParam? Type2471 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type2472 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResource? Type2472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type2473 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant13? Type2474 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallType? Type2474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type2475 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant12? Type2475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type2476 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type2477 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type2477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type2478 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type2479 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type2480 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type2481 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type2482 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type2483 { get; set; } + public global::tryAGI.OpenAI.Outcome? Type2483 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2484 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type2485 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type2486 { get; set; } + public global::System.Collections.Generic.IList? Type2486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type2487 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type2487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type2488 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type2488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type2489 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type2489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type2490 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type2490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type2491 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type2491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type2492 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type2492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type2493 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type2493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type2494 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type2494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type2495 { get; set; } + public global::tryAGI.OpenAI.Operation? Type2495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type2496 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type2496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParamType2? Type2497 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type2497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResource? Type2498 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type2498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResourceObject? Type2499 { get; set; } + public global::tryAGI.OpenAI.DetailEnum? Type2499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type2500 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemStatus? Type2500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type2501 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type2501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type2502 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParam? Type2502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type2503 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParamType? Type2503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationBody? Type2504 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type2504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateConversationBody? Type2505 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type2505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type2506 { get; set; } + public global::tryAGI.OpenAI.FileDetailEnum? Type2506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrderEnum? Type2507 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParam? Type2507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModel? Type2508 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParamType? Type2508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModelEnum? Type2509 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type2509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoStatus? Type2510 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSize? Type2511 { get; set; } + public global::System.Collections.Generic.IList? Type2511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error2? Type2512 { get; set; } + public global::tryAGI.OpenAI.OutputVariant2Item? Type2512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResource? Type2513 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type2513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResourceObject? Type2514 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type2514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResource? Type2515 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type2515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResourceObject? Type2516 { get; set; } + public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type2516 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2517 { get; set; } + public global::tryAGI.OpenAI.FunctionShellActionParam? Type2517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageRefParam2? Type2518 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type2518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSeconds? Type2519 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type2519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type2520 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant13? Type2520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2521 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type2521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoJsonBody? Type2522 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type2522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type2523 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type2523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoCharacterResource? Type2524 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type2524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoReferenceInputParam? Type2525 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type2525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type2526 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type2526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2527 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type2527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type2528 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type2528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type2529 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type2529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2530 { get; set; } + public global::System.Collections.Generic.IList? Type2530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type2531 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type2531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResource? Type2532 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type2532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type2533 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type2533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoContentVariant? Type2534 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type2534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoRemixBody? Type2535 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type2535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationEnum? Type2536 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type2536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsBody? Type2537 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type2537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResource? Type2538 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type2538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResourceObject? Type2539 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type2539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type2540 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type2540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type2541 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type2541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemField? Type2542 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type2542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type2543 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParamType2? Type2543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResource? Type2544 { get; set; } + public global::tryAGI.OpenAI.ConversationResource? Type2544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResourceObject? Type2545 { get; set; } + public global::tryAGI.OpenAI.ConversationResourceObject? Type2545 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2546 { get; set; } + public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type2546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResource? Type2547 { get; set; } + public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type2547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResourceObject? Type2548 { get; set; } + public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type2548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResource? Type2549 { get; set; } + public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type2549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResourceObject? Type2550 { get; set; } + public global::tryAGI.OpenAI.CreateConversationBody? Type2550 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2551 { get; set; } + public global::tryAGI.OpenAI.UpdateConversationBody? Type2551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillBody? Type2552 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type2552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, byte[]>? Type2553 { get; set; } + public global::tryAGI.OpenAI.OrderEnum? Type2553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type2554 { get; set; } + public global::tryAGI.OpenAI.VideoModel? Type2554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResource? Type2555 { get; set; } + public global::tryAGI.OpenAI.VideoModelEnum? Type2555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type2556 { get; set; } + public global::tryAGI.OpenAI.VideoStatus? Type2556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResource? Type2557 { get; set; } + public global::tryAGI.OpenAI.VideoSize? Type2557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResourceObject? Type2558 { get; set; } + public global::tryAGI.OpenAI.Error2? Type2558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResource? Type2559 { get; set; } + public global::tryAGI.OpenAI.VideoResource? Type2559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type2560 { get; set; } + public global::tryAGI.OpenAI.VideoResourceObject? Type2560 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2561 { get; set; } + public global::tryAGI.OpenAI.VideoListResource? Type2561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillVersionBody? Type2562 { get; set; } + public global::tryAGI.OpenAI.VideoListResourceObject? Type2562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type2563 { get; set; } + public global::System.Collections.Generic.IList? Type2563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type2564 { get; set; } + public global::tryAGI.OpenAI.ImageRefParam2? Type2564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type2565 { get; set; } + public global::tryAGI.OpenAI.VideoSeconds? Type2565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflow? Type2566 { get; set; } + public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type2566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2567 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionRateLimits? Type2568 { get; set; } + public global::tryAGI.OpenAI.CreateVideoJsonBody? Type2568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionStatus? Type2569 { get; set; } + public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type2569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type2570 { get; set; } + public global::tryAGI.OpenAI.VideoCharacterResource? Type2570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionFileUpload? Type2571 { get; set; } + public global::tryAGI.OpenAI.VideoReferenceInputParam? Type2571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionHistory? Type2572 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type2572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type2573 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResource? Type2574 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type2574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResourceObject? Type2575 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type2575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowTracingParam? Type2576 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowParam? Type2577 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type2577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParam? Type2578 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResource? Type2578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type2579 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type2579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RateLimitsParam? Type2580 { get; set; } + public global::tryAGI.OpenAI.VideoContentVariant? Type2580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type2581 { get; set; } + public global::tryAGI.OpenAI.CreateVideoRemixBody? Type2581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileUploadParam? Type2582 { get; set; } + public global::tryAGI.OpenAI.TruncationEnum? Type2582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HistoryParam? Type2583 { get; set; } + public global::tryAGI.OpenAI.TokenCountsBody? Type2583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type2584 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResource? Type2584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatSessionBody? Type2585 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResourceObject? Type2585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputText? Type2586 { get; set; } + public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type2586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputTextType? Type2587 { get; set; } + public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type2587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedText? Type2588 { get; set; } + public global::tryAGI.OpenAI.ItemField? Type2588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type2589 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type2589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AttachmentType? Type2590 { get; set; } + public global::tryAGI.OpenAI.CompactResource? Type2590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Attachment? Type2591 { get; set; } + public global::tryAGI.OpenAI.CompactResourceObject? Type2591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoice8? Type2592 { get; set; } + public global::System.Collections.Generic.IList? Type2592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InferenceOptions? Type2593 { get; set; } + public global::tryAGI.OpenAI.SkillResource? Type2593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItem? Type2594 { get; set; } + public global::tryAGI.OpenAI.SkillResourceObject? Type2594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemObject? Type2595 { get; set; } + public global::tryAGI.OpenAI.SkillListResource? Type2595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemType? Type2596 { get; set; } + public global::tryAGI.OpenAI.SkillListResourceObject? Type2596 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2597 { get; set; } + public global::System.Collections.Generic.IList? Type2597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem4? Type2598 { get; set; } + public global::tryAGI.OpenAI.CreateSkillBody? Type2598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type2599 { get; set; } + public global::tryAGI.OpenAI.OneOf, byte[]>? Type2599 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2600 { get; set; } + public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type2600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSource? Type2601 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResource? Type2601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSourceType? Type2602 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type2602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotation? Type2603 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResource? Type2603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationType? Type2604 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResourceObject? Type2604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSource? Type2605 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResource? Type2605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type2606 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type2606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotation? Type2607 { get; set; } + public global::System.Collections.Generic.IList? Type2607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationType? Type2608 { get; set; } + public global::tryAGI.OpenAI.CreateSkillVersionBody? Type2608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputText? Type2609 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type2609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextType? Type2610 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type2610 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2611 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type2611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem3? Type2612 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflow? Type2612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type2613 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItem? Type2614 { get; set; } + public global::tryAGI.OpenAI.ChatSessionRateLimits? Type2614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemObject? Type2615 { get; set; } + public global::tryAGI.OpenAI.ChatSessionStatus? Type2615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemType? Type2616 { get; set; } + public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type2616 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2617 { get; set; } + public global::tryAGI.OpenAI.ChatSessionFileUpload? Type2617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItem? Type2618 { get; set; } + public global::tryAGI.OpenAI.ChatSessionHistory? Type2618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemObject? Type2619 { get; set; } + public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type2619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemType? Type2620 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResource? Type2620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallStatus? Type2621 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResourceObject? Type2621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItem? Type2622 { get; set; } + public global::tryAGI.OpenAI.WorkflowTracingParam? Type2622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemObject? Type2623 { get; set; } + public global::tryAGI.OpenAI.WorkflowParam? Type2623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemType? Type2624 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParam? Type2624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskType? Type2625 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type2625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItem? Type2626 { get; set; } + public global::tryAGI.OpenAI.RateLimitsParam? Type2626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemObject? Type2627 { get; set; } + public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type2627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemType? Type2628 { get; set; } + public global::tryAGI.OpenAI.FileUploadParam? Type2628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupTask? Type2629 { get; set; } + public global::tryAGI.OpenAI.HistoryParam? Type2629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItem? Type2630 { get; set; } + public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type2630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemObject? Type2631 { get; set; } + public global::tryAGI.OpenAI.CreateChatSessionBody? Type2631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemType? Type2632 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputText? Type2632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2633 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputTextType? Type2633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItem? Type2634 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedText? Type2634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type2635 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type2635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResource? Type2636 { get; set; } + public global::tryAGI.OpenAI.AttachmentType? Type2636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type2637 { get; set; } + public global::tryAGI.OpenAI.Attachment? Type2637 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2638 { get; set; } + public global::tryAGI.OpenAI.ToolChoice8? Type2638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatus? Type2639 { get; set; } + public global::tryAGI.OpenAI.InferenceOptions? Type2639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatusType? Type2640 { get; set; } + public global::tryAGI.OpenAI.UserMessageItem? Type2640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatus? Type2641 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemObject? Type2641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatusType? Type2642 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemType? Type2642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatus? Type2643 { get; set; } + public global::System.Collections.Generic.IList? Type2643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatusType? Type2644 { get; set; } + public global::tryAGI.OpenAI.ContentItem4? Type2644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResource? Type2645 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type2645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceObject? Type2646 { get; set; } + public global::System.Collections.Generic.IList? Type2646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Status? Type2647 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSource? Type2647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type2648 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSourceType? Type2648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResource? Type2649 { get; set; } + public global::tryAGI.OpenAI.FileAnnotation? Type2649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type2650 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationType? Type2650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResource? Type2651 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSource? Type2651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResourceObject? Type2652 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type2652 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2653 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotation? Type2653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragPoint? Type2654 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationType? Type2654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequest? Type2655 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputText? Type2655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type2656 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextType? Type2656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type2657 { get; set; } + public global::System.Collections.Generic.IList? Type2657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type2658 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem3? Type2658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type2659 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type2659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEvalRequest? Type2660 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItem? Type2660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type2661 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemObject? Type2661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsOrder? Type2662 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemType? Type2662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type2663 { get; set; } + public global::System.Collections.Generic.IList? Type2663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type2664 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItem? Type2664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainersOrder? Type2665 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemObject? Type2665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainerFilesOrder? Type2666 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemType? Type2666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListConversationItemsOrder? Type2667 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallStatus? Type2667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrder? Type2668 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItem? Type2668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrderBy? Type2669 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemObject? Type2669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsOrder? Type2670 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemType? Type2670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsStatus? Type2671 { get; set; } + public global::tryAGI.OpenAI.TaskType? Type2671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type2672 { get; set; } + public global::tryAGI.OpenAI.TaskItem? Type2672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type2673 { get; set; } + public global::tryAGI.OpenAI.TaskItemObject? Type2673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesOrder? Type2674 { get; set; } + public global::tryAGI.OpenAI.TaskItemType? Type2674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type2675 { get; set; } + public global::tryAGI.OpenAI.TaskGroupTask? Type2675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type2676 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItem? Type2676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type2677 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemObject? Type2677 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2678 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemType? Type2678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type2679 { get; set; } + public global::System.Collections.Generic.IList? Type2679 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2680 { get; set; } + public global::tryAGI.OpenAI.ThreadItem? Type2680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type2681 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type2681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type2682 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResource? Type2682 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2683 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type2683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type2684 { get; set; } + public global::System.Collections.Generic.IList? Type2684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupsOrder? Type2685 { get; set; } + public global::tryAGI.OpenAI.ActiveStatus? Type2685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type2686 { get; set; } + public global::tryAGI.OpenAI.ActiveStatusType? Type2686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupUsersOrder? Type2687 { get; set; } + public global::tryAGI.OpenAI.LockedStatus? Type2687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type2688 { get; set; } + public global::tryAGI.OpenAI.LockedStatusType? Type2688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type2689 { get; set; } + public global::tryAGI.OpenAI.ClosedStatus? Type2689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRolesOrder? Type2690 { get; set; } + public global::tryAGI.OpenAI.ClosedStatusType? Type2690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type2691 { get; set; } + public global::tryAGI.OpenAI.ThreadResource? Type2691 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2692 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceObject? Type2692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type2693 { get; set; } + public global::tryAGI.OpenAI.Status? Type2693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type2694 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type2694 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2695 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResource? Type2695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type2696 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type2696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type2697 { get; set; } + public global::tryAGI.OpenAI.ThreadListResource? Type2697 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2698 { get; set; } + public global::tryAGI.OpenAI.ThreadListResourceObject? Type2698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type2699 { get; set; } + public global::System.Collections.Generic.IList? Type2699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type2700 { get; set; } + public global::tryAGI.OpenAI.DragPoint? Type2700 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2701 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequest? Type2701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type2702 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type2702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type2703 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type2703 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2704 { get; set; } + public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type2704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type2705 { get; set; } + public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type2705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type2706 { get; set; } + public global::tryAGI.OpenAI.UpdateEvalRequest? Type2706 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2707 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type2707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSource? Type2708 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsOrder? Type2708 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2709 { get; set; } + public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type2709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSize? Type2710 { get; set; } + public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type2710 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2711 { get; set; } + public global::tryAGI.OpenAI.ListContainersOrder? Type2711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type2712 { get; set; } + public global::tryAGI.OpenAI.ListContainerFilesOrder? Type2712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type2713 { get; set; } + public global::tryAGI.OpenAI.ListConversationItemsOrder? Type2713 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2714 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrder? Type2714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type2715 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrderBy? Type2715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type2716 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsOrder? Type2716 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2717 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsStatus? Type2717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type2718 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type2718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type2719 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type2719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type2720 { get; set; } + public global::tryAGI.OpenAI.ListFilesOrder? Type2720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectRolesOrder? Type2721 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type2721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type2722 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type2722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListInputItemsOrder? Type2723 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type2723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesOrder? Type2724 { get; set; } + public global::System.Collections.Generic.IList? Type2724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsOrder? Type2725 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type2725 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2726 { get; set; } + public global::System.Collections.Generic.IList? Type2726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunIncludeItem? Type2727 { get; set; } + public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type2727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsOrder? Type2728 { get; set; } + public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type2728 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2729 { get; set; } + public global::System.Collections.Generic.IList? Type2729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type2730 { get; set; } + public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type2730 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2731 { get; set; } + public global::tryAGI.OpenAI.ListGroupsOrder? Type2731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type2732 { get; set; } + public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type2732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresOrder? Type2733 { get; set; } + public global::tryAGI.OpenAI.ListGroupUsersOrder? Type2733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type2734 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type2734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type2735 { get; set; } + public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type2735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type2736 { get; set; } + public global::tryAGI.OpenAI.ListRolesOrder? Type2736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type2737 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type2737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2738 { get; set; } + public global::System.Collections.Generic.IList? Type2738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalResponse? Type2739 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type2739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type2740 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type2740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type2741 { get; set; } + public global::System.Collections.Generic.IList? Type2741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type2742 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type2742 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type2743 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2744 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type2745 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type2746 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2747 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type2748 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type2749 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2750 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type2751 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type2752 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2753 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSource? Type2754 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2755 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSize? Type2756 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2757 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type2758 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type2759 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2760 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type2761 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type2762 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2763 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type2764 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type2765 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type2766 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectRolesOrder? Type2767 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type2768 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListInputItemsOrder? Type2769 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListMessagesOrder? Type2770 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunsOrder? Type2771 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2772 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateRunIncludeItem? Type2773 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsOrder? Type2774 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2775 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type2776 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2777 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type2778 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoresOrder? Type2779 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type2780 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type2781 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type2782 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type2783 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2784 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalResponse? Type2785 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type2786 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type2787 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type2788 { get; set; } /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.Json.g.cs new file mode 100644 index 00000000..24e4071b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct RealtimeTranslationClientEvent + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationClientEvent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEvent), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationClientEvent?; + } + + /// + /// 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.RealtimeTranslationClientEvent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationClientEvent), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationClientEvent?; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs new file mode 100644 index 00000000..d93e6b3c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs @@ -0,0 +1,288 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A Realtime translation client event. + /// + public readonly partial struct RealtimeTranslationClientEvent : global::System.IEquatable + { + /// + /// Send this event to update the translation session configuration. Translation
+ /// sessions support updates to `audio.output.language`, `audio.input.transcription`,
+ /// and `audio.input.noise_reduction`. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? SessionUpdate { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? SessionUpdate { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SessionUpdate))] +#endif + public bool IsSessionUpdate => SessionUpdate != null; + + /// + /// Send this event to append audio bytes to the translation session input audio buffer.
+ /// WebSocket translation sessions accept base64-encoded 24 kHz PCM16 mono
+ /// little-endian raw audio bytes. Unsupported websocket audio formats return a
+ /// validation error because lower-quality audio materially degrades translation
+ /// quality.
+ /// Translation consumes 200 ms engine frames. For best realtime behavior, append
+ /// audio in 200 ms chunks. If a chunk is shorter, the server buffers it until it
+ /// has enough audio for one frame. If a chunk is longer, the server splits it into
+ /// 200 ms frames and enqueues them back-to-back.
+ /// Keep appending silence while the session is active. If a client stops sending
+ /// audio and later resumes, model time treats the resumed audio as contiguous with
+ /// the previous audio rather than as a real-world pause. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? SessionInputAudioBufferAppend { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? SessionInputAudioBufferAppend { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SessionInputAudioBufferAppend))] +#endif + public bool IsSessionInputAudioBufferAppend => SessionInputAudioBufferAppend != null; + + /// + /// Gracefully close the realtime translation session. The server flushes pending
+ /// input audio and emits any remaining translated output before closing the
+ /// session. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? SessionClose { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? SessionClose { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SessionClose))] +#endif + public bool IsSessionClose => SessionClose != null; + /// + /// + /// + public static implicit operator RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate value) => new RealtimeTranslationClientEvent((global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate?(RealtimeTranslationClientEvent @this) => @this.SessionUpdate; + + /// + /// + /// + public RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? value) + { + SessionUpdate = value; + } + + /// + /// + /// + public static implicit operator RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend value) => new RealtimeTranslationClientEvent((global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend?(RealtimeTranslationClientEvent @this) => @this.SessionInputAudioBufferAppend; + + /// + /// + /// + public RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? value) + { + SessionInputAudioBufferAppend = value; + } + + /// + /// + /// + public static implicit operator RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose value) => new RealtimeTranslationClientEvent((global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose?(RealtimeTranslationClientEvent @this) => @this.SessionClose; + + /// + /// + /// + public RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? value) + { + SessionClose = value; + } + + /// + /// + /// + public RealtimeTranslationClientEvent( + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? sessionUpdate, + global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? sessionInputAudioBufferAppend, + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? sessionClose + ) + { + SessionUpdate = sessionUpdate; + SessionInputAudioBufferAppend = sessionInputAudioBufferAppend; + SessionClose = sessionClose; + } + + /// + /// + /// + public object? Object => + SessionClose as object ?? + SessionInputAudioBufferAppend as object ?? + SessionUpdate as object + ; + + /// + /// + /// + public override string? ToString() => + SessionUpdate?.ToString() ?? + SessionInputAudioBufferAppend?.ToString() ?? + SessionClose?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsSessionUpdate || IsSessionInputAudioBufferAppend || IsSessionClose; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? sessionUpdate = null, + global::System.Func? sessionInputAudioBufferAppend = null, + global::System.Func? sessionClose = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSessionUpdate && sessionUpdate != null) + { + return sessionUpdate(SessionUpdate!); + } + else if (IsSessionInputAudioBufferAppend && sessionInputAudioBufferAppend != null) + { + return sessionInputAudioBufferAppend(SessionInputAudioBufferAppend!); + } + else if (IsSessionClose && sessionClose != null) + { + return sessionClose(SessionClose!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? sessionUpdate = null, + global::System.Action? sessionInputAudioBufferAppend = null, + global::System.Action? sessionClose = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSessionUpdate) + { + sessionUpdate?.Invoke(SessionUpdate!); + } + else if (IsSessionInputAudioBufferAppend) + { + sessionInputAudioBufferAppend?.Invoke(SessionInputAudioBufferAppend!); + } + else if (IsSessionClose) + { + sessionClose?.Invoke(SessionClose!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + SessionUpdate, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate), + SessionInputAudioBufferAppend, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend), + SessionClose, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RealtimeTranslationClientEvent other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionUpdate, other.SessionUpdate) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionInputAudioBufferAppend, other.SessionInputAudioBufferAppend) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionClose, other.SessionClose) + ; + } + + /// + /// + /// + public static bool operator ==(RealtimeTranslationClientEvent obj1, RealtimeTranslationClientEvent obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RealtimeTranslationClientEvent obj1, RealtimeTranslationClientEvent obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RealtimeTranslationClientEvent o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.Json.g.cs new file mode 100644 index 00000000..84d3fe73 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationClientEventDiscriminator + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator; + } + + /// + /// 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.RealtimeTranslationClientEventDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationClientEventDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.g.cs new file mode 100644 index 00000000..48953956 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationClientEventDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 RealtimeTranslationClientEventDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationClientEventDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventInputAudioBufferAppend.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventInputAudioBufferAppend.Json.g.cs new file mode 100644 index 00000000..dace0b3b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventInputAudioBufferAppend.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationClientEventInputAudioBufferAppend + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend; + } + + /// + /// 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.RealtimeTranslationClientEventInputAudioBufferAppend? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationClientEventInputAudioBufferAppend), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventInputAudioBufferAppend.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventInputAudioBufferAppend.g.cs new file mode 100644 index 00000000..3318889a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventInputAudioBufferAppend.g.cs @@ -0,0 +1,80 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event to append audio bytes to the translation session input audio buffer.
+ /// WebSocket translation sessions accept base64-encoded 24 kHz PCM16 mono
+ /// little-endian raw audio bytes. Unsupported websocket audio formats return a
+ /// validation error because lower-quality audio materially degrades translation
+ /// quality.
+ /// Translation consumes 200 ms engine frames. For best realtime behavior, append
+ /// audio in 200 ms chunks. If a chunk is shorter, the server buffers it until it
+ /// has enough audio for one frame. If a chunk is longer, the server splits it into
+ /// 200 ms frames and enqueues them back-to-back.
+ /// Keep appending silence while the session is active. If a client stops sending
+ /// audio and later resumes, model time treats the resumed audio as contiguous with
+ /// the previous audio rather than as a real-world pause. + ///
+ public sealed partial class RealtimeTranslationClientEventInputAudioBufferAppend + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The event type, must be `session.input_audio_buffer.append`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType Type { get; set; } + + /// + /// Base64-encoded 24 kHz PCM16 mono audio bytes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Audio { 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. + /// + /// + /// Base64-encoded 24 kHz PCM16 mono audio bytes. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// The event type, must be `session.input_audio_buffer.append`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationClientEventInputAudioBufferAppend( + string audio, + string? eventId, + global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType type) + { + this.EventId = eventId; + this.Type = type; + this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationClientEventInputAudioBufferAppend() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventInputAudioBufferAppendType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventInputAudioBufferAppendType.g.cs new file mode 100644 index 00000000..6fb96e67 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventInputAudioBufferAppendType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.input_audio_buffer.append`. + /// + public enum RealtimeTranslationClientEventInputAudioBufferAppendType + { + /// + /// + /// + SessionInputAudioBufferAppend, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationClientEventInputAudioBufferAppendTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationClientEventInputAudioBufferAppendType value) + { + return value switch + { + RealtimeTranslationClientEventInputAudioBufferAppendType.SessionInputAudioBufferAppend => "session.input_audio_buffer.append", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationClientEventInputAudioBufferAppendType? ToEnum(string value) + { + return value switch + { + "session.input_audio_buffer.append" => RealtimeTranslationClientEventInputAudioBufferAppendType.SessionInputAudioBufferAppend, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionClose.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionClose.Json.g.cs new file mode 100644 index 00000000..577f6424 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionClose.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationClientEventSessionClose + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose; + } + + /// + /// 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.RealtimeTranslationClientEventSessionClose? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationClientEventSessionClose), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionClose.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionClose.g.cs new file mode 100644 index 00000000..6b237c1d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionClose.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Gracefully close the realtime translation session. The server flushes pending
+ /// input audio and emits any remaining translated output before closing the
+ /// session. + ///
+ public sealed partial class RealtimeTranslationClientEventSessionClose + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The event type, must be `session.close`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType Type { 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. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// The event type, must be `session.close`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationClientEventSessionClose( + string? eventId, + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType type) + { + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationClientEventSessionClose() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionCloseType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionCloseType.g.cs new file mode 100644 index 00000000..446dfb49 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionCloseType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.close`. + /// + public enum RealtimeTranslationClientEventSessionCloseType + { + /// + /// + /// + SessionClose, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationClientEventSessionCloseTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationClientEventSessionCloseType value) + { + return value switch + { + RealtimeTranslationClientEventSessionCloseType.SessionClose => "session.close", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationClientEventSessionCloseType? ToEnum(string value) + { + return value switch + { + "session.close" => RealtimeTranslationClientEventSessionCloseType.SessionClose, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionUpdate.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionUpdate.Json.g.cs new file mode 100644 index 00000000..b8d74641 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionUpdate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationClientEventSessionUpdate + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate; + } + + /// + /// 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.RealtimeTranslationClientEventSessionUpdate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationClientEventSessionUpdate), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionUpdate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionUpdate.g.cs new file mode 100644 index 00000000..2ead4a49 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionUpdate.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event to update the translation session configuration. Translation
+ /// sessions support updates to `audio.output.language`, `audio.input.transcription`,
+ /// and `audio.input.noise_reduction`. + ///
+ public sealed partial class RealtimeTranslationClientEventSessionUpdate + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The event type, must be `session.update`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType Type { get; set; } + + /// + /// Translation session fields to update. The session `type` and `model` are set
+ /// at creation and cannot be changed with `session.update`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest Session { 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. + /// + /// + /// Translation session fields to update. The session `type` and `model` are set
+ /// at creation and cannot be changed with `session.update`. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// The event type, must be `session.update`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationClientEventSessionUpdate( + global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest session, + string? eventId, + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType type) + { + this.EventId = eventId; + this.Type = type; + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationClientEventSessionUpdate() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionUpdateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionUpdateType.g.cs new file mode 100644 index 00000000..1190ff39 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventSessionUpdateType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.update`. + /// + public enum RealtimeTranslationClientEventSessionUpdateType + { + /// + /// + /// + SessionUpdate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationClientEventSessionUpdateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationClientEventSessionUpdateType value) + { + return value switch + { + RealtimeTranslationClientEventSessionUpdateType.SessionUpdate => "session.update", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationClientEventSessionUpdateType? ToEnum(string value) + { + return value switch + { + "session.update" => RealtimeTranslationClientEventSessionUpdateType.SessionUpdate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequest.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequest.Json.g.cs new file mode 100644 index 00000000..2e6d25ea --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationClientSecretCreateRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest; + } + + /// + /// 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.RealtimeTranslationClientSecretCreateRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationClientSecretCreateRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequest.g.cs new file mode 100644 index 00000000..3c925ea6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequest.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Create a translation session and client secret for the Realtime API. + /// + public sealed partial class RealtimeTranslationClientSecretCreateRequest + { + /// + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("expires_after")] + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? ExpiresAfter { get; set; } + + /// + /// Realtime translation session configuration. Translation sessions stream source
+ /// audio in and translated audio plus transcript deltas out continuously. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest Session { 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. + /// + /// + /// Realtime translation session configuration. Translation sessions stream source
+ /// audio in and translated audio plus transcript deltas out continuously. + /// + /// + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationClientSecretCreateRequest( + global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest session, + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? expiresAfter) + { + this.ExpiresAfter = expiresAfter; + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationClientSecretCreateRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequestExpiresAfter.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequestExpiresAfter.Json.g.cs new file mode 100644 index 00000000..32737edb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequestExpiresAfter.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationClientSecretCreateRequestExpiresAfter + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter; + } + + /// + /// 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.RealtimeTranslationClientSecretCreateRequestExpiresAfter? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationClientSecretCreateRequestExpiresAfter), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequestExpiresAfter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequestExpiresAfter.g.cs new file mode 100644 index 00000000..01cceedb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequestExpiresAfter.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. + ///
+ public sealed partial class RealtimeTranslationClientSecretCreateRequestExpiresAfter + { + /// + /// The anchor point for the client secret expiration, meaning that `seconds` will be added to the `created_at` time of the client secret to produce an expiration timestamp. Only `created_at` is currently supported.
+ /// Default Value: created_at + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("anchor")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? Anchor { get; set; } + + /// + /// The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if not specified.
+ /// Default Value: 600 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("seconds")] + public long? Seconds { 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 anchor point for the client secret expiration, meaning that `seconds` will be added to the `created_at` time of the client secret to produce an expiration timestamp. Only `created_at` is currently supported.
+ /// Default Value: created_at + /// + /// + /// The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if not specified.
+ /// Default Value: 600 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationClientSecretCreateRequestExpiresAfter( + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? anchor, + long? seconds) + { + this.Anchor = anchor; + this.Seconds = seconds; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationClientSecretCreateRequestExpiresAfter() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor.g.cs new file mode 100644 index 00000000..b2249899 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The anchor point for the client secret expiration, meaning that `seconds` will be added to the `created_at` time of the client secret to produce an expiration timestamp. Only `created_at` is currently supported.
+ /// Default Value: created_at + ///
+ public enum RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor + { + /// + /// + /// + CreatedAt, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor value) + { + return value switch + { + RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor.CreatedAt => "created_at", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? ToEnum(string value) + { + return value switch + { + "created_at" => RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor.CreatedAt, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateResponse.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateResponse.Json.g.cs new file mode 100644 index 00000000..7d4510b1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationClientSecretCreateResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse; + } + + /// + /// 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.RealtimeTranslationClientSecretCreateResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationClientSecretCreateResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateResponse.g.cs new file mode 100644 index 00000000..0560d39e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientSecretCreateResponse.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Response from creating a translation session and client secret for the Realtime API. + /// + public sealed partial class RealtimeTranslationClientSecretCreateResponse + { + /// + /// The generated client secret value. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Value { get; set; } + + /// + /// Expiration timestamp for the client secret, in seconds since epoch. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("expires_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ExpiresAt { get; set; } + + /// + /// A Realtime translation session. Translation sessions continuously translate input
+ /// audio into the configured output language. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranslationSession Session { 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 generated client secret value. + /// + /// + /// Expiration timestamp for the client secret, in seconds since epoch. + /// + /// + /// A Realtime translation session. Translation sessions continuously translate input
+ /// audio into the configured output language. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationClientSecretCreateResponse( + string value, + int expiresAt, + global::tryAGI.OpenAI.RealtimeTranslationSession session) + { + this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + this.ExpiresAt = expiresAt; + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationClientSecretCreateResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.Json.g.cs new file mode 100644 index 00000000..d16e7fc6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct RealtimeTranslationServerEvent + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationServerEvent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEvent), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationServerEvent?; + } + + /// + /// 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.RealtimeTranslationServerEvent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationServerEvent), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationServerEvent?; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs new file mode 100644 index 00000000..a1fd12cc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs @@ -0,0 +1,492 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A Realtime translation server event. + /// + public readonly partial struct RealtimeTranslationServerEvent : global::System.IEquatable + { + /// + /// Returned when an error occurs, which could be a client problem or a server
+ /// problem. Most errors are recoverable and the session will stay open, we
+ /// recommend to implementors to monitor and log error messages by default. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeServerEventError? Error { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeServerEventError? Error { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Error))] +#endif + public bool IsError => Error != null; + + /// + /// Returned when a translation session is created. Emitted automatically when a
+ /// new connection is established as the first server event. This event contains
+ /// the default translation session configuration. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? SessionCreated { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? SessionCreated { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SessionCreated))] +#endif + public bool IsSessionCreated => SessionCreated != null; + + /// + /// Returned when a translation session is updated with a `session.update` event,
+ /// unless there is an error. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? SessionUpdated { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? SessionUpdated { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SessionUpdated))] +#endif + public bool IsSessionUpdated => SessionUpdated != null; + + /// + /// Returned when a realtime translation session is closed. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? SessionClosed { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? SessionClosed { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SessionClosed))] +#endif + public bool IsSessionClosed => SessionClosed != null; + + /// + /// Returned when optional source-language transcript text is available. This event
+ /// is emitted only when `audio.input.transcription` is configured.
+ /// Transcript deltas are append-only text fragments. Clients should not insert
+ /// unconditional spaces between deltas. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? SessionInputTranscriptDelta { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? SessionInputTranscriptDelta { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SessionInputTranscriptDelta))] +#endif + public bool IsSessionInputTranscriptDelta => SessionInputTranscriptDelta != null; + + /// + /// Returned when translated transcript text is available.
+ /// Transcript deltas are append-only text fragments. Clients should not insert
+ /// unconditional spaces between deltas. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? SessionOutputTranscriptDelta { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? SessionOutputTranscriptDelta { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SessionOutputTranscriptDelta))] +#endif + public bool IsSessionOutputTranscriptDelta => SessionOutputTranscriptDelta != null; + + /// + /// Returned when translated output audio is available. Output audio deltas are
+ /// 200 ms frames of PCM16 audio. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? SessionOutputAudioDelta { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? SessionOutputAudioDelta { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SessionOutputAudioDelta))] +#endif + public bool IsSessionOutputAudioDelta => SessionOutputAudioDelta != null; + /// + /// + /// + public static implicit operator RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeServerEventError value) => new RealtimeTranslationServerEvent((global::tryAGI.OpenAI.RealtimeServerEventError?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeServerEventError?(RealtimeTranslationServerEvent @this) => @this.Error; + + /// + /// + /// + public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeServerEventError? value) + { + Error = value; + } + + /// + /// + /// + public static implicit operator RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated value) => new RealtimeTranslationServerEvent((global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated?(RealtimeTranslationServerEvent @this) => @this.SessionCreated; + + /// + /// + /// + public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? value) + { + SessionCreated = value; + } + + /// + /// + /// + public static implicit operator RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated value) => new RealtimeTranslationServerEvent((global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated?(RealtimeTranslationServerEvent @this) => @this.SessionUpdated; + + /// + /// + /// + public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? value) + { + SessionUpdated = value; + } + + /// + /// + /// + public static implicit operator RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed value) => new RealtimeTranslationServerEvent((global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed?(RealtimeTranslationServerEvent @this) => @this.SessionClosed; + + /// + /// + /// + public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? value) + { + SessionClosed = value; + } + + /// + /// + /// + public static implicit operator RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta value) => new RealtimeTranslationServerEvent((global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta?(RealtimeTranslationServerEvent @this) => @this.SessionInputTranscriptDelta; + + /// + /// + /// + public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? value) + { + SessionInputTranscriptDelta = value; + } + + /// + /// + /// + public static implicit operator RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta value) => new RealtimeTranslationServerEvent((global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta?(RealtimeTranslationServerEvent @this) => @this.SessionOutputTranscriptDelta; + + /// + /// + /// + public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? value) + { + SessionOutputTranscriptDelta = value; + } + + /// + /// + /// + public static implicit operator RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta value) => new RealtimeTranslationServerEvent((global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta?(RealtimeTranslationServerEvent @this) => @this.SessionOutputAudioDelta; + + /// + /// + /// + public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? value) + { + SessionOutputAudioDelta = value; + } + + /// + /// + /// + public RealtimeTranslationServerEvent( + global::tryAGI.OpenAI.RealtimeServerEventError? error, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? sessionCreated, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? sessionUpdated, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? sessionClosed, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? sessionInputTranscriptDelta, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? sessionOutputTranscriptDelta, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? sessionOutputAudioDelta + ) + { + Error = error; + SessionCreated = sessionCreated; + SessionUpdated = sessionUpdated; + SessionClosed = sessionClosed; + SessionInputTranscriptDelta = sessionInputTranscriptDelta; + SessionOutputTranscriptDelta = sessionOutputTranscriptDelta; + SessionOutputAudioDelta = sessionOutputAudioDelta; + } + + /// + /// + /// + public object? Object => + SessionOutputAudioDelta as object ?? + SessionOutputTranscriptDelta as object ?? + SessionInputTranscriptDelta as object ?? + SessionClosed as object ?? + SessionUpdated as object ?? + SessionCreated as object ?? + Error as object + ; + + /// + /// + /// + public override string? ToString() => + Error?.ToString() ?? + SessionCreated?.ToString() ?? + SessionUpdated?.ToString() ?? + SessionClosed?.ToString() ?? + SessionInputTranscriptDelta?.ToString() ?? + SessionOutputTranscriptDelta?.ToString() ?? + SessionOutputAudioDelta?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsError || IsSessionCreated || IsSessionUpdated || IsSessionClosed || IsSessionInputTranscriptDelta || IsSessionOutputTranscriptDelta || IsSessionOutputAudioDelta; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? error = null, + global::System.Func? sessionCreated = null, + global::System.Func? sessionUpdated = null, + global::System.Func? sessionClosed = null, + global::System.Func? sessionInputTranscriptDelta = null, + global::System.Func? sessionOutputTranscriptDelta = null, + global::System.Func? sessionOutputAudioDelta = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsError && error != null) + { + return error(Error!); + } + else if (IsSessionCreated && sessionCreated != null) + { + return sessionCreated(SessionCreated!); + } + else if (IsSessionUpdated && sessionUpdated != null) + { + return sessionUpdated(SessionUpdated!); + } + else if (IsSessionClosed && sessionClosed != null) + { + return sessionClosed(SessionClosed!); + } + else if (IsSessionInputTranscriptDelta && sessionInputTranscriptDelta != null) + { + return sessionInputTranscriptDelta(SessionInputTranscriptDelta!); + } + else if (IsSessionOutputTranscriptDelta && sessionOutputTranscriptDelta != null) + { + return sessionOutputTranscriptDelta(SessionOutputTranscriptDelta!); + } + else if (IsSessionOutputAudioDelta && sessionOutputAudioDelta != null) + { + return sessionOutputAudioDelta(SessionOutputAudioDelta!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? error = null, + global::System.Action? sessionCreated = null, + global::System.Action? sessionUpdated = null, + global::System.Action? sessionClosed = null, + global::System.Action? sessionInputTranscriptDelta = null, + global::System.Action? sessionOutputTranscriptDelta = null, + global::System.Action? sessionOutputAudioDelta = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsError) + { + error?.Invoke(Error!); + } + else if (IsSessionCreated) + { + sessionCreated?.Invoke(SessionCreated!); + } + else if (IsSessionUpdated) + { + sessionUpdated?.Invoke(SessionUpdated!); + } + else if (IsSessionClosed) + { + sessionClosed?.Invoke(SessionClosed!); + } + else if (IsSessionInputTranscriptDelta) + { + sessionInputTranscriptDelta?.Invoke(SessionInputTranscriptDelta!); + } + else if (IsSessionOutputTranscriptDelta) + { + sessionOutputTranscriptDelta?.Invoke(SessionOutputTranscriptDelta!); + } + else if (IsSessionOutputAudioDelta) + { + sessionOutputAudioDelta?.Invoke(SessionOutputAudioDelta!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Error, + typeof(global::tryAGI.OpenAI.RealtimeServerEventError), + SessionCreated, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated), + SessionUpdated, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated), + SessionClosed, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed), + SessionInputTranscriptDelta, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta), + SessionOutputTranscriptDelta, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta), + SessionOutputAudioDelta, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RealtimeTranslationServerEvent other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Error, other.Error) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionCreated, other.SessionCreated) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionUpdated, other.SessionUpdated) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionClosed, other.SessionClosed) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionInputTranscriptDelta, other.SessionInputTranscriptDelta) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionOutputTranscriptDelta, other.SessionOutputTranscriptDelta) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionOutputAudioDelta, other.SessionOutputAudioDelta) + ; + } + + /// + /// + /// + public static bool operator ==(RealtimeTranslationServerEvent obj1, RealtimeTranslationServerEvent obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RealtimeTranslationServerEvent obj1, RealtimeTranslationServerEvent obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RealtimeTranslationServerEvent o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.Json.g.cs new file mode 100644 index 00000000..8a0e441c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationServerEventDiscriminator + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator; + } + + /// + /// 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.RealtimeTranslationServerEventDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationServerEventDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.g.cs new file mode 100644 index 00000000..560ee2d3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationServerEventDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 RealtimeTranslationServerEventDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationServerEventDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionClosed.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionClosed.Json.g.cs new file mode 100644 index 00000000..ffd23320 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionClosed.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationServerEventSessionClosed + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed; + } + + /// + /// 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.RealtimeTranslationServerEventSessionClosed? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationServerEventSessionClosed), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionClosed.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionClosed.g.cs new file mode 100644 index 00000000..46a22afb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionClosed.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a realtime translation session is closed. + /// + public sealed partial class RealtimeTranslationServerEventSessionClosed + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The event type, must be `session.closed`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType Type { 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 unique ID of the server event. + /// + /// + /// The event type, must be `session.closed`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationServerEventSessionClosed( + string eventId, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationServerEventSessionClosed() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionClosedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionClosedType.g.cs new file mode 100644 index 00000000..d7e343c0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionClosedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.closed`. + /// + public enum RealtimeTranslationServerEventSessionClosedType + { + /// + /// + /// + SessionClosed, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationServerEventSessionClosedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationServerEventSessionClosedType value) + { + return value switch + { + RealtimeTranslationServerEventSessionClosedType.SessionClosed => "session.closed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationServerEventSessionClosedType? ToEnum(string value) + { + return value switch + { + "session.closed" => RealtimeTranslationServerEventSessionClosedType.SessionClosed, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionCreated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionCreated.Json.g.cs new file mode 100644 index 00000000..d6e6645b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionCreated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationServerEventSessionCreated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated; + } + + /// + /// 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.RealtimeTranslationServerEventSessionCreated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationServerEventSessionCreated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionCreated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionCreated.g.cs new file mode 100644 index 00000000..8bb753c7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionCreated.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a translation session is created. Emitted automatically when a
+ /// new connection is established as the first server event. This event contains
+ /// the default translation session configuration. + ///
+ public sealed partial class RealtimeTranslationServerEventSessionCreated + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The event type, must be `session.created`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType Type { get; set; } + + /// + /// The translation session configuration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranslationSession Session { 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 unique ID of the server event. + /// + /// + /// The translation session configuration. + /// + /// + /// The event type, must be `session.created`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationServerEventSessionCreated( + string eventId, + global::tryAGI.OpenAI.RealtimeTranslationSession session, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Type = type; + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationServerEventSessionCreated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionCreatedType.g.cs new file mode 100644 index 00000000..01003c33 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionCreatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.created`. + /// + public enum RealtimeTranslationServerEventSessionCreatedType + { + /// + /// + /// + SessionCreated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationServerEventSessionCreatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationServerEventSessionCreatedType value) + { + return value switch + { + RealtimeTranslationServerEventSessionCreatedType.SessionCreated => "session.created", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationServerEventSessionCreatedType? ToEnum(string value) + { + return value switch + { + "session.created" => RealtimeTranslationServerEventSessionCreatedType.SessionCreated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionInputTranscriptDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionInputTranscriptDelta.Json.g.cs new file mode 100644 index 00000000..9a94cf22 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionInputTranscriptDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationServerEventSessionInputTranscriptDelta + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta; + } + + /// + /// 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.RealtimeTranslationServerEventSessionInputTranscriptDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationServerEventSessionInputTranscriptDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionInputTranscriptDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionInputTranscriptDelta.g.cs new file mode 100644 index 00000000..08a1ea17 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionInputTranscriptDelta.g.cs @@ -0,0 +1,90 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when optional source-language transcript text is available. This event
+ /// is emitted only when `audio.input.transcription` is configured.
+ /// Transcript deltas are append-only text fragments. Clients should not insert
+ /// unconditional spaces between deltas. + ///
+ public sealed partial class RealtimeTranslationServerEventSessionInputTranscriptDelta + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The event type, must be `session.input_transcript.delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType Type { get; set; } + + /// + /// Append-only source-language transcript text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Delta { get; set; } + + /// + /// Timing metadata for stream alignment, derived from the translation frame
+ /// when available. It advances in 200 ms increments, but multiple transcript
+ /// deltas may share the same `elapsed_ms`. Treat it as alignment metadata,
+ /// not a unique transcript-delta identifier. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("elapsed_ms")] + public int? ElapsedMs { 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 unique ID of the server event. + /// + /// + /// Append-only source-language transcript text. + /// + /// + /// The event type, must be `session.input_transcript.delta`. + /// + /// + /// Timing metadata for stream alignment, derived from the translation frame
+ /// when available. It advances in 200 ms increments, but multiple transcript
+ /// deltas may share the same `elapsed_ms`. Treat it as alignment metadata,
+ /// not a unique transcript-delta identifier. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationServerEventSessionInputTranscriptDelta( + string eventId, + string delta, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType type, + int? elapsedMs) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Type = type; + this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta)); + this.ElapsedMs = elapsedMs; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationServerEventSessionInputTranscriptDelta() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionInputTranscriptDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionInputTranscriptDeltaType.g.cs new file mode 100644 index 00000000..32f7a100 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionInputTranscriptDeltaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.input_transcript.delta`. + /// + public enum RealtimeTranslationServerEventSessionInputTranscriptDeltaType + { + /// + /// + /// + SessionInputTranscriptDelta, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationServerEventSessionInputTranscriptDeltaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationServerEventSessionInputTranscriptDeltaType value) + { + return value switch + { + RealtimeTranslationServerEventSessionInputTranscriptDeltaType.SessionInputTranscriptDelta => "session.input_transcript.delta", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationServerEventSessionInputTranscriptDeltaType? ToEnum(string value) + { + return value switch + { + "session.input_transcript.delta" => RealtimeTranslationServerEventSessionInputTranscriptDeltaType.SessionInputTranscriptDelta, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDelta.Json.g.cs new file mode 100644 index 00000000..755d7108 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationServerEventSessionOutputAudioDelta + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta; + } + + /// + /// 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.RealtimeTranslationServerEventSessionOutputAudioDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationServerEventSessionOutputAudioDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDelta.g.cs new file mode 100644 index 00000000..965beaff --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDelta.g.cs @@ -0,0 +1,124 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when translated output audio is available. Output audio deltas are
+ /// 200 ms frames of PCM16 audio. + ///
+ public sealed partial class RealtimeTranslationServerEventSessionOutputAudioDelta + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The event type, must be `session.output_audio.delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType Type { get; set; } + + /// + /// Base64-encoded translated audio data. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Delta { get; set; } + + /// + /// Sample rate of the audio delta.
+ /// Default Value: 24000 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sample_rate")] + public int? SampleRate { get; set; } + + /// + /// Number of audio channels.
+ /// Default Value: 1 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("channels")] + public int? Channels { get; set; } + + /// + /// Audio encoding for `delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputAudioDeltaFormatJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? Format { get; set; } + + /// + /// Timing metadata for stream alignment, derived from the translation frame
+ /// when available. Treat `elapsed_ms` as alignment metadata, not a unique
+ /// event identifier. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("elapsed_ms")] + public int? ElapsedMs { 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 unique ID of the server event. + /// + /// + /// Base64-encoded translated audio data. + /// + /// + /// The event type, must be `session.output_audio.delta`. + /// + /// + /// Sample rate of the audio delta.
+ /// Default Value: 24000 + /// + /// + /// Number of audio channels.
+ /// Default Value: 1 + /// + /// + /// Audio encoding for `delta`. + /// + /// + /// Timing metadata for stream alignment, derived from the translation frame
+ /// when available. Treat `elapsed_ms` as alignment metadata, not a unique
+ /// event identifier. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationServerEventSessionOutputAudioDelta( + string eventId, + string delta, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType type, + int? sampleRate, + int? channels, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? format, + int? elapsedMs) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Type = type; + this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta)); + this.SampleRate = sampleRate; + this.Channels = channels; + this.Format = format; + this.ElapsedMs = elapsedMs; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationServerEventSessionOutputAudioDelta() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat.g.cs new file mode 100644 index 00000000..0c825fa9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Audio encoding for `delta`. + /// + public enum RealtimeTranslationServerEventSessionOutputAudioDeltaFormat + { + /// + /// + /// + Pcm16, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationServerEventSessionOutputAudioDeltaFormatExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationServerEventSessionOutputAudioDeltaFormat value) + { + return value switch + { + RealtimeTranslationServerEventSessionOutputAudioDeltaFormat.Pcm16 => "pcm16", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? ToEnum(string value) + { + return value switch + { + "pcm16" => RealtimeTranslationServerEventSessionOutputAudioDeltaFormat.Pcm16, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDeltaType.g.cs new file mode 100644 index 00000000..cc0f8c32 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputAudioDeltaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.output_audio.delta`. + /// + public enum RealtimeTranslationServerEventSessionOutputAudioDeltaType + { + /// + /// + /// + SessionOutputAudioDelta, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationServerEventSessionOutputAudioDeltaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationServerEventSessionOutputAudioDeltaType value) + { + return value switch + { + RealtimeTranslationServerEventSessionOutputAudioDeltaType.SessionOutputAudioDelta => "session.output_audio.delta", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationServerEventSessionOutputAudioDeltaType? ToEnum(string value) + { + return value switch + { + "session.output_audio.delta" => RealtimeTranslationServerEventSessionOutputAudioDeltaType.SessionOutputAudioDelta, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputTranscriptDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputTranscriptDelta.Json.g.cs new file mode 100644 index 00000000..47a31198 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputTranscriptDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationServerEventSessionOutputTranscriptDelta + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta; + } + + /// + /// 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.RealtimeTranslationServerEventSessionOutputTranscriptDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationServerEventSessionOutputTranscriptDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputTranscriptDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputTranscriptDelta.g.cs new file mode 100644 index 00000000..09532d5e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputTranscriptDelta.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when translated transcript text is available.
+ /// Transcript deltas are append-only text fragments. Clients should not insert
+ /// unconditional spaces between deltas. + ///
+ public sealed partial class RealtimeTranslationServerEventSessionOutputTranscriptDelta + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The event type, must be `session.output_transcript.delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType Type { get; set; } + + /// + /// Append-only transcript text for the translated output audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Delta { get; set; } + + /// + /// Timing metadata for stream alignment, derived from the translation frame
+ /// when available. It advances in 200 ms increments, but multiple transcript
+ /// deltas may share the same `elapsed_ms`. Treat it as alignment metadata,
+ /// not a unique transcript-delta identifier. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("elapsed_ms")] + public int? ElapsedMs { 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 unique ID of the server event. + /// + /// + /// Append-only transcript text for the translated output audio. + /// + /// + /// The event type, must be `session.output_transcript.delta`. + /// + /// + /// Timing metadata for stream alignment, derived from the translation frame
+ /// when available. It advances in 200 ms increments, but multiple transcript
+ /// deltas may share the same `elapsed_ms`. Treat it as alignment metadata,
+ /// not a unique transcript-delta identifier. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationServerEventSessionOutputTranscriptDelta( + string eventId, + string delta, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType type, + int? elapsedMs) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Type = type; + this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta)); + this.ElapsedMs = elapsedMs; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationServerEventSessionOutputTranscriptDelta() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType.g.cs new file mode 100644 index 00000000..9278dc52 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.output_transcript.delta`. + /// + public enum RealtimeTranslationServerEventSessionOutputTranscriptDeltaType + { + /// + /// + /// + SessionOutputTranscriptDelta, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationServerEventSessionOutputTranscriptDeltaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationServerEventSessionOutputTranscriptDeltaType value) + { + return value switch + { + RealtimeTranslationServerEventSessionOutputTranscriptDeltaType.SessionOutputTranscriptDelta => "session.output_transcript.delta", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? ToEnum(string value) + { + return value switch + { + "session.output_transcript.delta" => RealtimeTranslationServerEventSessionOutputTranscriptDeltaType.SessionOutputTranscriptDelta, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionUpdated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionUpdated.Json.g.cs new file mode 100644 index 00000000..e906130e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionUpdated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationServerEventSessionUpdated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated; + } + + /// + /// 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.RealtimeTranslationServerEventSessionUpdated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationServerEventSessionUpdated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionUpdated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionUpdated.g.cs new file mode 100644 index 00000000..c5058214 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionUpdated.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a translation session is updated with a `session.update` event,
+ /// unless there is an error. + ///
+ public sealed partial class RealtimeTranslationServerEventSessionUpdated + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The event type, must be `session.updated`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionUpdatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType Type { get; set; } + + /// + /// The translation session configuration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranslationSession Session { 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 unique ID of the server event. + /// + /// + /// The translation session configuration. + /// + /// + /// The event type, must be `session.updated`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationServerEventSessionUpdated( + string eventId, + global::tryAGI.OpenAI.RealtimeTranslationSession session, + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Type = type; + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationServerEventSessionUpdated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionUpdatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionUpdatedType.g.cs new file mode 100644 index 00000000..a429a2f0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventSessionUpdatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.updated`. + /// + public enum RealtimeTranslationServerEventSessionUpdatedType + { + /// + /// + /// + SessionUpdated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationServerEventSessionUpdatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationServerEventSessionUpdatedType value) + { + return value switch + { + RealtimeTranslationServerEventSessionUpdatedType.SessionUpdated => "session.updated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationServerEventSessionUpdatedType? ToEnum(string value) + { + return value switch + { + "session.updated" => RealtimeTranslationServerEventSessionUpdatedType.SessionUpdated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSession.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSession.Json.g.cs new file mode 100644 index 00000000..a43fa494 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSession.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSession + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSession? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSession), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSession; + } + + /// + /// 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.RealtimeTranslationSession? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSession), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSession; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSession.g.cs new file mode 100644 index 00000000..73d747e0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSession.g.cs @@ -0,0 +1,97 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A Realtime translation session. Translation sessions continuously translate input
+ /// audio into the configured output language. + ///
+ public sealed partial class RealtimeTranslationSession + { + /// + /// Unique identifier for the session that looks like `sess_1234567890abcdef`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// The session type. Always `translation` for Realtime translation sessions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationSessionTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationSessionType Type { get; set; } + + /// + /// Expiration timestamp for the session, in seconds since epoch. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("expires_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ExpiresAt { get; set; } + + /// + /// The Realtime translation model used for this session. This field is set at
+ /// session creation and cannot be changed with `session.update`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { get; set; } + + /// + /// Configuration for translation input and output audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranslationSessionAudio Audio { 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. + /// + /// + /// Unique identifier for the session that looks like `sess_1234567890abcdef`. + /// + /// + /// Expiration timestamp for the session, in seconds since epoch. + /// + /// + /// The Realtime translation model used for this session. This field is set at
+ /// session creation and cannot be changed with `session.update`. + /// + /// + /// Configuration for translation input and output audio. + /// + /// + /// The session type. Always `translation` for Realtime translation sessions. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSession( + string id, + int expiresAt, + string model, + global::tryAGI.OpenAI.RealtimeTranslationSessionAudio audio, + global::tryAGI.OpenAI.RealtimeTranslationSessionType type) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Type = type; + this.ExpiresAt = expiresAt; + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSession() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudio.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudio.Json.g.cs new file mode 100644 index 00000000..ba2cb0e7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudio.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionAudio + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionAudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudio), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudio; + } + + /// + /// 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.RealtimeTranslationSessionAudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudio; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudio.g.cs new file mode 100644 index 00000000..030f1e11 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudio.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Configuration for translation input and output audio. + /// + public sealed partial class RealtimeTranslationSessionAudio + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? Input { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? Output { 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 RealtimeTranslationSessionAudio( + global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? input, + global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? output) + { + this.Input = input; + this.Output = output; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionAudio() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInput.Json.g.cs new file mode 100644 index 00000000..888f9e48 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionAudioInput + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput; + } + + /// + /// 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.RealtimeTranslationSessionAudioInput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionAudioInput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInput.g.cs new file mode 100644 index 00000000..af4311e4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInput.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionAudioInput + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2? Transcription { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("noise_reduction")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2? NoiseReduction { 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 RealtimeTranslationSessionAudioInput( + global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2? transcription, + global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2? noiseReduction) + { + this.Transcription = transcription; + this.NoiseReduction = noiseReduction; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionAudioInput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction.Json.g.cs new file mode 100644 index 00000000..6a8c2955 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionAudioInputNoiseReduction + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction; + } + + /// + /// 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.RealtimeTranslationSessionAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionAudioInputNoiseReduction), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction.g.cs new file mode 100644 index 00000000..46c1a925 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionAudioInputNoiseReduction + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction2.Json.g.cs new file mode 100644 index 00000000..1b3e5a59 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionAudioInputNoiseReduction2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2; + } + + /// + /// 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.RealtimeTranslationSessionAudioInputNoiseReduction2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionAudioInputNoiseReduction2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction2.g.cs new file mode 100644 index 00000000..b9f904df --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputNoiseReduction2.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Optional input noise reduction. + /// + public sealed partial class RealtimeTranslationSessionAudioInputNoiseReduction2 + { + /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.NoiseReductionType Type { 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. + /// + /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionAudioInputNoiseReduction2( + global::tryAGI.OpenAI.NoiseReductionType type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionAudioInputNoiseReduction2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription.Json.g.cs new file mode 100644 index 00000000..210b0d18 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionAudioInputTranscription + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription; + } + + /// + /// 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.RealtimeTranslationSessionAudioInputTranscription? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionAudioInputTranscription), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription.g.cs new file mode 100644 index 00000000..4550a76b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionAudioInputTranscription + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription2.Json.g.cs new file mode 100644 index 00000000..7f632a25 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionAudioInputTranscription2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2; + } + + /// + /// 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.RealtimeTranslationSessionAudioInputTranscription2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionAudioInputTranscription2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription2.g.cs new file mode 100644 index 00000000..0bb2ecb2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioInputTranscription2.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Optional source-language transcription. When configured, the server emits
+ /// `session.input_transcript.delta` events. Translation itself still runs from
+ /// the input audio stream. + ///
+ public sealed partial class RealtimeTranslationSessionAudioInputTranscription2 + { + /// + /// The transcription model used for source transcript deltas. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { 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 transcription model used for source transcript deltas. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionAudioInputTranscription2( + string model) + { + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionAudioInputTranscription2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioOutput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioOutput.Json.g.cs new file mode 100644 index 00000000..44823396 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioOutput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionAudioOutput + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput; + } + + /// + /// 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.RealtimeTranslationSessionAudioOutput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionAudioOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioOutput.g.cs new file mode 100644 index 00000000..c8a88518 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionAudioOutput.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionAudioOutput + { + /// + /// Target language for translated output audio and transcript deltas. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language")] + public string? Language { 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. + /// + /// + /// Target language for translated output audio and transcript deltas. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionAudioOutput( + string? language) + { + this.Language = language; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionAudioOutput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequest.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequest.Json.g.cs new file mode 100644 index 00000000..fe37b239 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionCreateRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest; + } + + /// + /// 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.RealtimeTranslationSessionCreateRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionCreateRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequest.g.cs new file mode 100644 index 00000000..dd51a66c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequest.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Realtime translation session configuration. Translation sessions stream source
+ /// audio in and translated audio plus transcript deltas out continuously. + ///
+ public sealed partial class RealtimeTranslationSessionCreateRequest + { + /// + /// The Realtime translation model used for this session. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { get; set; } + + /// + /// Configuration for translation input and output audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? Audio { 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 Realtime translation model used for this session. + /// + /// + /// Configuration for translation input and output audio. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionCreateRequest( + string model, + global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? audio) + { + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.Audio = audio; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionCreateRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudio.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudio.Json.g.cs new file mode 100644 index 00000000..8138ec24 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudio.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionCreateRequestAudio + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio; + } + + /// + /// 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.RealtimeTranslationSessionCreateRequestAudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionCreateRequestAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudio.g.cs new file mode 100644 index 00000000..862dfbd1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudio.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Configuration for translation input and output audio. + /// + public sealed partial class RealtimeTranslationSessionCreateRequestAudio + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? Input { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? Output { 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 RealtimeTranslationSessionCreateRequestAudio( + global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? input, + global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? output) + { + this.Input = input; + this.Output = output; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionCreateRequestAudio() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInput.Json.g.cs new file mode 100644 index 00000000..738d74ae --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionCreateRequestAudioInput + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput; + } + + /// + /// 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.RealtimeTranslationSessionCreateRequestAudioInput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionCreateRequestAudioInput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInput.g.cs new file mode 100644 index 00000000..ec3964b6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInput.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionCreateRequestAudioInput + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2? Transcription { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("noise_reduction")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2? NoiseReduction { 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 RealtimeTranslationSessionCreateRequestAudioInput( + global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2? transcription, + global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2? noiseReduction) + { + this.Transcription = transcription; + this.NoiseReduction = noiseReduction; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionCreateRequestAudioInput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction.Json.g.cs new file mode 100644 index 00000000..02adb076 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction; + } + + /// + /// 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.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction.g.cs new file mode 100644 index 00000000..ccf73ccc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2.Json.g.cs new file mode 100644 index 00000000..db2759ac --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2; + } + + /// + /// 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.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2.g.cs new file mode 100644 index 00000000..cc69648c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Optional input noise reduction. Set to `null` to disable it. + /// + public sealed partial class RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2 + { + /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.NoiseReductionType Type { 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. + /// + /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2( + global::tryAGI.OpenAI.NoiseReductionType type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription.Json.g.cs new file mode 100644 index 00000000..6d75adaf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionCreateRequestAudioInputTranscription + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription; + } + + /// + /// 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.RealtimeTranslationSessionCreateRequestAudioInputTranscription? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionCreateRequestAudioInputTranscription), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription.g.cs new file mode 100644 index 00000000..5d7fd42d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionCreateRequestAudioInputTranscription + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription2.Json.g.cs new file mode 100644 index 00000000..d6ccab17 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionCreateRequestAudioInputTranscription2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2; + } + + /// + /// 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.RealtimeTranslationSessionCreateRequestAudioInputTranscription2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionCreateRequestAudioInputTranscription2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription2.g.cs new file mode 100644 index 00000000..b778feea --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioInputTranscription2.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Optional source-language transcription. When configured, the server emits
+ /// `session.input_transcript.delta` events. Translation itself still runs from
+ /// the input audio stream. + ///
+ public sealed partial class RealtimeTranslationSessionCreateRequestAudioInputTranscription2 + { + /// + /// The transcription model to use for source transcript deltas. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { 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 transcription model to use for source transcript deltas. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionCreateRequestAudioInputTranscription2( + string model) + { + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionCreateRequestAudioInputTranscription2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioOutput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioOutput.Json.g.cs new file mode 100644 index 00000000..fd71bbab --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioOutput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionCreateRequestAudioOutput + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput; + } + + /// + /// 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.RealtimeTranslationSessionCreateRequestAudioOutput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionCreateRequestAudioOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioOutput.g.cs new file mode 100644 index 00000000..d3f43bda --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionCreateRequestAudioOutput.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionCreateRequestAudioOutput + { + /// + /// Target language for translated output audio and transcript deltas. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language")] + public string? Language { 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. + /// + /// + /// Target language for translated output audio and transcript deltas. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionCreateRequestAudioOutput( + string? language) + { + this.Language = language; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionCreateRequestAudioOutput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionType.g.cs new file mode 100644 index 00000000..9d40e81c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The session type. Always `translation` for Realtime translation sessions. + /// + public enum RealtimeTranslationSessionType + { + /// + /// + /// + Translation, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationSessionTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationSessionType value) + { + return value switch + { + RealtimeTranslationSessionType.Translation => "translation", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationSessionType? ToEnum(string value) + { + return value switch + { + "translation" => RealtimeTranslationSessionType.Translation, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequest.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequest.Json.g.cs new file mode 100644 index 00000000..9e47c91f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionUpdateRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest; + } + + /// + /// 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.RealtimeTranslationSessionUpdateRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionUpdateRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequest.g.cs new file mode 100644 index 00000000..453a19e9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequest.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Realtime translation session fields that can be updated with `session.update`. + /// + public sealed partial class RealtimeTranslationSessionUpdateRequest + { + /// + /// Configuration for translation input and output audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? Audio { 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. + /// + /// + /// Configuration for translation input and output audio. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionUpdateRequest( + global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? audio) + { + this.Audio = audio; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionUpdateRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudio.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudio.Json.g.cs new file mode 100644 index 00000000..8265258c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudio.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionUpdateRequestAudio + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio; + } + + /// + /// 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.RealtimeTranslationSessionUpdateRequestAudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionUpdateRequestAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudio.g.cs new file mode 100644 index 00000000..b22ad5be --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudio.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Configuration for translation input and output audio. + /// + public sealed partial class RealtimeTranslationSessionUpdateRequestAudio + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? Input { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? Output { 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 RealtimeTranslationSessionUpdateRequestAudio( + global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? input, + global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? output) + { + this.Input = input; + this.Output = output; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionUpdateRequestAudio() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInput.Json.g.cs new file mode 100644 index 00000000..f98dbdf7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInput + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput; + } + + /// + /// 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.RealtimeTranslationSessionUpdateRequestAudioInput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionUpdateRequestAudioInput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInput.g.cs new file mode 100644 index 00000000..11609618 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInput.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInput + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2? Transcription { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("noise_reduction")] + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2? NoiseReduction { 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 RealtimeTranslationSessionUpdateRequestAudioInput( + global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2? transcription, + global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2? noiseReduction) + { + this.Transcription = transcription; + this.NoiseReduction = noiseReduction; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionUpdateRequestAudioInput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction.Json.g.cs new file mode 100644 index 00000000..2ab469b9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction; + } + + /// + /// 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.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction.g.cs new file mode 100644 index 00000000..570465b4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2.Json.g.cs new file mode 100644 index 00000000..814733c0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2; + } + + /// + /// 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.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2.g.cs new file mode 100644 index 00000000..e040f371 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Optional input noise reduction. Set to `null` to disable it. + /// + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2 + { + /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.NoiseReductionType Type { 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. + /// + /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2( + global::tryAGI.OpenAI.NoiseReductionType type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription.Json.g.cs new file mode 100644 index 00000000..83e7a9b0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInputTranscription + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription; + } + + /// + /// 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.RealtimeTranslationSessionUpdateRequestAudioInputTranscription? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionUpdateRequestAudioInputTranscription), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription.g.cs new file mode 100644 index 00000000..2087af74 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInputTranscription + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2.Json.g.cs new file mode 100644 index 00000000..cd08ded1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInputTranscription2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2; + } + + /// + /// 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.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2.g.cs new file mode 100644 index 00000000..1e170716 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Optional source-language transcription. When configured, the server emits
+ /// `session.input_transcript.delta` events. Translation itself still runs from
+ /// the input audio stream. + ///
+ public sealed partial class RealtimeTranslationSessionUpdateRequestAudioInputTranscription2 + { + /// + /// The transcription model to use for source transcript deltas. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { 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 transcription model to use for source transcript deltas. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionUpdateRequestAudioInputTranscription2( + string model) + { + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionUpdateRequestAudioInputTranscription2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioOutput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioOutput.Json.g.cs new file mode 100644 index 00000000..9321417c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioOutput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioOutput + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput; + } + + /// + /// 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.RealtimeTranslationSessionUpdateRequestAudioOutput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranslationSessionUpdateRequestAudioOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioOutput.g.cs new file mode 100644 index 00000000..e3e0d9e2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationSessionUpdateRequestAudioOutput.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranslationSessionUpdateRequestAudioOutput + { + /// + /// Target language for translated output audio and transcript deltas. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language")] + public string? Language { 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. + /// + /// + /// Target language for translated output audio and transcript deltas. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranslationSessionUpdateRequestAudioOutput( + string? language) + { + this.Language = language; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranslationSessionUpdateRequestAudioOutput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranslationClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranslationClientSecret.g.cs new file mode 100644 index 00000000..2fceb1c6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranslationClientSecret.g.cs @@ -0,0 +1,490 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class RealtimeClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateTranslationClientSecretSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateTranslationClientSecretSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_CreateTranslationClientSecretSecurityRequirement0, + }; + partial void PrepareCreateTranslationClientSecretArguments( + global::System.Net.Http.HttpClient httpClient, + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest request); + partial void PrepareCreateTranslationClientSecretRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest request); + partial void ProcessCreateTranslationClientSecretResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateTranslationClientSecretResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create a Realtime translation client secret with an associated translation session configuration.
+ /// Client secrets are short-lived tokens that can be passed to a client app,
+ /// such as a web frontend or mobile client, which grants access to the Realtime
+ /// Translation API without leaking your main API key. You can configure a custom
+ /// TTL for each client secret.
+ /// Returns the created client secret and the effective translation session object.
+ /// The client secret is a string that looks like `ek_1234`. + ///
+ /// + /// 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 CreateTranslationClientSecretAsync( + + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateTranslationClientSecretAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create a Realtime translation client secret with an associated translation session configuration.
+ /// Client secrets are short-lived tokens that can be passed to a client app,
+ /// such as a web frontend or mobile client, which grants access to the Realtime
+ /// Translation API without leaking your main API key. You can configure a custom
+ /// TTL for each client secret.
+ /// Returns the created client secret and the effective translation session object.
+ /// The client secret is a string that looks like `ek_1234`. + ///
+ /// + /// 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> CreateTranslationClientSecretAsResponseAsync( + + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateTranslationClientSecretArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateTranslationClientSecretSecurityRequirements, + operationName: "CreateTranslationClientSecretAsync"); + + 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: "/realtime/translations/client_secrets", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateTranslationClientSecretRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + 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: "CreateTranslationClientSecret", + methodName: "CreateTranslationClientSecretAsync", + pathTemplate: "\"/realtime/translations/client_secrets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTranslationClientSecret", + methodName: "CreateTranslationClientSecretAsync", + pathTemplate: "\"/realtime/translations/client_secrets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTranslationClientSecret", + methodName: "CreateTranslationClientSecretAsync", + pathTemplate: "\"/realtime/translations/client_secrets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateTranslationClientSecretResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTranslationClientSecret", + methodName: "CreateTranslationClientSecretAsync", + pathTemplate: "\"/realtime/translations/client_secrets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTranslationClientSecret", + methodName: "CreateTranslationClientSecretAsync", + pathTemplate: "\"/realtime/translations/client_secrets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateTranslationClientSecretResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::tryAGI.OpenAI.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::tryAGI.OpenAI.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create a Realtime translation client secret with an associated translation session configuration.
+ /// Client secrets are short-lived tokens that can be passed to a client app,
+ /// such as a web frontend or mobile client, which grants access to the Realtime
+ /// Translation API without leaking your main API key. You can configure a custom
+ /// TTL for each client secret.
+ /// Returns the created client secret and the effective translation session object.
+ /// The client secret is a string that looks like `ek_1234`. + ///
+ /// + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. + /// + /// + /// Realtime translation session configuration. Translation sessions stream source
+ /// audio in and translated audio plus transcript deltas out continuously. + /// + /// 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 CreateTranslationClientSecretAsync( + global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest session, + global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? expiresAfter = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest + { + ExpiresAfter = expiresAfter, + Session = session, + }; + + return await CreateTranslationClientSecretAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml index 15cdf08c..f15b02a7 100644 --- a/src/libs/tryAGI.OpenAI/openapi.yaml +++ b/src/libs/tryAGI.OpenAI/openapi.yaml @@ -25724,6 +25724,102 @@ paths: }, "client_secret": null } + /realtime/translations/client_secrets: + post: + summary: > + Create a Realtime translation client secret with an associated + translation session configuration. + + + Client secrets are short-lived tokens that can be passed to a client + app, + + such as a web frontend or mobile client, which grants access to the + Realtime + + Translation API without leaking your main API key. You can configure a + custom + + TTL for each client secret. + + + Returns the created client secret and the effective translation session + object. + + The client secret is a string that looks like `ek_1234`. + operationId: create-realtime-translation-client-secret + tags: + - Realtime + requestBody: + description: >- + Create a client secret with the given translation session + configuration. + required: true + content: + application/json: + schema: + $ref: >- + #/components/schemas/RealtimeTranslationClientSecretCreateRequest + responses: + '200': + description: Translation client secret created successfully. + content: + application/json: + schema: + $ref: >- + #/components/schemas/RealtimeTranslationClientSecretCreateResponse + x-oaiMeta: + name: Create translation client secret + group: realtime + examples: + request: + curl: > + curl -X POST + https://api.openai.com/v1/realtime/translations/client_secrets \ + -H "Authorization: Bearer $OPENAI_API_KEY" \ + -H "Content-Type: application/json" \ + -d '{ + "expires_after": { + "anchor": "created_at", + "seconds": 600 + }, + "session": { + "model": "gpt-realtime-translate", + "audio": { + "input": { + "transcription": { + "model": "gpt-realtime-whisper" + }, + "noise_reduction": null + }, + "output": { + "language": "es" + } + } + } + }' + response: | + { + "value": "ek_68af296e8e408191a1120ab6383263c2", + "expires_at": 1756310470, + "session": { + "id": "sess_C9CiUVUzUzYIssh3ELY1d", + "type": "translation", + "expires_at": 1756310470, + "model": "gpt-realtime-translate", + "audio": { + "input": { + "transcription": { + "model": "gpt-realtime-whisper" + }, + "noise_reduction": null + }, + "output": { + "language": "es" + } + } + } + } /responses: post: operationId: createResponse @@ -64990,6 +65086,789 @@ components: } } } + RealtimeTranslationClientEvent: + discriminator: + propertyName: type + description: | + A Realtime translation client event. + anyOf: + - $ref: '#/components/schemas/RealtimeTranslationClientEventSessionUpdate' + - $ref: >- + #/components/schemas/RealtimeTranslationClientEventInputAudioBufferAppend + - $ref: '#/components/schemas/RealtimeTranslationClientEventSessionClose' + RealtimeTranslationClientEventInputAudioBufferAppend: + type: object + description: > + Send this event to append audio bytes to the translation session input + audio buffer. + + + WebSocket translation sessions accept base64-encoded 24 kHz PCM16 mono + + little-endian raw audio bytes. Unsupported websocket audio formats + return a + + validation error because lower-quality audio materially degrades + translation + + quality. + + + Translation consumes 200 ms engine frames. For best realtime behavior, + append + + audio in 200 ms chunks. If a chunk is shorter, the server buffers it + until it + + has enough audio for one frame. If a chunk is longer, the server splits + it into + + 200 ms frames and enqueues them back-to-back. + + + Keep appending silence while the session is active. If a client stops + sending + + audio and later resumes, model time treats the resumed audio as + contiguous with + + the previous audio rather than as a real-world pause. + properties: + event_id: + type: string + maxLength: 512 + description: Optional client-generated ID used to identify this event. + type: + type: string + enum: + - session.input_audio_buffer.append + description: The event type, must be `session.input_audio_buffer.append`. + x-stainless-const: true + audio: + type: string + description: Base64-encoded 24 kHz PCM16 mono audio bytes. + required: + - type + - audio + x-oaiMeta: + name: session.input_audio_buffer.append + group: realtime + example: | + { + "event_id": "event_456", + "type": "session.input_audio_buffer.append", + "audio": "Base64EncodedAudioData" + } + RealtimeTranslationClientEventSessionClose: + type: object + description: > + Gracefully close the realtime translation session. The server flushes + pending + + input audio and emits any remaining translated output before closing the + + session. + properties: + event_id: + type: string + maxLength: 512 + description: Optional client-generated ID used to identify this event. + type: + type: string + enum: + - session.close + description: The event type, must be `session.close`. + x-stainless-const: true + required: + - type + x-oaiMeta: + name: session.close + group: realtime + example: | + { + "event_id": "event_789", + "type": "session.close" + } + RealtimeTranslationClientEventSessionUpdate: + type: object + description: > + Send this event to update the translation session configuration. + Translation + + sessions support updates to `audio.output.language`, + `audio.input.transcription`, + + and `audio.input.noise_reduction`. + properties: + event_id: + type: string + maxLength: 512 + description: Optional client-generated ID used to identify this event. + type: + type: string + enum: + - session.update + description: The event type, must be `session.update`. + x-stainless-const: true + session: + $ref: '#/components/schemas/RealtimeTranslationSessionUpdateRequest' + description: > + Translation session fields to update. The session `type` and `model` + are set + + at creation and cannot be changed with `session.update`. + required: + - type + - session + x-oaiMeta: + name: session.update + group: realtime + example: | + { + "type": "session.update", + "session": { + "audio": { + "input": { + "transcription": { + "model": "gpt-realtime-whisper" + }, + "noise_reduction": null + }, + "output": { + "language": "es" + } + } + } + } + RealtimeTranslationClientSecretCreateRequest: + type: object + title: Realtime translation client secret creation request + description: | + Create a translation session and client secret for the Realtime API. + properties: + expires_after: + type: object + title: Client secret expiration + description: > + Configuration for the client secret expiration. Expiration refers to + the time after which + + a client secret will no longer be valid for creating sessions. The + session itself may + + continue after that time once started. A secret can be used to + create multiple sessions + + until it expires. + properties: + anchor: + type: string + enum: + - created_at + description: > + The anchor point for the client secret expiration, meaning that + `seconds` will be added to the `created_at` time of the client + secret to produce an expiration timestamp. Only `created_at` is + currently supported. + default: created_at + x-stainless-const: true + seconds: + type: integer + format: int64 + description: > + The number of seconds from the anchor point to the expiration. + Select a value between `10` and `7200` (2 hours). This default + to 600 seconds (10 minutes) if not specified. + minimum: 10 + maximum: 7200 + default: 600 + session: + $ref: '#/components/schemas/RealtimeTranslationSessionCreateRequest' + required: + - session + RealtimeTranslationClientSecretCreateResponse: + type: object + title: Realtime translation session and client secret + description: > + Response from creating a translation session and client secret for the + Realtime API. + properties: + value: + type: string + description: The generated client secret value. + expires_at: + type: integer + format: unixtime + description: Expiration timestamp for the client secret, in seconds since epoch. + session: + $ref: '#/components/schemas/RealtimeTranslationSession' + required: + - value + - expires_at + - session + x-oaiMeta: + name: Translation session response object + group: realtime + example: | + { + "value": "ek_68af296e8e408191a1120ab6383263c2", + "expires_at": 1756310470, + "session": { + "id": "sess_C9CiUVUzUzYIssh3ELY1d", + "type": "translation", + "expires_at": 1756310470, + "model": "gpt-realtime-translate", + "audio": { + "input": { + "transcription": null, + "noise_reduction": null + }, + "output": { + "language": "es" + } + } + } + } + RealtimeTranslationServerEvent: + discriminator: + propertyName: type + description: | + A Realtime translation server event. + anyOf: + - $ref: '#/components/schemas/RealtimeServerEventError' + - $ref: '#/components/schemas/RealtimeTranslationServerEventSessionCreated' + - $ref: '#/components/schemas/RealtimeTranslationServerEventSessionUpdated' + - $ref: '#/components/schemas/RealtimeTranslationServerEventSessionClosed' + - $ref: >- + #/components/schemas/RealtimeTranslationServerEventSessionInputTranscriptDelta + - $ref: >- + #/components/schemas/RealtimeTranslationServerEventSessionOutputTranscriptDelta + - $ref: >- + #/components/schemas/RealtimeTranslationServerEventSessionOutputAudioDelta + RealtimeTranslationServerEventSessionClosed: + type: object + description: | + Returned when a realtime translation session is closed. + properties: + event_id: + type: string + description: The unique ID of the server event. + type: + type: string + enum: + - session.closed + description: The event type, must be `session.closed`. + x-stainless-const: true + required: + - event_id + - type + x-oaiMeta: + name: session.closed + group: realtime + example: | + { + "event_id": "event_987", + "type": "session.closed" + } + RealtimeTranslationServerEventSessionCreated: + type: object + description: > + Returned when a translation session is created. Emitted automatically + when a + + new connection is established as the first server event. This event + contains + + the default translation session configuration. + properties: + event_id: + type: string + description: The unique ID of the server event. + type: + type: string + enum: + - session.created + description: The event type, must be `session.created`. + x-stainless-const: true + session: + $ref: '#/components/schemas/RealtimeTranslationSession' + description: The translation session configuration. + required: + - event_id + - type + - session + x-oaiMeta: + name: session.created + group: realtime + example: | + { + "type": "session.created", + "event_id": "event_123", + "session": { + "id": "sess_123", + "type": "translation", + "model": "gpt-realtime-translate", + "expires_at": 1714857600, + "audio": { + "input": { + "transcription": { + "model": "gpt-realtime-whisper", + "language": "en" + }, + "noise_reduction": { + "type": "near_field" + } + }, + "output": { + "language": "fr" + } + } + } + } + RealtimeTranslationServerEventSessionInputTranscriptDelta: + type: object + description: > + Returned when optional source-language transcript text is available. + This event + + is emitted only when `audio.input.transcription` is configured. + + + Transcript deltas are append-only text fragments. Clients should not + insert + + unconditional spaces between deltas. + properties: + event_id: + type: string + description: The unique ID of the server event. + type: + type: string + enum: + - session.input_transcript.delta + description: The event type, must be `session.input_transcript.delta`. + x-stainless-const: true + delta: + type: string + description: Append-only source-language transcript text. + elapsed_ms: + type: integer + nullable: true + description: > + Timing metadata for stream alignment, derived from the translation + frame + + when available. It advances in 200 ms increments, but multiple + transcript + + deltas may share the same `elapsed_ms`. Treat it as alignment + metadata, + + not a unique transcript-delta identifier. + required: + - event_id + - type + - delta + x-oaiMeta: + name: session.input_transcript.delta + group: realtime + example: | + { + "event_id": "event_125", + "type": "session.input_transcript.delta", + "delta": " hear", + "elapsed_ms": 1200 + } + RealtimeTranslationServerEventSessionOutputAudioDelta: + type: object + description: > + Returned when translated output audio is available. Output audio deltas + are + + 200 ms frames of PCM16 audio. + properties: + event_id: + type: string + description: The unique ID of the server event. + type: + type: string + enum: + - session.output_audio.delta + description: The event type, must be `session.output_audio.delta`. + x-stainless-const: true + delta: + type: string + description: Base64-encoded translated audio data. + sample_rate: + type: integer + description: Sample rate of the audio delta. + default: 24000 + channels: + type: integer + description: Number of audio channels. + default: 1 + format: + type: string + enum: + - pcm16 + description: Audio encoding for `delta`. + x-stainless-const: true + elapsed_ms: + type: integer + nullable: true + description: > + Timing metadata for stream alignment, derived from the translation + frame + + when available. Treat `elapsed_ms` as alignment metadata, not a + unique + + event identifier. + required: + - event_id + - type + - delta + x-oaiMeta: + name: session.output_audio.delta + group: realtime + example: | + { + "event_id": "event_123", + "type": "session.output_audio.delta", + "delta": "Base64EncodedAudioDelta", + "sample_rate": 24000, + "channels": 1, + "format": "pcm16", + "elapsed_ms": 1200 + } + RealtimeTranslationServerEventSessionOutputTranscriptDelta: + type: object + description: > + Returned when translated transcript text is available. + + + Transcript deltas are append-only text fragments. Clients should not + insert + + unconditional spaces between deltas. + properties: + event_id: + type: string + description: The unique ID of the server event. + type: + type: string + enum: + - session.output_transcript.delta + description: The event type, must be `session.output_transcript.delta`. + x-stainless-const: true + delta: + type: string + description: Append-only transcript text for the translated output audio. + elapsed_ms: + type: integer + nullable: true + description: > + Timing metadata for stream alignment, derived from the translation + frame + + when available. It advances in 200 ms increments, but multiple + transcript + + deltas may share the same `elapsed_ms`. Treat it as alignment + metadata, + + not a unique transcript-delta identifier. + required: + - event_id + - type + - delta + x-oaiMeta: + name: session.output_transcript.delta + group: realtime + example: | + { + "event_id": "event_124", + "type": "session.output_transcript.delta", + "delta": " escuch", + "elapsed_ms": 1200 + } + RealtimeTranslationServerEventSessionUpdated: + type: object + description: > + Returned when a translation session is updated with a `session.update` + event, + + unless there is an error. + properties: + event_id: + type: string + description: The unique ID of the server event. + type: + type: string + enum: + - session.updated + description: The event type, must be `session.updated`. + x-stainless-const: true + session: + $ref: '#/components/schemas/RealtimeTranslationSession' + description: The translation session configuration. + required: + - event_id + - type + - session + x-oaiMeta: + name: session.updated + group: realtime + example: | + { + "type": "session.updated", + "event_id": "event_124", + "session": { + "id": "sess_123", + "type": "translation", + "model": "gpt-realtime-translate", + "expires_at": 1714857600, + "audio": { + "input": { + "transcription": { + "model": "gpt-realtime-whisper", + "language": "en" + }, + "noise_reduction": { + "type": "near_field" + } + }, + "output": { + "language": "es" + } + } + } + } + RealtimeTranslationSession: + type: object + title: Realtime translation session + description: > + A Realtime translation session. Translation sessions continuously + translate input + + audio into the configured output language. + properties: + id: + type: string + description: > + Unique identifier for the session that looks like + `sess_1234567890abcdef`. + type: + type: string + enum: + - translation + description: > + The session type. Always `translation` for Realtime translation + sessions. + x-stainless-const: true + expires_at: + type: integer + format: unixtime + description: Expiration timestamp for the session, in seconds since epoch. + model: + type: string + description: > + The Realtime translation model used for this session. This field is + set at + + session creation and cannot be changed with `session.update`. + audio: + type: object + description: | + Configuration for translation input and output audio. + properties: + input: + type: object + properties: + transcription: + anyOf: + - type: object + description: > + Optional source-language transcription. When configured, + the server emits + + `session.input_transcript.delta` events. Translation + itself still runs from + + the input audio stream. + properties: + model: + type: string + description: >- + The transcription model used for source transcript + deltas. + required: + - model + - type: 'null' + noise_reduction: + anyOf: + - type: object + description: | + Optional input noise reduction. + properties: + type: + $ref: '#/components/schemas/NoiseReductionType' + required: + - type + - type: 'null' + output: + type: object + properties: + language: + type: string + description: > + Target language for translated output audio and transcript + deltas. + required: + - id + - type + - expires_at + - model + - audio + x-oaiMeta: + name: The translation session object + group: realtime + example: | + { + "id": "sess_C9G5QPteg4UIbotdKLoYQ", + "type": "translation", + "expires_at": 1756324625, + "model": "gpt-realtime-translate", + "audio": { + "input": { + "transcription": { + "model": "gpt-realtime-whisper" + }, + "noise_reduction": null + }, + "output": { + "language": "es" + } + } + } + RealtimeTranslationSessionCreateRequest: + type: object + title: Realtime translation session configuration + description: > + Realtime translation session configuration. Translation sessions stream + source + + audio in and translated audio plus transcript deltas out continuously. + properties: + model: + type: string + description: | + The Realtime translation model used for this session. + audio: + type: object + description: | + Configuration for translation input and output audio. + properties: + input: + type: object + properties: + transcription: + anyOf: + - type: object + description: > + Optional source-language transcription. When configured, + the server emits + + `session.input_transcript.delta` events. Translation + itself still runs from + + the input audio stream. + properties: + model: + type: string + description: >- + The transcription model to use for source transcript + deltas. + required: + - model + - type: 'null' + noise_reduction: + anyOf: + - type: object + description: > + Optional input noise reduction. Set to `null` to disable + it. + properties: + type: + $ref: '#/components/schemas/NoiseReductionType' + required: + - type + - type: 'null' + output: + type: object + properties: + language: + type: string + description: > + Target language for translated output audio and transcript + deltas. + required: + - model + RealtimeTranslationSessionUpdateRequest: + type: object + title: Realtime translation session update + description: > + Realtime translation session fields that can be updated with + `session.update`. + properties: + audio: + type: object + description: | + Configuration for translation input and output audio. + properties: + input: + type: object + properties: + transcription: + anyOf: + - type: object + description: > + Optional source-language transcription. When configured, + the server emits + + `session.input_transcript.delta` events. Translation + itself still runs from + + the input audio stream. + properties: + model: + type: string + description: >- + The transcription model to use for source transcript + deltas. + required: + - model + - type: 'null' + noise_reduction: + anyOf: + - type: object + description: > + Optional input noise reduction. Set to `null` to disable + it. + properties: + type: + $ref: '#/components/schemas/NoiseReductionType' + required: + - type + - type: 'null' + output: + type: object + properties: + language: + type: string + description: > + Target language for translated output audio and transcript + deltas. RealtimeTruncation: title: Realtime Truncation Controls description: > @@ -79785,6 +80664,50 @@ x-oaiMeta: - type: object key: RealtimeServerEventRateLimitsUpdated path: + - id: realtime-translation-client-events + title: Translation client events + description: > + These are events that the OpenAI Realtime Translation WebSocket server + will accept from the client. + navigationGroup: realtime + sections: + - type: object + key: RealtimeTranslationClientEventSessionUpdate + path: + - type: object + key: RealtimeTranslationClientEventInputAudioBufferAppend + path: + - type: object + key: RealtimeTranslationClientEventSessionClose + path: + - id: realtime-translation-server-events + title: Translation server events + description: > + These are events emitted from the OpenAI Realtime Translation WebSocket + server to the client. + navigationGroup: realtime + sections: + - type: object + key: RealtimeServerEventError + path: + - type: object + key: RealtimeTranslationServerEventSessionCreated + path: + - type: object + key: RealtimeTranslationServerEventSessionUpdated + path: + - type: object + key: RealtimeTranslationServerEventSessionClosed + path: + - type: object + key: RealtimeTranslationServerEventSessionInputTranscriptDelta + path: + - type: object + key: RealtimeTranslationServerEventSessionOutputTranscriptDelta + path: + - type: object + key: RealtimeTranslationServerEventSessionOutputAudioDelta + path: - id: chat-streaming title: Streaming description: |