diff --git a/src/libs/Simli/Generated/Simli.ISimliClient.AudioToVideoInterfaceStaticAudioPost.g.cs b/src/libs/Simli/Generated/Simli.ISimliClient.AudioToVideoInterfaceStaticAudioPost.g.cs index 30a47ef..028e967 100644 --- a/src/libs/Simli/Generated/Simli.ISimliClient.AudioToVideoInterfaceStaticAudioPost.g.cs +++ b/src/libs/Simli/Generated/Simli.ISimliClient.AudioToVideoInterfaceStaticAudioPost.g.cs @@ -46,10 +46,6 @@ public partial interface ISimliClient /// /// Default Value: 0 /// - /// - /// Turns off the face restoration pass on legacy faces.
- /// Default Value: false - /// /// /// Width of the video in pixels, Trinity-2 faces only (the others keep their own frame size). At least 512, and with streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas larger than the avatar's frame is padded with its background; a smaller one crops a window out of it.
/// Default Value: 768 @@ -85,7 +81,6 @@ public partial interface ISimliClient int? audioSampleRate = default, int? audioChannelCount = default, int? videoStartingFrame = default, - bool? disableSuperRes = default, int? streamingWidth = default, int? streamingHeight = default, double? avatarPositionX = default, diff --git a/src/libs/Simli/Generated/Simli.ISimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs b/src/libs/Simli/Generated/Simli.ISimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs index 83de01c..76cab6e 100644 --- a/src/libs/Simli/Generated/Simli.ISimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs +++ b/src/libs/Simli/Generated/Simli.ISimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs @@ -9,7 +9,7 @@ public partial interface ISimliClient /// /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar @@ -31,7 +31,7 @@ public partial interface ISimliClient /// /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar @@ -53,7 +53,7 @@ public partial interface ISimliClient /// /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar @@ -77,7 +77,7 @@ public partial interface ISimliClient /// /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar @@ -102,7 +102,7 @@ public partial interface ISimliClient /// /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar diff --git a/src/libs/Simli/Generated/Simli.ISimliClient.PreprocessImageFacesTrinityPreprocessPost.g.cs b/src/libs/Simli/Generated/Simli.ISimliClient.PreprocessImageFacesTrinityPreprocessPost.g.cs index 5ea807a..d725dc5 100644 --- a/src/libs/Simli/Generated/Simli.ISimliClient.PreprocessImageFacesTrinityPreprocessPost.g.cs +++ b/src/libs/Simli/Generated/Simli.ISimliClient.PreprocessImageFacesTrinityPreprocessPost.g.cs @@ -9,7 +9,7 @@ public partial interface ISimliClient /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -30,7 +30,7 @@ public partial interface ISimliClient /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -51,7 +51,7 @@ public partial interface ISimliClient /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -73,7 +73,7 @@ public partial interface ISimliClient /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -94,7 +94,7 @@ public partial interface ISimliClient /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -121,7 +121,7 @@ public partial interface ISimliClient /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -147,7 +147,7 @@ public partial interface ISimliClient /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -173,7 +173,7 @@ public partial interface ISimliClient /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -200,7 +200,7 @@ public partial interface ISimliClient /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false diff --git a/src/libs/Simli/Generated/Simli.JsonConverters.CharacterVersion.g.cs b/src/libs/Simli/Generated/Simli.JsonConverters.CharacterVersion.g.cs deleted file mode 100644 index 8a7f61c..0000000 --- a/src/libs/Simli/Generated/Simli.JsonConverters.CharacterVersion.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Simli.JsonConverters -{ - /// - public sealed class CharacterVersionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Simli.CharacterVersion 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::Simli.CharacterVersionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Simli.CharacterVersion)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Simli.CharacterVersion); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Simli.CharacterVersion value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Simli.CharacterVersionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Simli/Generated/Simli.JsonConverters.CharacterVersionNullable.g.cs b/src/libs/Simli/Generated/Simli.JsonConverters.CharacterVersionNullable.g.cs deleted file mode 100644 index fa188c3..0000000 --- a/src/libs/Simli/Generated/Simli.JsonConverters.CharacterVersionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Simli.JsonConverters -{ - /// - public sealed class CharacterVersionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Simli.CharacterVersion? 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::Simli.CharacterVersionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Simli.CharacterVersion)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Simli.CharacterVersion?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Simli.CharacterVersion? 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::Simli.CharacterVersionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Simli/Generated/Simli.JsonSerializerContext.g.cs b/src/libs/Simli/Generated/Simli.JsonSerializerContext.g.cs index dccf684..8d57ce8 100644 --- a/src/libs/Simli/Generated/Simli.JsonSerializerContext.g.cs +++ b/src/libs/Simli/Generated/Simli.JsonSerializerContext.g.cs @@ -63,10 +63,6 @@ namespace Simli typeof(global::Simli.JsonConverters.TtsProviderNullableJsonConverter), - typeof(global::Simli.JsonConverters.CharacterVersionJsonConverter), - - typeof(global::Simli.JsonConverters.CharacterVersionNullableJsonConverter), - typeof(global::Simli.JsonConverters.AssetKindJsonConverter), typeof(global::Simli.JsonConverters.AssetKindNullableJsonConverter), @@ -108,7 +104,6 @@ namespace Simli [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.AgentUpdateLlmProvider), TypeInfoPropertyName = "AgentUpdateLlmProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.AudioToVideoRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.AudioToVideoRequestAudioFormat), TypeInfoPropertyName = "AudioToVideoRequestAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.CameraSetting))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] @@ -117,6 +112,7 @@ namespace Simli [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.AnimationId), TypeInfoPropertyName = "AnimationId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.CustomLLMConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.LLMConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.SimliModels), TypeInfoPropertyName = "SimliModels2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.GoogleModels), TypeInfoPropertyName = "GoogleModels2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.HTTPValidationError))] @@ -135,10 +131,8 @@ namespace Simli [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.HistoryRecord))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.Error))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.BodyGenerateFaceIDAPIFacesLegacyCreatePost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.CharacterVersion), TypeInfoPropertyName = "CharacterVersion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.BodyEnqueueGSAGenerationFacesGsCreatePost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.BodyPreprocessImageFacesTrinityPreprocessPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.AssetKind), TypeInfoPropertyName = "AssetKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Simli.Asset))] diff --git a/src/libs/Simli/Generated/Simli.JsonSerializerContextTypes.g.cs b/src/libs/Simli/Generated/Simli.JsonSerializerContextTypes.g.cs index 7265928..061b743 100644 --- a/src/libs/Simli/Generated/Simli.JsonSerializerContextTypes.g.cs +++ b/src/libs/Simli/Generated/Simli.JsonSerializerContextTypes.g.cs @@ -106,39 +106,39 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public bool? Type17 { get; set; } + public double? Type17 { get; set; } /// /// /// - public double? Type18 { get; set; } + public global::Simli.CameraSetting? Type18 { get; set; } /// /// /// - public global::Simli.CameraSetting? Type19 { get; set; } + public object? Type19 { get; set; } /// /// /// - public object? Type20 { get; set; } + public global::Simli.ConfigurableSessionRequest? Type20 { get; set; } /// /// /// - public global::Simli.ConfigurableSessionRequest? Type21 { get; set; } + public global::Simli.TtsProvider? Type21 { get; set; } /// /// /// - public global::Simli.TtsProvider? Type22 { get; set; } + public global::Simli.AnimationId? Type22 { get; set; } /// /// /// - public global::Simli.AnimationId? Type23 { get; set; } + public global::Simli.CustomLLMConfig? Type23 { get; set; } /// /// /// - public global::Simli.CustomLLMConfig? Type24 { get; set; } + public global::Simli.LLMConfig? Type24 { get; set; } /// /// /// - public global::Simli.LLMConfig? Type25 { get; set; } + public bool? Type25 { get; set; } /// /// /// @@ -214,7 +214,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Simli.BodyGenerateFaceIDAPIFacesLegacyCreatePost? Type44 { get; set; } + public global::Simli.BodyEnqueueGSAGenerationFacesGsCreatePost? Type44 { get; set; } /// /// /// @@ -222,119 +222,111 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Simli.CharacterVersion? Type46 { get; set; } + public global::Simli.BodyPreprocessImageFacesTrinityPreprocessPost? Type46 { get; set; } /// /// /// - public global::Simli.BodyEnqueueGSAGenerationFacesGsCreatePost? Type47 { get; set; } + public global::Simli.AssetKind? Type47 { get; set; } /// /// /// - public global::Simli.BodyPreprocessImageFacesTrinityPreprocessPost? Type48 { get; set; } + public global::Simli.Asset? Type48 { get; set; } /// /// /// - public global::Simli.AssetKind? Type49 { get; set; } + public long? Type49 { get; set; } /// /// /// - public global::Simli.Asset? Type50 { get; set; } + public global::Simli.ListedAsset? Type50 { get; set; } /// /// /// - public long? Type51 { get; set; } + public global::Simli.ListedAssetVariant2? Type51 { get; set; } /// /// /// - public global::Simli.ListedAsset? Type52 { get; set; } + public global::Simli.BodyUploadAssetAssetsKindPost? Type52 { get; set; } /// /// /// - public global::Simli.ListedAssetVariant2? Type53 { get; set; } + public global::Simli.TrinityGenerationState? Type53 { get; set; } /// /// /// - public global::Simli.BodyUploadAssetAssetsKindPost? Type54 { get; set; } + public global::Simli.TrinityGeneration? Type54 { get; set; } /// /// /// - public global::Simli.TrinityGenerationState? Type55 { get; set; } + public global::Simli.TrinityGenerationStatus? Type55 { get; set; } /// /// /// - public global::Simli.TrinityGeneration? Type56 { get; set; } + public global::System.Collections.Generic.IList? Type56 { get; set; } /// /// /// - public global::Simli.TrinityGenerationStatus? Type57 { get; set; } + public global::Simli.TrinityVersion? Type57 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type58 { get; set; } + public float? Type58 { get; set; } /// /// /// - public global::Simli.TrinityVersion? Type59 { get; set; } + public global::System.Collections.Generic.IList? Type59 { get; set; } /// /// /// - public float? Type60 { get; set; } + public global::Simli.GetIceServersComposeIceGetResponseItem? Type60 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type61 { get; set; } + public global::Simli.StartAudioToVideoSessionComposeTokenPostResponse? Type61 { get; set; } /// /// /// - public global::Simli.GetIceServersComposeIceGetResponseItem? Type62 { get; set; } + public global::Simli.StartAudioToVideoSessionComposeTokenPostResponse2? Type62 { get; set; } /// /// /// - public global::Simli.StartAudioToVideoSessionComposeTokenPostResponse? Type63 { get; set; } + public global::Simli.AudioToVideoInterfaceStaticAudioPostResponse? Type63 { get; set; } /// /// /// - public global::Simli.StartAudioToVideoSessionComposeTokenPostResponse2? Type64 { get; set; } + public global::Simli.EnqueueGSAGenerationFacesGsCreatePostResponse? Type64 { get; set; } /// /// /// - public global::Simli.AudioToVideoInterfaceStaticAudioPostResponse? Type65 { get; set; } + public global::System.Collections.Generic.IList? Type65 { get; set; } /// /// /// - public global::Simli.EnqueueGSAGenerationFacesGsCreatePostResponse? Type66 { get; set; } + public global::System.Collections.Generic.IList? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::Simli.InitIntegrationsLivekitAgentsPostResponse? Type67 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type68 { get; set; } + public global::Simli.GetHistorySessionsResponse? Type68 { get; set; } /// /// /// - public global::Simli.InitIntegrationsLivekitAgentsPostResponse? Type69 { get; set; } + public global::System.Collections.Generic.IList? Type69 { get; set; } /// /// /// - public global::Simli.GetHistorySessionsResponse? Type70 { get; set; } + public global::Simli.GetRatelimiterSessionsResponse? Type70 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type71 { get; set; } + public global::System.Collections.Generic.IList? Type71 { get; set; } /// /// /// - public global::Simli.GetRatelimiterSessionsResponse? Type72 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type73 { get; set; } - /// - /// - /// - public global::Simli.CreatePipecatSessionTokenAutoTokenPostResponse? Type74 { get; set; } + public global::Simli.CreatePipecatSessionTokenAutoTokenPostResponse? Type72 { get; set; } /// /// diff --git a/src/libs/Simli/Generated/Simli.Models.AgentRequest.g.cs b/src/libs/Simli/Generated/Simli.Models.AgentRequest.g.cs index 165b801..fb115a1 100644 --- a/src/libs/Simli/Generated/Simli.Models.AgentRequest.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.AgentRequest.g.cs @@ -49,9 +49,9 @@ public sealed partial class AgentRequest public string? VoiceId { get; set; } /// - /// Example: sonic-english + /// Example: inworld-tts-2 /// - /// sonic-english + /// inworld-tts-2 [global::System.Text.Json.Serialization.JsonPropertyName("voice_model")] public string? VoiceModel { get; set; } @@ -101,7 +101,7 @@ public sealed partial class AgentRequest public int? MaxSessionLength { get; set; } /// - /// The provider of the LLM used by the agent + /// The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model /// [global::System.Text.Json.Serialization.JsonPropertyName("llm_provider")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Simli.JsonConverters.AgentRequestLlmProviderJsonConverter))] @@ -139,7 +139,7 @@ public sealed partial class AgentRequest /// The voice's ID at the voice provider (Inworld voices go by name, such as Sarah) /// /// - /// Example: sonic-english + /// Example: inworld-tts-2 /// /// /// Unique identifier for the owner of the agent @@ -160,7 +160,7 @@ public sealed partial class AgentRequest /// Default Value: 3600 /// /// - /// The provider of the LLM used by the agent + /// The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model /// /// /// Timestamp when the agent was created diff --git a/src/libs/Simli/Generated/Simli.Models.AgentRequestLlmProvider.g.cs b/src/libs/Simli/Generated/Simli.Models.AgentRequestLlmProvider.g.cs index 5dcfc42..d709349 100644 --- a/src/libs/Simli/Generated/Simli.Models.AgentRequestLlmProvider.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.AgentRequestLlmProvider.g.cs @@ -4,7 +4,7 @@ namespace Simli { /// - /// The provider of the LLM used by the agent + /// The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model /// public enum AgentRequestLlmProvider { diff --git a/src/libs/Simli/Generated/Simli.Models.AgentResponse.g.cs b/src/libs/Simli/Generated/Simli.Models.AgentResponse.g.cs index 32b19cc..756c41d 100644 --- a/src/libs/Simli/Generated/Simli.Models.AgentResponse.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.AgentResponse.g.cs @@ -60,9 +60,9 @@ public sealed partial class AgentResponse public required string VoiceId { get; set; } /// - /// Example: sonic-english + /// Example: inworld-tts-2 /// - /// sonic-english + /// inworld-tts-2 [global::System.Text.Json.Serialization.JsonPropertyName("voice_model")] [global::System.Text.Json.Serialization.JsonRequired] public required string VoiceModel { get; set; } @@ -120,7 +120,7 @@ public sealed partial class AgentResponse public required string OwnerId { get; set; } /// - /// The provider of the LLM used by the agent + /// The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model /// [global::System.Text.Json.Serialization.JsonPropertyName("llm_provider")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Simli.JsonConverters.AgentResponseLlmProviderJsonConverter))] @@ -172,7 +172,7 @@ public sealed partial class AgentResponse /// The voice's ID at the voice provider (Inworld voices go by name, such as Sarah) /// /// - /// Example: sonic-english + /// Example: inworld-tts-2 /// /// /// @@ -193,7 +193,7 @@ public sealed partial class AgentResponse /// Unique identifier for the owner of the agent /// /// - /// The provider of the LLM used by the agent + /// The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model /// /// /// Timestamp when the agent was created diff --git a/src/libs/Simli/Generated/Simli.Models.AgentResponseLlmProvider.g.cs b/src/libs/Simli/Generated/Simli.Models.AgentResponseLlmProvider.g.cs index d42d683..1aa95f3 100644 --- a/src/libs/Simli/Generated/Simli.Models.AgentResponseLlmProvider.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.AgentResponseLlmProvider.g.cs @@ -4,7 +4,7 @@ namespace Simli { /// - /// The provider of the LLM used by the agent + /// The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model /// public enum AgentResponseLlmProvider { diff --git a/src/libs/Simli/Generated/Simli.Models.AgentUpdate.g.cs b/src/libs/Simli/Generated/Simli.Models.AgentUpdate.g.cs index 13d956f..f95273c 100644 --- a/src/libs/Simli/Generated/Simli.Models.AgentUpdate.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.AgentUpdate.g.cs @@ -46,9 +46,9 @@ public sealed partial class AgentUpdate public string? VoiceId { get; set; } /// - /// Example: sonic-english + /// Example: inworld-tts-2 /// - /// sonic-english + /// inworld-tts-2 [global::System.Text.Json.Serialization.JsonPropertyName("voice_model")] public string? VoiceModel { get; set; } @@ -92,7 +92,7 @@ public sealed partial class AgentUpdate public int? MaxSessionLength { get; set; } /// - /// The provider of the LLM used by the agent + /// The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model /// [global::System.Text.Json.Serialization.JsonPropertyName("llm_provider")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Simli.JsonConverters.AgentUpdateLlmProviderJsonConverter))] @@ -128,7 +128,7 @@ public sealed partial class AgentUpdate /// The voice's ID at the voice provider (Inworld voices go by name, such as Sarah) /// /// - /// Example: sonic-english + /// Example: inworld-tts-2 /// /// /// Example: gpt-6-luna @@ -142,7 +142,7 @@ public sealed partial class AgentUpdate /// /// /// - /// The provider of the LLM used by the agent + /// The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model /// /// /// Timestamp when the agent was created diff --git a/src/libs/Simli/Generated/Simli.Models.AgentUpdateLlmProvider.g.cs b/src/libs/Simli/Generated/Simli.Models.AgentUpdateLlmProvider.g.cs index a4a7f63..17f0452 100644 --- a/src/libs/Simli/Generated/Simli.Models.AgentUpdateLlmProvider.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.AgentUpdateLlmProvider.g.cs @@ -4,7 +4,7 @@ namespace Simli { /// - /// The provider of the LLM used by the agent + /// The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model /// public enum AgentUpdateLlmProvider { diff --git a/src/libs/Simli/Generated/Simli.Models.AudioToVideoRequest.g.cs b/src/libs/Simli/Generated/Simli.Models.AudioToVideoRequest.g.cs index dd1e194..44cd80c 100644 --- a/src/libs/Simli/Generated/Simli.Models.AudioToVideoRequest.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.AudioToVideoRequest.g.cs @@ -48,13 +48,6 @@ public sealed partial class AudioToVideoRequest [global::System.Text.Json.Serialization.JsonPropertyName("videoStartingFrame")] public int? VideoStartingFrame { get; set; } - /// - /// Turns off the face restoration pass on legacy faces.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("disableSuperRes")] - public bool? DisableSuperRes { get; set; } - /// /// Width of the video in pixels, Trinity-2 faces only (the others keep their own frame size). At least 512, and with streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas larger than the avatar's frame is padded with its background; a smaller one crops a window out of it.
/// Default Value: 768 @@ -122,10 +115,6 @@ public sealed partial class AudioToVideoRequest /// /// Default Value: 0 /// - /// - /// Turns off the face restoration pass on legacy faces.
- /// Default Value: false - /// /// /// Width of the video in pixels, Trinity-2 faces only (the others keep their own frame size). At least 512, and with streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas larger than the avatar's frame is padded with its background; a smaller one crops a window out of it.
/// Default Value: 768 @@ -161,7 +150,6 @@ public AudioToVideoRequest( int? audioSampleRate, int? audioChannelCount, int? videoStartingFrame, - bool? disableSuperRes, int? streamingWidth, int? streamingHeight, double? avatarPositionX, @@ -176,7 +164,6 @@ public AudioToVideoRequest( this.AudioSampleRate = audioSampleRate; this.AudioChannelCount = audioChannelCount; this.VideoStartingFrame = videoStartingFrame; - this.DisableSuperRes = disableSuperRes; this.StreamingWidth = streamingWidth; this.StreamingHeight = streamingHeight; this.AvatarPositionX = avatarPositionX; diff --git a/src/libs/Simli/Generated/Simli.Models.BodyGenerateFaceIDAPIFacesLegacyCreatePost.Json.g.cs b/src/libs/Simli/Generated/Simli.Models.BodyGenerateFaceIDAPIFacesLegacyCreatePost.Json.g.cs deleted file mode 100644 index 3bb36c2..0000000 --- a/src/libs/Simli/Generated/Simli.Models.BodyGenerateFaceIDAPIFacesLegacyCreatePost.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Simli -{ - public sealed partial class BodyGenerateFaceIDAPIFacesLegacyCreatePost - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Simli.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Simli.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Simli.BodyGenerateFaceIDAPIFacesLegacyCreatePost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Simli.BodyGenerateFaceIDAPIFacesLegacyCreatePost), - jsonSerializerContext) as global::Simli.BodyGenerateFaceIDAPIFacesLegacyCreatePost; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Simli.BodyGenerateFaceIDAPIFacesLegacyCreatePost? FromJson( - string json) - { - return FromJson( - json, - global::Simli.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Simli.BodyGenerateFaceIDAPIFacesLegacyCreatePost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Simli.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Simli.BodyGenerateFaceIDAPIFacesLegacyCreatePost), - jsonSerializerContext).ConfigureAwait(false)) as global::Simli.BodyGenerateFaceIDAPIFacesLegacyCreatePost; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Simli.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Simli.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Simli/Generated/Simli.Models.BodyGenerateFaceIDAPIFacesLegacyCreatePost.g.cs b/src/libs/Simli/Generated/Simli.Models.BodyGenerateFaceIDAPIFacesLegacyCreatePost.g.cs deleted file mode 100644 index 240316f..0000000 --- a/src/libs/Simli/Generated/Simli.Models.BodyGenerateFaceIDAPIFacesLegacyCreatePost.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Simli -{ - /// - /// - /// - public sealed partial class BodyGenerateFaceIDAPIFacesLegacyCreatePost - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] Image { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("imagename")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Imagename { 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 BodyGenerateFaceIDAPIFacesLegacyCreatePost( - byte[] image, - string imagename) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename)); - } - - /// - /// Initializes a new instance of the class. - /// - public BodyGenerateFaceIDAPIFacesLegacyCreatePost() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Simli/Generated/Simli.Models.CharacterVersion.g.cs b/src/libs/Simli/Generated/Simli.Models.CharacterVersion.g.cs deleted file mode 100644 index 925e2d2..0000000 --- a/src/libs/Simli/Generated/Simli.Models.CharacterVersion.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Simli -{ - /// - /// - /// - public enum CharacterVersion - { - /// - /// - /// - x15, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CharacterVersionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CharacterVersion value) - { - return value switch - { - CharacterVersion.x15 => "1.5", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CharacterVersion? ToEnum(string value) - { - return value switch - { - "1.5" => CharacterVersion.x15, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Simli/Generated/Simli.Models.ConfigurableSessionRequest.g.cs b/src/libs/Simli/Generated/Simli.Models.ConfigurableSessionRequest.g.cs index c18852e..f72dd86 100644 --- a/src/libs/Simli/Generated/Simli.Models.ConfigurableSessionRequest.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.ConfigurableSessionRequest.g.cs @@ -9,13 +9,13 @@ namespace Simli public sealed partial class ConfigurableSessionRequest { /// - /// Default Value: tmp9i8bbq7c + /// Default Value: bf13113a-355a-4d97-8b90-4edccd1da7b2 /// [global::System.Text.Json.Serialization.JsonPropertyName("faceId")] public string? FaceId { get; set; } /// - /// Default Value: Cartesia + /// Default Value: Inworld /// [global::System.Text.Json.Serialization.JsonPropertyName("ttsProvider")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Simli.JsonConverters.TtsProviderJsonConverter))] @@ -28,13 +28,15 @@ public sealed partial class ConfigurableSessionRequest public string? TtsAPIKey { get; set; } /// - /// Default Value: sonic-turbo-2025-03-07 + /// Defaults to Inworld's model; with ttsProvider Cartesia, to sonic-turbo-2025-03-07.
+ /// Default Value: inworld-tts-2 ///
[global::System.Text.Json.Serialization.JsonPropertyName("ttsModel")] public string? TtsModel { get; set; } /// - /// Default Value: a167e0f3-df7e-4d52-a9c3-f949145efdab + /// The voice's ID at the voice provider (Inworld voices go by name). Defaults to Inworld's Ashley; with ttsProvider Cartesia, to a167e0f3-df7e-4d52-a9c3-f949145efdab.
+ /// Default Value: Ashley ///
[global::System.Text.Json.Serialization.JsonPropertyName("voiceId")] public string? VoiceId { get; set; } @@ -100,13 +102,6 @@ public sealed partial class ConfigurableSessionRequest [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Simli.JsonConverters.SimliModelsJsonConverter))] public global::Simli.SimliModels? Model { get; set; } - /// - /// Turns off the face restoration pass on legacy faces.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("disableSuperRes")] - public bool? DisableSuperRes { get; set; } - /// /// Width of the streamed video in pixels, Trinity-2 faces only (the others keep their own frame size). At least 512, and with streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas larger than the avatar's frame is padded with its background; a smaller one crops a window out of it.
/// Default Value: 768 @@ -163,17 +158,19 @@ public sealed partial class ConfigurableSessionRequest /// Initializes a new instance of the class. ///
/// - /// Default Value: tmp9i8bbq7c + /// Default Value: bf13113a-355a-4d97-8b90-4edccd1da7b2 /// /// - /// Default Value: Cartesia + /// Default Value: Inworld /// /// /// - /// Default Value: sonic-turbo-2025-03-07 + /// Defaults to Inworld's model; with ttsProvider Cartesia, to sonic-turbo-2025-03-07.
+ /// Default Value: inworld-tts-2 /// /// - /// Default Value: a167e0f3-df7e-4d52-a9c3-f949145efdab + /// The voice's ID at the voice provider (Inworld voices go by name). Defaults to Inworld's Ashley; with ttsProvider Cartesia, to a167e0f3-df7e-4d52-a9c3-f949145efdab.
+ /// Default Value: Ashley /// /// /// Default Value: You are Chatbot, a friendly, helpful robot. Your goal is to demonstrate your capabilities in a succinct way. Your output will be converted to audio so don't include special characters in your answers. Respond to what the user said in a creative and helpful way, but keep your responses brief. @@ -201,10 +198,6 @@ public sealed partial class ConfigurableSessionRequest /// /// Default Value: fasttalk /// - /// - /// Turns off the face restoration pass on legacy faces.
- /// Default Value: false - /// /// /// Width of the streamed video in pixels, Trinity-2 faces only (the others keep their own frame size). At least 512, and with streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas larger than the avatar's frame is padded with its background; a smaller one crops a window out of it.
/// Default Value: 768 @@ -249,7 +242,6 @@ public ConfigurableSessionRequest( global::Simli.LLMConfig? llmConfig, bool? createTranscript, global::Simli.SimliModels? model, - bool? disableSuperRes, int? streamingWidth, int? streamingHeight, double? avatarPositionX, @@ -273,7 +265,6 @@ public ConfigurableSessionRequest( this.LlmConfig = llmConfig; this.CreateTranscript = createTranscript; this.Model = model; - this.DisableSuperRes = disableSuperRes; this.StreamingWidth = streamingWidth; this.StreamingHeight = streamingHeight; this.AvatarPositionX = avatarPositionX; diff --git a/src/libs/Simli/Generated/Simli.Models.GenerateFaceIDAPIFacesLegacyCreatePostResponse.Json.g.cs b/src/libs/Simli/Generated/Simli.Models.GenerateFaceIDAPIFacesLegacyCreatePostResponse.Json.g.cs deleted file mode 100644 index e16d89a..0000000 --- a/src/libs/Simli/Generated/Simli.Models.GenerateFaceIDAPIFacesLegacyCreatePostResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Simli -{ - public sealed partial class GenerateFaceIDAPIFacesLegacyCreatePostResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Simli.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Simli.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Simli.GenerateFaceIDAPIFacesLegacyCreatePostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Simli.GenerateFaceIDAPIFacesLegacyCreatePostResponse), - jsonSerializerContext) as global::Simli.GenerateFaceIDAPIFacesLegacyCreatePostResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Simli.GenerateFaceIDAPIFacesLegacyCreatePostResponse? FromJson( - string json) - { - return FromJson( - json, - global::Simli.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Simli.GenerateFaceIDAPIFacesLegacyCreatePostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Simli.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Simli.GenerateFaceIDAPIFacesLegacyCreatePostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Simli.GenerateFaceIDAPIFacesLegacyCreatePostResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Simli.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Simli.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Simli/Generated/Simli.Models.GenerateFaceIDAPIFacesLegacyCreatePostResponse.g.cs b/src/libs/Simli/Generated/Simli.Models.GenerateFaceIDAPIFacesLegacyCreatePostResponse.g.cs deleted file mode 100644 index 7f11b5a..0000000 --- a/src/libs/Simli/Generated/Simli.Models.GenerateFaceIDAPIFacesLegacyCreatePostResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Simli -{ - /// - /// - /// - public sealed partial class GenerateFaceIDAPIFacesLegacyCreatePostResponse - { - - /// - /// 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/Simli/Generated/Simli.Models.GetRequestStatusFacesLegacyStatusGetResponse.Json.g.cs b/src/libs/Simli/Generated/Simli.Models.GetRequestStatusFacesLegacyStatusGetResponse.Json.g.cs deleted file mode 100644 index ead6741..0000000 --- a/src/libs/Simli/Generated/Simli.Models.GetRequestStatusFacesLegacyStatusGetResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Simli -{ - public sealed partial class GetRequestStatusFacesLegacyStatusGetResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Simli.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Simli.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Simli.GetRequestStatusFacesLegacyStatusGetResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Simli.GetRequestStatusFacesLegacyStatusGetResponse), - jsonSerializerContext) as global::Simli.GetRequestStatusFacesLegacyStatusGetResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Simli.GetRequestStatusFacesLegacyStatusGetResponse? FromJson( - string json) - { - return FromJson( - json, - global::Simli.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Simli.GetRequestStatusFacesLegacyStatusGetResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Simli.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Simli.GetRequestStatusFacesLegacyStatusGetResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Simli.GetRequestStatusFacesLegacyStatusGetResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Simli.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Simli.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Simli/Generated/Simli.Models.GetRequestStatusFacesLegacyStatusGetResponse.g.cs b/src/libs/Simli/Generated/Simli.Models.GetRequestStatusFacesLegacyStatusGetResponse.g.cs deleted file mode 100644 index 113872d..0000000 --- a/src/libs/Simli/Generated/Simli.Models.GetRequestStatusFacesLegacyStatusGetResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Simli -{ - /// - /// - /// - public sealed partial class GetRequestStatusFacesLegacyStatusGetResponse - { - - /// - /// 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/Simli/Generated/Simli.Models.GoogleModels.g.cs b/src/libs/Simli/Generated/Simli.Models.GoogleModels.g.cs index 171973d..f92d896 100644 --- a/src/libs/Simli/Generated/Simli.Models.GoogleModels.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.GoogleModels.g.cs @@ -4,7 +4,7 @@ namespace Simli { /// - /// Gemini 2.5 and older are retired: they're still accepted, and run on gemini-3.8-flash. + /// gemini-3.8-live is speech to speech over Google's Live API. Gemini 2.5 and older are retired: they're still accepted, and run on gemini-3.8-flash. /// public enum GoogleModels { @@ -12,6 +12,10 @@ public enum GoogleModels /// they're still accepted, and run on gemini-3.8-flash. ///
Gemini38Flash, + /// + /// they're still accepted, and run on gemini-3.8-flash. + /// + Gemini38Live, } /// @@ -27,6 +31,7 @@ public static string ToValueString(this GoogleModels value) return value switch { GoogleModels.Gemini38Flash => "gemini-3.8-flash", + GoogleModels.Gemini38Live => "gemini-3.8-live", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -38,6 +43,7 @@ public static string ToValueString(this GoogleModels value) return value switch { "gemini-3.8-flash" => GoogleModels.Gemini38Flash, + "gemini-3.8-live" => GoogleModels.Gemini38Live, _ => null, }; } diff --git a/src/libs/Simli/Generated/Simli.Models.TrinityVersion.g.cs b/src/libs/Simli/Generated/Simli.Models.TrinityVersion.g.cs index afdf35d..9920c1a 100644 --- a/src/libs/Simli/Generated/Simli.Models.TrinityVersion.g.cs +++ b/src/libs/Simli/Generated/Simli.Models.TrinityVersion.g.cs @@ -4,16 +4,16 @@ namespace Simli { /// - /// The avatar generation: GSA_1.0 makes a Trinity-1 face, GSA_2.0 a Trinity-2 face. + /// The avatar generation: GSA_2.0 makes a Trinity-2 face, GSA_1.0 a Trinity-1 face (accounts created before October 26, 2026 only). /// public enum TrinityVersion { /// - /// GSA_1.0 makes a Trinity-1 face, GSA_2.0 a Trinity-2 face. + /// GSA_2.0 makes a Trinity-2 face, GSA_1.0 a Trinity-1 face (accounts created before October 26, 2026 only). /// Gsa10, /// - /// GSA_1.0 makes a Trinity-1 face, GSA_2.0 a Trinity-2 face. + /// GSA_2.0 makes a Trinity-2 face, GSA_1.0 a Trinity-1 face (accounts created before October 26, 2026 only). /// Gsa20, } diff --git a/src/libs/Simli/Generated/Simli.SimliClient.AudioToVideoInterfaceStaticAudioPost.g.cs b/src/libs/Simli/Generated/Simli.SimliClient.AudioToVideoInterfaceStaticAudioPost.g.cs index 82f705f..b2cc4ab 100644 --- a/src/libs/Simli/Generated/Simli.SimliClient.AudioToVideoInterfaceStaticAudioPost.g.cs +++ b/src/libs/Simli/Generated/Simli.SimliClient.AudioToVideoInterfaceStaticAudioPost.g.cs @@ -486,10 +486,6 @@ partial void ProcessAudioToVideoInterfaceStaticAudioPostResponseContent( /// /// Default Value: 0 /// - /// - /// Turns off the face restoration pass on legacy faces.
- /// Default Value: false - /// /// /// Width of the video in pixels, Trinity-2 faces only (the others keep their own frame size). At least 512, and with streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas larger than the avatar's frame is padded with its background; a smaller one crops a window out of it.
/// Default Value: 768 @@ -525,7 +521,6 @@ partial void ProcessAudioToVideoInterfaceStaticAudioPostResponseContent( int? audioSampleRate = default, int? audioChannelCount = default, int? videoStartingFrame = default, - bool? disableSuperRes = default, int? streamingWidth = default, int? streamingHeight = default, double? avatarPositionX = default, @@ -544,7 +539,6 @@ partial void ProcessAudioToVideoInterfaceStaticAudioPostResponseContent( AudioSampleRate = audioSampleRate, AudioChannelCount = audioChannelCount, VideoStartingFrame = videoStartingFrame, - DisableSuperRes = disableSuperRes, StreamingWidth = streamingWidth, StreamingHeight = streamingHeight, AvatarPositionX = avatarPositionX, diff --git a/src/libs/Simli/Generated/Simli.SimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs b/src/libs/Simli/Generated/Simli.SimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs index 81d18be..53a7eed 100644 --- a/src/libs/Simli/Generated/Simli.SimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs +++ b/src/libs/Simli/Generated/Simli.SimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs @@ -52,7 +52,7 @@ partial void ProcessEnqueueGSAGenerationFacesGsCreatePostResponseContent( ///
/// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar @@ -87,7 +87,7 @@ partial void ProcessEnqueueGSAGenerationFacesGsCreatePostResponseContent( ///
/// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar @@ -586,7 +586,7 @@ request.Imagename is null /// /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar @@ -625,7 +625,7 @@ request.Imagename is null /// /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar @@ -1124,7 +1124,7 @@ request.Imagename is null /// /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: untitled_avatar diff --git a/src/libs/Simli/Generated/Simli.SimliClient.PreprocessImageFacesTrinityPreprocessPost.g.cs b/src/libs/Simli/Generated/Simli.SimliClient.PreprocessImageFacesTrinityPreprocessPost.g.cs index 50b4e62..c35dd14 100644 --- a/src/libs/Simli/Generated/Simli.SimliClient.PreprocessImageFacesTrinityPreprocessPost.g.cs +++ b/src/libs/Simli/Generated/Simli.SimliClient.PreprocessImageFacesTrinityPreprocessPost.g.cs @@ -50,7 +50,7 @@ partial void ProcessPreprocessImageFacesTrinityPreprocessPostResponseContent( /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -83,7 +83,7 @@ partial void ProcessPreprocessImageFacesTrinityPreprocessPostResponseContent( /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -495,7 +495,7 @@ request.Imagename is null /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -912,7 +912,7 @@ request.Imagename is null /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -1357,7 +1357,7 @@ request.Imagename is null /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -1398,7 +1398,7 @@ request.Imagename is null /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -1845,7 +1845,7 @@ request.Imagename is null /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -2267,7 +2267,7 @@ request.Imagename is null /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false @@ -2694,7 +2694,7 @@ request.Imagename is null /// Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the image's own background. Either way, the image needs someone facing the camera. /// /// - /// Default Value: GSA_1.0 + /// Default Value: GSA_2.0 /// /// /// Default Value: false diff --git a/src/libs/Simli/asyncapi.yaml b/src/libs/Simli/asyncapi.yaml index 79742a7..c32805b 100644 --- a/src/libs/Simli/asyncapi.yaml +++ b/src/libs/Simli/asyncapi.yaml @@ -18,9 +18,9 @@ channels: [Compose Session Token](/api-reference/compose-session-token) is sent as query parameter string - enableSFU is a query parameter boolean to opt into sending the traffic through cloudflare network for improved reliability + enableSFU is a query parameter boolean (default true) to opt into sending the traffic through cloudflare network for improved reliability - First message must be offer. Offer must be provided within 30 seconds of opening the websocket. Once offer is sent, a corresponding answer will be sent from the server which can be used as described [here](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription) + First message must be offer. Offer must be provided within 20 seconds of opening the websocket, or the session ends with `STOP REASON: failed to receive RTC Offer`. Once offer is sent, a corresponding answer will be sent from the server which can be used as described [here](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription) address: /compose/webrtc/p2p messages: offer: @@ -28,9 +28,11 @@ channels: description: "RTC Offer. Must be first message" answer: $ref: "#/components/messages/rtc_answer" - description: "RTC Offer. Must be first message" + description: "RTC Answer. Sent once your offer is in" audio_chunk: $ref: "#/components/messages/audio_chunk" + play_immediate: + $ref: "#/components/messages/play_immediate" clear_buffer: $ref: "#/components/messages/clear_buffer" final_message: @@ -45,8 +47,12 @@ channels: $ref: "#/components/messages/foreground" asset_notice: $ref: "#/components/messages/asset_notice" + video_metadata: + $ref: "#/components/messages/video_metadata" event: $ref: "#/components/messages/event" + endframe: + $ref: "#/components/messages/endframe" error: $ref: "#/components/messages/error" @@ -56,13 +62,15 @@ channels: [Compose Session Token](/api-reference/compose-session-token) is sent as query parameter string - No first message is required. However, You must successfully join the livekit room within 30 seconds + No first message is required. However, You must successfully join the livekit room within 60 seconds, or the session ends with `CLIENT NOT CONNECTED TO LIVEKIT ROOM, TERMINATED SESSION` address: /compose/webrtc/livekit messages: livekit_join_info: $ref: "#/components/messages/livekit_join_info" audio_chunk: $ref: "#/components/messages/audio_chunk" + play_immediate: + $ref: "#/components/messages/play_immediate" clear_buffer: $ref: "#/components/messages/clear_buffer" final_message: @@ -77,8 +85,12 @@ channels: $ref: "#/components/messages/foreground" asset_notice: $ref: "#/components/messages/asset_notice" + video_metadata: + $ref: "#/components/messages/video_metadata" event: $ref: "#/components/messages/event" + endframe: + $ref: "#/components/messages/endframe" error: $ref: "#/components/messages/error" @@ -101,6 +113,12 @@ operations: $ref: "#/channels/peer_to_peer" messages: - $ref: "#/channels/peer_to_peer/messages/audio_chunk" + playImmediate_peer_to_peer: + action: send + channel: + $ref: "#/channels/peer_to_peer" + messages: + - $ref: "#/channels/peer_to_peer/messages/play_immediate" clearBuffer_peer_to_peer: action: send channel: @@ -143,12 +161,24 @@ operations: $ref: "#/channels/peer_to_peer" messages: - $ref: "#/channels/peer_to_peer/messages/asset_notice" + videoMetadata_peer_to_peer: + action: receive + channel: + $ref: "#/channels/peer_to_peer" + messages: + - $ref: "#/channels/peer_to_peer/messages/video_metadata" event_peer_to_peer: action: receive channel: $ref: "#/channels/peer_to_peer" messages: - $ref: "#/channels/peer_to_peer/messages/event" + endframe_peer_to_peer: + action: receive + channel: + $ref: "#/channels/peer_to_peer" + messages: + - $ref: "#/channels/peer_to_peer/messages/endframe" error_peer_to_peer: action: receive channel: @@ -168,6 +198,12 @@ operations: $ref: "#/channels/livekit" messages: - $ref: "#/channels/livekit/messages/audio_chunk" + playImmediate_livekit: + action: send + channel: + $ref: "#/channels/livekit" + messages: + - $ref: "#/channels/livekit/messages/play_immediate" clearBuffer_livekit: action: send @@ -211,12 +247,24 @@ operations: $ref: "#/channels/livekit" messages: - $ref: "#/channels/livekit/messages/asset_notice" + videoMetadata_livekit: + action: receive + channel: + $ref: "#/channels/livekit" + messages: + - $ref: "#/channels/livekit/messages/video_metadata" event_livekit: action: receive channel: $ref: "#/channels/livekit" messages: - $ref: "#/channels/livekit/messages/event" + endframe_livekit: + action: receive + channel: + $ref: "#/channels/livekit" + messages: + - $ref: "#/channels/livekit/messages/endframe" error_livekit: action: receive channel: @@ -244,6 +292,18 @@ components: schema: type: string format: bytestring + play_immediate: + description: | + Interrupts the avatar and plays new audio at once. Sent as binary: the ASCII prefix `PLAY_IMMEDIATE` (14 bytes), then audio in the same format as audio_chunk (PCM16, 16 kHz, mono), in one message. + + Everything you sent before it that the avatar hasn't spoken yet is dropped, as with SKIP, and this audio starts playing from where the avatar is now. Audio chunks you send after it play after it. + + Use it when the user interrupts and the reply is already in hand: one message drops the old audio and starts the new one, instead of a SKIP and then audio chunks. It can carry the whole reply, or just its start (Simli's reference client sends the first 4 seconds this way) with the rest following as ordinary audio chunks. An odd trailing byte is dropped. After DONE, it only interrupts: the audio in it isn't played. + contentType: application/octet-stream + payload: + schema: + type: string + format: bytestring clear_buffer: description: "Client Signal to make the avatar stop speaking immediately and ignore all previously sent audio" payload: @@ -333,6 +393,42 @@ components: description: "The face is not Trinity-2." example: "background 6f1c2a9e-1b2c-4d3e-8f90-0123456789ab is not one of your uploaded backgrounds, ignoring" + video_metadata: + description: "Sent as JSON text once the session is set up, just before START. `fps`, `width` and `height` are integers: the frame rate and size of the video Simli streams. For a Trinity-2 face, `width` x `height` is the session token's `streaming_width` x `streaming_height`, an odd side rounded up by a pixel, at 25 fps. A Trinity-1 face streams 512 x 512 at 25 fps." + payload: + schema: + type: object + required: + - video_metadata + properties: + video_metadata: + type: object + required: + - fps + - width + - height + properties: + fps: + type: integer + description: Frames per second + width: + type: integer + description: Video width in pixels + height: + type: integer + description: Video height in pixels + example: + video_metadata: + fps: 25 + width: 768 + height: 768 + endframe: + description: "Sent as text when the session ends, just before `CLOSING REASON: ` and STOP: `ENDFRAME:` and the number of video frames the session streamed, an integer (the video's running time times its fps)." + payload: + schema: + type: string + pattern: '^ENDFRAME:[0-9]+$' + example: "ENDFRAME:1500" event: description: "Server sent signals" payload: diff --git a/src/libs/Simli/openapi.yaml b/src/libs/Simli/openapi.yaml index f3fffdc..18f66e2 100644 --- a/src/libs/Simli/openapi.yaml +++ b/src/libs/Simli/openapi.yaml @@ -217,18 +217,19 @@ paths: in: query required: false description: >- - The avatar generation to make. GSA_1.0 (the default) makes a - Trinity-1 face and takes one of your plan's face slots. GSA_2.0 - makes a Trinity-2 face and runs on your Trinity-2 generations: one - is used when the face is built (a failed build uses none), and each + The avatar generation to make. GSA_2.0 (the default) makes a + Trinity-2 face and runs on your Trinity-2 generations: one is used + when the face is built (a failed build uses none), and each generation still queued or building holds one meanwhile. One account's GSA_2.0 generations start at least 10 minutes apart; a request inside that window is accepted at once and held in the - queue, and the response's dispatch_after says until when. + queue, and the response's dispatch_after says until when. GSA_1.0 + makes a Trinity-1 face and takes one of your plan's face slots; it + is only available to accounts created before October 26, 2026. schema: allOf: - $ref: "#/components/schemas/TrinityVersion" - default: GSA_1.0 + default: GSA_2.0 - name: face_name in: query required: false @@ -272,9 +273,10 @@ paths: - warnings "403": description: >- - Out of avatars for this gsVersion: with GSA_1.0, every face slot of - your plan is taken; with GSA_2.0, you have no Trinity-2 generations - left. + Out of avatars for this gsVersion: with GSA_2.0, you have no + Trinity-2 generations left; with GSA_1.0, every face slot of your + plan is taken. Also returned for GSA_1.0 on an account created on or + after October 26, 2026, which can only make GSA_2.0 faces. "422": description: Validation Error content: @@ -298,12 +300,13 @@ paths: required: false description: >- The avatar generation the image is for. Pass the same one to POST - /faces/trinity. Checks that the account has a face slot (GSA_1.0) or - a Trinity-2 generation (GSA_2.0) left, as that call does. + /faces/trinity. Checks that the account has a Trinity-2 generation + (GSA_2.0) or a face slot (GSA_1.0) left, as that call does. GSA_1.0 + is only available to accounts created before October 26, 2026. schema: allOf: - $ref: "#/components/schemas/TrinityVersion" - default: GSA_1.0 + default: GSA_2.0 - name: retry in: query required: false @@ -356,9 +359,10 @@ paths: format: binary "403": description: >- - Out of avatars for this gsVersion: with GSA_1.0, every face slot of - your plan is taken; with GSA_2.0, you have no Trinity-2 generations - left. + Out of avatars for this gsVersion: with GSA_2.0, you have no + Trinity-2 generations left; with GSA_1.0, every face slot of your + plan is taken. Also returned for GSA_1.0 on an account created on or + after October 26, 2026, which can only make GSA_2.0 faces. /faces/trinity/generation_status: get: summary: Check Trinity Generation Status @@ -648,45 +652,6 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - /faces/legacy: - post: - summary: Generate Legacy Face - deprecated: true - operationId: generateFaceIDAPI_faces_legacy_create_post - parameters: - - name: characterVersion - in: query - required: false - schema: - allOf: - - $ref: "#/components/schemas/CharacterVersion" - default: "1.5" - - name: face_name - in: query - required: false - schema: - type: string - default: untitled_avatar - title: Face Name - requestBody: - required: true - content: - multipart/form-data: - schema: - $ref: "#/components/schemas/Body_generateFaceIDAPI_faces_legacy_create_post" - responses: - "200": - description: Successful Response - content: - application/json: - schema: {} - "422": - description: Validation Error - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - /faces/legacy/{id}: delete: deprecated: true @@ -707,31 +672,6 @@ paths: "401": description: Unauthorized - /faces/legacy/generation_status: - get: - deprecated: true - summary: Get Legacy Face Generation Status - operationId: getRequestStatus_faces_legacy_status_get - parameters: - - name: face_id - in: query - required: false - schema: - type: string - title: Face Id - responses: - "200": - description: Successful Response - content: - application/json: - schema: {} - "422": - description: Validation Error - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - /auto/agent: post: deprecated: true @@ -1061,7 +1001,7 @@ components: description: "The voice's ID at the voice provider (Inworld voices go by name, such as Sarah)" voice_model: type: string - example: sonic-english + example: inworld-tts-2 language: type: string emotion: @@ -1086,7 +1026,7 @@ components: llm_provider: type: string enum: ["openai", "google", "user"] - description: "The provider of the LLM used by the agent" + description: "The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model" simli_version: type: integer description: "Version of the Simli model used for the face" @@ -1140,7 +1080,7 @@ components: description: "The voice's ID at the voice provider (Inworld voices go by name, such as Sarah)" voice_model: type: string - example: sonic-english + example: inworld-tts-2 owner_id: type: string description: "Unique identifier for the owner of the agent" @@ -1165,7 +1105,7 @@ components: llm_provider: type: string enum: ["openai", "google", "user"] - description: "The provider of the LLM used by the agent" + description: "The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model" created_at: type: string format: date-time @@ -1198,7 +1138,7 @@ components: description: "The voice's ID at the voice provider (Inworld voices go by name, such as Sarah)" voice_model: type: string - example: sonic-english + example: inworld-tts-2 llm_model: type: string example: gpt-6-luna @@ -1218,7 +1158,7 @@ components: llm_provider: type: string enum: ["openai", "google", "user"] - description: "The provider of the LLM used by the agent" + description: "The provider of the LLM used by the agent. Unset, sessions run openai (gpt-6-luna), or google for a gemini llm_model" created_at: type: string format: date-time @@ -1256,11 +1196,6 @@ components: type: integer title: Videostartingframe default: 0 - disableSuperRes: - type: boolean - title: Disablesuperres - default: false - description: Turns off the face restoration pass on legacy faces. streaming_width: type: integer title: Streaming Width @@ -1383,11 +1318,11 @@ components: faceId: type: string title: Faceid - default: tmp9i8bbq7c + default: bf13113a-355a-4d97-8b90-4edccd1da7b2 ttsProvider: allOf: - $ref: "#/components/schemas/TTS_Provider" - default: Cartesia + default: Inworld ttsAPIKey: anyOf: - type: string @@ -1396,11 +1331,18 @@ components: ttsModel: type: string title: Ttsmodel - default: sonic-turbo-2025-03-07 + default: inworld-tts-2 + description: >- + Defaults to Inworld's model; with ttsProvider Cartesia, to + sonic-turbo-2025-03-07. voiceId: type: string title: Voiceid - default: a167e0f3-df7e-4d52-a9c3-f949145efdab + default: Ashley + description: >- + The voice's ID at the voice provider (Inworld voices go by name). + Defaults to Inworld's Ashley; with ttsProvider Cartesia, to + a167e0f3-df7e-4d52-a9c3-f949145efdab. systemPrompt: anyOf: - type: string @@ -1455,11 +1397,6 @@ components: allOf: - $ref: "#/components/schemas/SimliModels" default: fasttalk - disableSuperRes: - type: boolean - title: Disablesuperres - default: false - description: Turns off the face restoration pass on legacy faces. streaming_width: type: integer title: Streaming Width @@ -1551,10 +1488,12 @@ components: Google_Models: type: string description: >- - Gemini 2.5 and older are retired: they're still accepted, and run on + gemini-3.8-live is speech to speech over Google's Live API. Gemini 2.5 + and older are retired: they're still accepted, and run on gemini-3.8-flash. enum: - gemini-3.8-flash + - gemini-3.8-live title: Google_Models HTTPValidationError: properties: @@ -1961,21 +1900,6 @@ components: description: Error code required: - error - Body_generateFaceIDAPI_faces_legacy_create_post: - properties: - image: - type: string - format: binary - title: Image - type: object - required: - - image - title: Body_generateFaceIDAPI_faces_legacy_create_post - CharacterVersion: - type: string - enum: - - "1.5" - title: CharacterVersion Body_enqueueGSAGeneration_faces_gs_create_post: properties: image: @@ -2153,8 +2077,8 @@ components: TrinityVersion: type: string description: >- - The avatar generation: GSA_1.0 makes a Trinity-1 face, GSA_2.0 a - Trinity-2 face. + The avatar generation: GSA_2.0 makes a Trinity-2 face, GSA_1.0 a + Trinity-1 face (accounts created before October 26, 2026 only). enum: - GSA_1.0 - GSA_2.0