From 97ef44686727ad7e43f6529ec996fdb62670b1e4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 29 Apr 2026 03:23:44 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...li.SimliClient.DeleteFacesTrinityById.g.cs | 2 +- ...EnqueueGSAGenerationFacesGsCreatePost.g.cs | 32 +++++++++++++++++-- ...chedVideoMp4StaticMp4MachineIPFileGet.g.cs | 4 +-- ...tCachedVideoStaticHlsMachineIPFileGet.g.cs | 4 +-- 4 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/libs/Simli/Generated/Simli.SimliClient.DeleteFacesTrinityById.g.cs b/src/libs/Simli/Generated/Simli.SimliClient.DeleteFacesTrinityById.g.cs index 53785dc..b8d6da8 100644 --- a/src/libs/Simli/Generated/Simli.SimliClient.DeleteFacesTrinityById.g.cs +++ b/src/libs/Simli/Generated/Simli.SimliClient.DeleteFacesTrinityById.g.cs @@ -120,7 +120,7 @@ partial void ProcessDeleteFacesTrinityByIdResponse( PrepareDeleteFacesTrinityByIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/Simli/Generated/Simli.SimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs b/src/libs/Simli/Generated/Simli.SimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs index 60dd0a4..8a69aff 100644 --- a/src/libs/Simli/Generated/Simli.SimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs +++ b/src/libs/Simli/Generated/Simli.SimliClient.EnqueueGSAGenerationFacesGsCreatePost.g.cs @@ -139,17 +139,45 @@ partial void ProcessEnqueueGSAGenerationFacesGsCreatePostResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{gsVersion}"), + content: new global::System.Net.Http.StringContent(gsVersion.ToString() ?? string.Empty), name: "\"gsVersion\""); } if (faceName != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{faceName}"), + content: new global::System.Net.Http.StringContent(faceName ?? string.Empty), name: "\"face_name\""); } var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()); + __contentImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( + request.Imagename is null + ? "application/octet-stream" + : (global::System.IO.Path.GetExtension(request.Imagename) ?? string.Empty).ToLowerInvariant() switch + { + ".aac" => "audio/aac", + ".flac" => "audio/flac", + ".gif" => "image/gif", + ".jpeg" => "image/jpeg", + ".jpg" => "image/jpeg", + ".json" => "application/json", + ".m4a" => "audio/mp4", + ".mp3" => "audio/mpeg", + ".mp4" => "video/mp4", + ".mpeg" => "audio/mpeg", + ".mpga" => "audio/mpeg", + ".oga" => "audio/ogg", + ".ogg" => "audio/ogg", + ".opus" => "audio/ogg", + ".pdf" => "application/pdf", + ".png" => "image/png", + ".txt" => "text/plain", + ".wav" => "audio/wav", + ".weba" => "audio/webm", + ".webm" => "video/webm", + ".webp" => "image/webp", + _ => "application/octet-stream", + }); __httpRequestContent.Add( content: __contentImage, name: "\"image\"", diff --git a/src/libs/Simli/Generated/Simli.SimliClient.GetCachedVideoMp4StaticMp4MachineIPFileGet.g.cs b/src/libs/Simli/Generated/Simli.SimliClient.GetCachedVideoMp4StaticMp4MachineIPFileGet.g.cs index 9c38123..1dc140d 100644 --- a/src/libs/Simli/Generated/Simli.SimliClient.GetCachedVideoMp4StaticMp4MachineIPFileGet.g.cs +++ b/src/libs/Simli/Generated/Simli.SimliClient.GetCachedVideoMp4StaticMp4MachineIPFileGet.g.cs @@ -129,8 +129,8 @@ partial void ProcessGetCachedVideoMp4StaticMp4MachineIPFileGetResponseContent( PrepareGetCachedVideoMp4StaticMp4MachineIPFileGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - destination: destination, - file: file); + destination: destination!, + file: file!); return __httpRequest; } diff --git a/src/libs/Simli/Generated/Simli.SimliClient.GetCachedVideoStaticHlsMachineIPFileGet.g.cs b/src/libs/Simli/Generated/Simli.SimliClient.GetCachedVideoStaticHlsMachineIPFileGet.g.cs index cc91731..c0d0669 100644 --- a/src/libs/Simli/Generated/Simli.SimliClient.GetCachedVideoStaticHlsMachineIPFileGet.g.cs +++ b/src/libs/Simli/Generated/Simli.SimliClient.GetCachedVideoStaticHlsMachineIPFileGet.g.cs @@ -130,8 +130,8 @@ partial void ProcessGetCachedVideoStaticHlsMachineIPFileGetResponseContent( PrepareGetCachedVideoStaticHlsMachineIPFileGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - destination: destination, - file: file); + destination: destination!, + file: file!); return __httpRequest; }