diff --git a/src/libs/DId/Generated/DId.AgentsClient.Delete.g.cs b/src/libs/DId/Generated/DId.AgentsClient.Delete.g.cs index 9e623874..aa5094cc 100644 --- a/src/libs/DId/Generated/DId.AgentsClient.Delete.g.cs +++ b/src/libs/DId/Generated/DId.AgentsClient.Delete.g.cs @@ -125,7 +125,7 @@ partial void ProcessDeleteResponseContent( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.AgentsClient.DeleteChatsData.g.cs b/src/libs/DId/Generated/DId.AgentsClient.DeleteChatsData.g.cs index 63661d89..c6ca4208 100644 --- a/src/libs/DId/Generated/DId.AgentsClient.DeleteChatsData.g.cs +++ b/src/libs/DId/Generated/DId.AgentsClient.DeleteChatsData.g.cs @@ -120,7 +120,7 @@ partial void ProcessDeleteChatsDataResponse( PrepareDeleteChatsDataRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId); + agentId: agentId!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.AgentsClient.Get.g.cs b/src/libs/DId/Generated/DId.AgentsClient.Get.g.cs index afde91a8..f9580679 100644 --- a/src/libs/DId/Generated/DId.AgentsClient.Get.g.cs +++ b/src/libs/DId/Generated/DId.AgentsClient.Get.g.cs @@ -125,7 +125,7 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.AgentsClient.Update.g.cs b/src/libs/DId/Generated/DId.AgentsClient.Update.g.cs index ff441fd2..e30df021 100644 --- a/src/libs/DId/Generated/DId.AgentsClient.Update.g.cs +++ b/src/libs/DId/Generated/DId.AgentsClient.Update.g.cs @@ -150,7 +150,7 @@ partial void ProcessUpdateResponseContent( PrepareUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id, + id: id!, xApiKeyExternal: xApiKeyExternal, request: request); diff --git a/src/libs/DId/Generated/DId.AgentsStreamsClient.AddIceCandidate.g.cs b/src/libs/DId/Generated/DId.AgentsStreamsClient.AddIceCandidate.g.cs index 8bb4bcba..24a6ee9a 100644 --- a/src/libs/DId/Generated/DId.AgentsStreamsClient.AddIceCandidate.g.cs +++ b/src/libs/DId/Generated/DId.AgentsStreamsClient.AddIceCandidate.g.cs @@ -142,8 +142,8 @@ partial void ProcessAddIceCandidateResponseContent( PrepareAddIceCandidateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - streamId: streamId, + agentId: agentId!, + streamId: streamId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.AgentsStreamsClient.Chat.g.cs b/src/libs/DId/Generated/DId.AgentsStreamsClient.Chat.g.cs index 7add8f88..0879dfa7 100644 --- a/src/libs/DId/Generated/DId.AgentsStreamsClient.Chat.g.cs +++ b/src/libs/DId/Generated/DId.AgentsStreamsClient.Chat.g.cs @@ -146,8 +146,8 @@ partial void ProcessChatResponseContent( PrepareChatRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - chatId: chatId, + agentId: agentId!, + chatId: chatId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateChat.g.cs b/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateChat.g.cs index 49a06ebf..bfa19afb 100644 --- a/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateChat.g.cs +++ b/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateChat.g.cs @@ -139,7 +139,7 @@ partial void ProcessCreateChatResponseContent( PrepareCreateChatRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, + agentId: agentId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateStream.g.cs b/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateStream.g.cs index 1073b746..46e42f4c 100644 --- a/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateStream.g.cs +++ b/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateStream.g.cs @@ -139,7 +139,7 @@ partial void ProcessCreateStreamResponseContent( PrepareCreateStreamRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, + agentId: agentId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateVideoStream.g.cs b/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateVideoStream.g.cs index f2b9756b..cb66e246 100644 --- a/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateVideoStream.g.cs +++ b/src/libs/DId/Generated/DId.AgentsStreamsClient.CreateVideoStream.g.cs @@ -143,8 +143,8 @@ partial void ProcessCreateVideoStreamResponseContent( PrepareCreateVideoStreamRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - streamId: streamId, + agentId: agentId!, + streamId: streamId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.AgentsStreamsClient.DeleteStream.g.cs b/src/libs/DId/Generated/DId.AgentsStreamsClient.DeleteStream.g.cs index d34cfd38..8d2576bf 100644 --- a/src/libs/DId/Generated/DId.AgentsStreamsClient.DeleteStream.g.cs +++ b/src/libs/DId/Generated/DId.AgentsStreamsClient.DeleteStream.g.cs @@ -143,8 +143,8 @@ partial void ProcessDeleteStreamResponseContent( PrepareDeleteStreamRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - streamId: streamId, + agentId: agentId!, + streamId: streamId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.AgentsStreamsClient.StartConnection.g.cs b/src/libs/DId/Generated/DId.AgentsStreamsClient.StartConnection.g.cs index f3a37688..20ac7947 100644 --- a/src/libs/DId/Generated/DId.AgentsStreamsClient.StartConnection.g.cs +++ b/src/libs/DId/Generated/DId.AgentsStreamsClient.StartConnection.g.cs @@ -144,8 +144,8 @@ partial void ProcessStartConnectionResponseContent( PrepareStartConnectionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - streamId: streamId, + agentId: agentId!, + streamId: streamId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.AudiosClient.DeleteAudio.g.cs b/src/libs/DId/Generated/DId.AudiosClient.DeleteAudio.g.cs index 6ff2c86b..febe036e 100644 --- a/src/libs/DId/Generated/DId.AudiosClient.DeleteAudio.g.cs +++ b/src/libs/DId/Generated/DId.AudiosClient.DeleteAudio.g.cs @@ -119,7 +119,7 @@ partial void ProcessDeleteAudioResponse( PrepareDeleteAudioRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.AudiosClient.UploadAnAudio.g.cs b/src/libs/DId/Generated/DId.AudiosClient.UploadAnAudio.g.cs index 0d1f38af..701d9366 100644 --- a/src/libs/DId/Generated/DId.AudiosClient.UploadAnAudio.g.cs +++ b/src/libs/DId/Generated/DId.AudiosClient.UploadAnAudio.g.cs @@ -127,6 +127,34 @@ partial void ProcessUploadAnAudioResponseContent( { var __contentAudio = new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()); + __contentAudio.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( + request.Audioname is null + ? "application/octet-stream" + : (global::System.IO.Path.GetExtension(request.Audioname) ?? 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: __contentAudio, name: "\"audio\"", @@ -140,21 +168,21 @@ partial void ProcessUploadAnAudioResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.ResultUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.ResultUrl}"), + content: new global::System.Net.Http.StringContent(request.ResultUrl ?? string.Empty), name: "\"result_url\""); } if (request.Persist != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Persist}"), + content: new global::System.Net.Http.StringContent(request.Persist ?? string.Empty), name: "\"persist\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/DId/Generated/DId.ChatsExportClient.DeleteChatLogs.g.cs b/src/libs/DId/Generated/DId.ChatsExportClient.DeleteChatLogs.g.cs index eb03d162..e18a4860 100644 --- a/src/libs/DId/Generated/DId.ChatsExportClient.DeleteChatLogs.g.cs +++ b/src/libs/DId/Generated/DId.ChatsExportClient.DeleteChatLogs.g.cs @@ -124,7 +124,7 @@ partial void ProcessDeleteChatLogsResponseContent( PrepareDeleteChatLogsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ChatsExportClient.GetChatLogs.g.cs b/src/libs/DId/Generated/DId.ChatsExportClient.GetChatLogs.g.cs index 439bded5..f08856f7 100644 --- a/src/libs/DId/Generated/DId.ChatsExportClient.GetChatLogs.g.cs +++ b/src/libs/DId/Generated/DId.ChatsExportClient.GetChatLogs.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetChatLogsResponseContent( PrepareGetChatLogsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ClientKeysClient.CreateResourceClientKey.g.cs b/src/libs/DId/Generated/DId.ClientKeysClient.CreateResourceClientKey.g.cs index 9d8bed8f..6badad0a 100644 --- a/src/libs/DId/Generated/DId.ClientKeysClient.CreateResourceClientKey.g.cs +++ b/src/libs/DId/Generated/DId.ClientKeysClient.CreateResourceClientKey.g.cs @@ -139,7 +139,7 @@ partial void ProcessCreateResourceClientKeyResponseContent( PrepareCreateResourceClientKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, + agentId: agentId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.ClientKeysClient.DeleteResourceClientKey.g.cs b/src/libs/DId/Generated/DId.ClientKeysClient.DeleteResourceClientKey.g.cs index cb994a95..dd3c5359 100644 --- a/src/libs/DId/Generated/DId.ClientKeysClient.DeleteResourceClientKey.g.cs +++ b/src/libs/DId/Generated/DId.ClientKeysClient.DeleteResourceClientKey.g.cs @@ -125,8 +125,8 @@ partial void ProcessDeleteResourceClientKeyResponse( PrepareDeleteResourceClientKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - clientKey: clientKey); + agentId: agentId!, + clientKey: clientKey!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ClientKeysClient.ListResourceClientKeys.g.cs b/src/libs/DId/Generated/DId.ClientKeysClient.ListResourceClientKeys.g.cs index 4859ad89..007ab148 100644 --- a/src/libs/DId/Generated/DId.ClientKeysClient.ListResourceClientKeys.g.cs +++ b/src/libs/DId/Generated/DId.ClientKeysClient.ListResourceClientKeys.g.cs @@ -125,7 +125,7 @@ partial void ProcessListResourceClientKeysResponseContent( PrepareListResourceClientKeysRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId); + agentId: agentId!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ClientKeysClient.UpdateResourceClientKey.g.cs b/src/libs/DId/Generated/DId.ClientKeysClient.UpdateResourceClientKey.g.cs index 20fff7f8..f89de55e 100644 --- a/src/libs/DId/Generated/DId.ClientKeysClient.UpdateResourceClientKey.g.cs +++ b/src/libs/DId/Generated/DId.ClientKeysClient.UpdateResourceClientKey.g.cs @@ -139,8 +139,8 @@ partial void ProcessUpdateResourceClientKeyResponse( PrepareUpdateResourceClientKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - clientKey: clientKey, + agentId: agentId!, + clientKey: clientKey!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.DeleteClip.g.cs b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.DeleteClip.g.cs index 1b608a97..f03bde57 100644 --- a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.DeleteClip.g.cs +++ b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.DeleteClip.g.cs @@ -124,7 +124,7 @@ partial void ProcessDeleteClipResponseContent( PrepareDeleteClipRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.DeletePresenter.g.cs b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.DeletePresenter.g.cs index c9f3d49e..d831b067 100644 --- a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.DeletePresenter.g.cs +++ b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.DeletePresenter.g.cs @@ -119,7 +119,7 @@ partial void ProcessDeletePresenterResponse( PrepareDeletePresenterRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetClip.g.cs b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetClip.g.cs index 4bb35059..0bf4a03b 100644 --- a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetClip.g.cs +++ b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetClip.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetClipResponseContent( PrepareGetClipRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetPresenterById.g.cs b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetPresenterById.g.cs index 6c17e76f..332d4fee 100644 --- a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetPresenterById.g.cs +++ b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetPresenterById.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetPresenterByIdResponseContent( PrepareGetPresenterByIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetPresenterDriversById.g.cs b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetPresenterDriversById.g.cs index 8fa9179b..6964e722 100644 --- a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetPresenterDriversById.g.cs +++ b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.GetPresenterDriversById.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetPresenterDriversByIdResponseContent( PrepareGetPresenterDriversByIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.UpdatePresenterAttributes.g.cs b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.UpdatePresenterAttributes.g.cs index 3e1f9548..1fc3657c 100644 --- a/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.UpdatePresenterAttributes.g.cs +++ b/src/libs/DId/Generated/DId.ClipsPremiumAvatarsClient.UpdatePresenterAttributes.g.cs @@ -131,7 +131,7 @@ partial void ProcessUpdatePresenterAttributesResponse( PrepareUpdatePresenterAttributesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id, + id: id!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.ConsentsClient.Delete1.g.cs b/src/libs/DId/Generated/DId.ConsentsClient.Delete1.g.cs index 76531fb9..b3324a10 100644 --- a/src/libs/DId/Generated/DId.ConsentsClient.Delete1.g.cs +++ b/src/libs/DId/Generated/DId.ConsentsClient.Delete1.g.cs @@ -119,7 +119,7 @@ partial void ProcessDelete1Response( PrepareDelete1Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ConsentsClient.Get.g.cs b/src/libs/DId/Generated/DId.ConsentsClient.Get.g.cs index f1a7e310..468c386d 100644 --- a/src/libs/DId/Generated/DId.ConsentsClient.Get.g.cs +++ b/src/libs/DId/Generated/DId.ConsentsClient.Get.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ConsentsClient.UploadVideo.g.cs b/src/libs/DId/Generated/DId.ConsentsClient.UploadVideo.g.cs index e32187c5..1e860d82 100644 --- a/src/libs/DId/Generated/DId.ConsentsClient.UploadVideo.g.cs +++ b/src/libs/DId/Generated/DId.ConsentsClient.UploadVideo.g.cs @@ -138,7 +138,7 @@ partial void ProcessUploadVideoResponseContent( PrepareUploadVideoRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id, + id: id!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.ImagesClient.DeleteImage.g.cs b/src/libs/DId/Generated/DId.ImagesClient.DeleteImage.g.cs index 91c88589..c726173f 100644 --- a/src/libs/DId/Generated/DId.ImagesClient.DeleteImage.g.cs +++ b/src/libs/DId/Generated/DId.ImagesClient.DeleteImage.g.cs @@ -119,7 +119,7 @@ partial void ProcessDeleteImageResponse( PrepareDeleteImageRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ImagesClient.UploadAnImage.g.cs b/src/libs/DId/Generated/DId.ImagesClient.UploadAnImage.g.cs index 8cb43a52..e38e387d 100644 --- a/src/libs/DId/Generated/DId.ImagesClient.UploadAnImage.g.cs +++ b/src/libs/DId/Generated/DId.ImagesClient.UploadAnImage.g.cs @@ -126,6 +126,34 @@ partial void ProcessUploadAnImageResponseContent( { 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\"", @@ -139,28 +167,28 @@ partial void ProcessUploadAnImageResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.DetectFaces}"), + content: new global::System.Net.Http.StringContent(request.DetectFaces ?? string.Empty), name: "\"detect_faces\""); } if (request.Metadata != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Metadata}"), + content: new global::System.Net.Http.StringContent(request.Metadata ?? string.Empty), name: "\"metadata\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.ResultUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.ResultUrl}"), + content: new global::System.Net.Http.StringContent(request.ResultUrl ?? string.Empty), name: "\"result_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/DId/Generated/DId.KnowledgeClient.CreateDocument.g.cs b/src/libs/DId/Generated/DId.KnowledgeClient.CreateDocument.g.cs index 7ca18bce..2508ed28 100644 --- a/src/libs/DId/Generated/DId.KnowledgeClient.CreateDocument.g.cs +++ b/src/libs/DId/Generated/DId.KnowledgeClient.CreateDocument.g.cs @@ -139,7 +139,7 @@ partial void ProcessCreateDocumentResponseContent( PrepareCreateDocumentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - knowledgeId: knowledgeId, + knowledgeId: knowledgeId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.KnowledgeClient.Delete1.g.cs b/src/libs/DId/Generated/DId.KnowledgeClient.Delete1.g.cs index 55f3c252..c76134ac 100644 --- a/src/libs/DId/Generated/DId.KnowledgeClient.Delete1.g.cs +++ b/src/libs/DId/Generated/DId.KnowledgeClient.Delete1.g.cs @@ -125,7 +125,7 @@ partial void ProcessDelete1ResponseContent( PrepareDelete1Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - knowledgeId: knowledgeId); + knowledgeId: knowledgeId!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.KnowledgeClient.DeleteDocument.g.cs b/src/libs/DId/Generated/DId.KnowledgeClient.DeleteDocument.g.cs index d1d12506..c34d64c0 100644 --- a/src/libs/DId/Generated/DId.KnowledgeClient.DeleteDocument.g.cs +++ b/src/libs/DId/Generated/DId.KnowledgeClient.DeleteDocument.g.cs @@ -130,8 +130,8 @@ partial void ProcessDeleteDocumentResponseContent( PrepareDeleteDocumentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - knowledgeId: knowledgeId, - documentId: documentId); + knowledgeId: knowledgeId!, + documentId: documentId!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.KnowledgeClient.GetById.g.cs b/src/libs/DId/Generated/DId.KnowledgeClient.GetById.g.cs index c7420177..5b5f776a 100644 --- a/src/libs/DId/Generated/DId.KnowledgeClient.GetById.g.cs +++ b/src/libs/DId/Generated/DId.KnowledgeClient.GetById.g.cs @@ -125,7 +125,7 @@ partial void ProcessGetByIdResponseContent( PrepareGetByIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - knowledgeId: knowledgeId); + knowledgeId: knowledgeId!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.KnowledgeClient.GetDocument.g.cs b/src/libs/DId/Generated/DId.KnowledgeClient.GetDocument.g.cs index 0109d567..9632aa52 100644 --- a/src/libs/DId/Generated/DId.KnowledgeClient.GetDocument.g.cs +++ b/src/libs/DId/Generated/DId.KnowledgeClient.GetDocument.g.cs @@ -130,8 +130,8 @@ partial void ProcessGetDocumentResponseContent( PrepareGetDocumentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - knowledgeId: knowledgeId, - documentId: documentId); + knowledgeId: knowledgeId!, + documentId: documentId!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.KnowledgeClient.GetDocuments.g.cs b/src/libs/DId/Generated/DId.KnowledgeClient.GetDocuments.g.cs index 53c7001d..07ea7908 100644 --- a/src/libs/DId/Generated/DId.KnowledgeClient.GetDocuments.g.cs +++ b/src/libs/DId/Generated/DId.KnowledgeClient.GetDocuments.g.cs @@ -125,7 +125,7 @@ partial void ProcessGetDocumentsResponseContent( PrepareGetDocumentsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - knowledgeId: knowledgeId); + knowledgeId: knowledgeId!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.KnowledgeClient.Update1.g.cs b/src/libs/DId/Generated/DId.KnowledgeClient.Update1.g.cs index 82c19532..6d23b29a 100644 --- a/src/libs/DId/Generated/DId.KnowledgeClient.Update1.g.cs +++ b/src/libs/DId/Generated/DId.KnowledgeClient.Update1.g.cs @@ -141,7 +141,7 @@ partial void ProcessUpdate1ResponseContent( PrepareUpdate1Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - knowledgeId: knowledgeId, + knowledgeId: knowledgeId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.RatingsClient.CreateRating.g.cs b/src/libs/DId/Generated/DId.RatingsClient.CreateRating.g.cs index 7152dfe8..e9ac6723 100644 --- a/src/libs/DId/Generated/DId.RatingsClient.CreateRating.g.cs +++ b/src/libs/DId/Generated/DId.RatingsClient.CreateRating.g.cs @@ -144,8 +144,8 @@ partial void ProcessCreateRatingResponseContent( PrepareCreateRatingRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - chatId: chatId, + agentId: agentId!, + chatId: chatId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.RatingsClient.DeleteRating.g.cs b/src/libs/DId/Generated/DId.RatingsClient.DeleteRating.g.cs index 3eb63340..daed936d 100644 --- a/src/libs/DId/Generated/DId.RatingsClient.DeleteRating.g.cs +++ b/src/libs/DId/Generated/DId.RatingsClient.DeleteRating.g.cs @@ -135,9 +135,9 @@ partial void ProcessDeleteRatingResponseContent( PrepareDeleteRatingRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - chatId: chatId, - ratingId: ratingId); + agentId: agentId!, + chatId: chatId!, + ratingId: ratingId!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.RatingsClient.UpdateRating.g.cs b/src/libs/DId/Generated/DId.RatingsClient.UpdateRating.g.cs index 0abcb206..301219b8 100644 --- a/src/libs/DId/Generated/DId.RatingsClient.UpdateRating.g.cs +++ b/src/libs/DId/Generated/DId.RatingsClient.UpdateRating.g.cs @@ -149,9 +149,9 @@ partial void ProcessUpdateRatingResponseContent( PrepareUpdateRatingRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId, - chatId: chatId, - ratingId: ratingId, + agentId: agentId!, + chatId: chatId!, + ratingId: ratingId!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Delete1.g.cs b/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Delete1.g.cs index 2df1dca5..0cf370f5 100644 --- a/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Delete1.g.cs +++ b/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Delete1.g.cs @@ -119,7 +119,7 @@ partial void ProcessDelete1Response( PrepareDelete1Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Delete2.g.cs b/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Delete2.g.cs index 0d356dba..0bae772e 100644 --- a/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Delete2.g.cs +++ b/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Delete2.g.cs @@ -119,7 +119,7 @@ partial void ProcessDelete2Response( PrepareDelete2Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Get.g.cs b/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Get.g.cs index 0e74b83c..f5954b77 100644 --- a/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Get.g.cs +++ b/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Get.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Get1.g.cs b/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Get1.g.cs index 21432c5d..59976b73 100644 --- a/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Get1.g.cs +++ b/src/libs/DId/Generated/DId.ScenesExpressAvatarsClient.Get1.g.cs @@ -124,7 +124,7 @@ partial void ProcessGet1ResponseContent( PrepareGet1Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.SecretsClient.DeleteSecret.g.cs b/src/libs/DId/Generated/DId.SecretsClient.DeleteSecret.g.cs index 66307bf5..6eea769d 100644 --- a/src/libs/DId/Generated/DId.SecretsClient.DeleteSecret.g.cs +++ b/src/libs/DId/Generated/DId.SecretsClient.DeleteSecret.g.cs @@ -126,7 +126,7 @@ partial void ProcessDeleteSecretResponseContent( PrepareDeleteSecretRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.SecretsClient.GetSecretById.g.cs b/src/libs/DId/Generated/DId.SecretsClient.GetSecretById.g.cs index 5eefa7a8..f2938d2c 100644 --- a/src/libs/DId/Generated/DId.SecretsClient.GetSecretById.g.cs +++ b/src/libs/DId/Generated/DId.SecretsClient.GetSecretById.g.cs @@ -126,7 +126,7 @@ partial void ProcessGetSecretByIdResponseContent( PrepareGetSecretByIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.SecretsClient.UpdateSecret.g.cs b/src/libs/DId/Generated/DId.SecretsClient.UpdateSecret.g.cs index 6f4dd170..372ce4e2 100644 --- a/src/libs/DId/Generated/DId.SecretsClient.UpdateSecret.g.cs +++ b/src/libs/DId/Generated/DId.SecretsClient.UpdateSecret.g.cs @@ -137,7 +137,7 @@ partial void ProcessUpdateSecretResponseContent( PrepareUpdateSecretRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id, + id: id!, request: request); return __httpRequest; diff --git a/src/libs/DId/Generated/DId.SettingsClient.UpdateLogo.g.cs b/src/libs/DId/Generated/DId.SettingsClient.UpdateLogo.g.cs index 6095f761..2b36eea8 100644 --- a/src/libs/DId/Generated/DId.SettingsClient.UpdateLogo.g.cs +++ b/src/libs/DId/Generated/DId.SettingsClient.UpdateLogo.g.cs @@ -113,6 +113,34 @@ partial void ProcessUpdateLogoResponse( } var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); var __contentLogo = new global::System.Net.Http.ByteArrayContent(request.Logo ?? global::System.Array.Empty()); + __contentLogo.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( + request.Logoname is null + ? "application/octet-stream" + : (global::System.IO.Path.GetExtension(request.Logoname) ?? 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: __contentLogo, name: "\"logo\"", @@ -122,10 +150,10 @@ partial void ProcessUpdateLogoResponse( __contentLogo.Headers.ContentDisposition.FileNameStar = null; } __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Top}"), + content: new global::System.Net.Http.StringContent(request.Top ?? string.Empty), name: "\"top\""); __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Left}"), + content: new global::System.Net.Http.StringContent(request.Left ?? string.Empty), name: "\"left\""); __httpRequest.Content = __httpRequestContent; global::DId.AutoSDKRequestOptionsSupport.ApplyHeaders( diff --git a/src/libs/DId/Generated/DId.TalksStandardAvatarsClient.DeleteTalk.g.cs b/src/libs/DId/Generated/DId.TalksStandardAvatarsClient.DeleteTalk.g.cs index fde6ea12..32b419f2 100644 --- a/src/libs/DId/Generated/DId.TalksStandardAvatarsClient.DeleteTalk.g.cs +++ b/src/libs/DId/Generated/DId.TalksStandardAvatarsClient.DeleteTalk.g.cs @@ -124,7 +124,7 @@ partial void ProcessDeleteTalkResponseContent( PrepareDeleteTalkRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.TalksStandardAvatarsClient.GetTalk.g.cs b/src/libs/DId/Generated/DId.TalksStandardAvatarsClient.GetTalk.g.cs index c31b099f..16571c9d 100644 --- a/src/libs/DId/Generated/DId.TalksStandardAvatarsClient.GetTalk.g.cs +++ b/src/libs/DId/Generated/DId.TalksStandardAvatarsClient.GetTalk.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetTalkResponseContent( PrepareGetTalkRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.V4AvatarsClient.Delete3.g.cs b/src/libs/DId/Generated/DId.V4AvatarsClient.Delete3.g.cs index a2c4c661..994cdfec 100644 --- a/src/libs/DId/Generated/DId.V4AvatarsClient.Delete3.g.cs +++ b/src/libs/DId/Generated/DId.V4AvatarsClient.Delete3.g.cs @@ -119,7 +119,7 @@ partial void ProcessDelete3Response( PrepareDelete3Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.V4AvatarsClient.Get2.g.cs b/src/libs/DId/Generated/DId.V4AvatarsClient.Get2.g.cs index 677a2c83..6cad4bcf 100644 --- a/src/libs/DId/Generated/DId.V4AvatarsClient.Get2.g.cs +++ b/src/libs/DId/Generated/DId.V4AvatarsClient.Get2.g.cs @@ -124,7 +124,7 @@ partial void ProcessGet2ResponseContent( PrepareGet2Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.V4AvatarsClient.GetAvatarById.g.cs b/src/libs/DId/Generated/DId.V4AvatarsClient.GetAvatarById.g.cs index efd22ad8..4dc6bd4c 100644 --- a/src/libs/DId/Generated/DId.V4AvatarsClient.GetAvatarById.g.cs +++ b/src/libs/DId/Generated/DId.V4AvatarsClient.GetAvatarById.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetAvatarByIdResponseContent( PrepareGetAvatarByIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.VideoTranslateClient.Delete.g.cs b/src/libs/DId/Generated/DId.VideoTranslateClient.Delete.g.cs index 32d0df27..47a4f97f 100644 --- a/src/libs/DId/Generated/DId.VideoTranslateClient.Delete.g.cs +++ b/src/libs/DId/Generated/DId.VideoTranslateClient.Delete.g.cs @@ -119,7 +119,7 @@ partial void ProcessDeleteResponse( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.VideoTranslateClient.GetGroup.g.cs b/src/libs/DId/Generated/DId.VideoTranslateClient.GetGroup.g.cs index 8292971f..17fd9306 100644 --- a/src/libs/DId/Generated/DId.VideoTranslateClient.GetGroup.g.cs +++ b/src/libs/DId/Generated/DId.VideoTranslateClient.GetGroup.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetGroupResponseContent( PrepareGetGroupRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.VideoTranslateClient.GetTranslation.g.cs b/src/libs/DId/Generated/DId.VideoTranslateClient.GetTranslation.g.cs index 7c7e1b59..87181a47 100644 --- a/src/libs/DId/Generated/DId.VideoTranslateClient.GetTranslation.g.cs +++ b/src/libs/DId/Generated/DId.VideoTranslateClient.GetTranslation.g.cs @@ -124,7 +124,7 @@ partial void ProcessGetTranslationResponseContent( PrepareGetTranslationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; } diff --git a/src/libs/DId/Generated/DId.VoicesClient.CloneVoice.g.cs b/src/libs/DId/Generated/DId.VoicesClient.CloneVoice.g.cs index 767d027b..5833e82f 100644 --- a/src/libs/DId/Generated/DId.VoicesClient.CloneVoice.g.cs +++ b/src/libs/DId/Generated/DId.VoicesClient.CloneVoice.g.cs @@ -120,15 +120,43 @@ partial void ProcessCloneVoiceResponseContent( } var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Name}"), + content: new global::System.Net.Http.StringContent(request.Name ?? string.Empty), name: "\"name\""); __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Language}"), + content: new global::System.Net.Http.StringContent(request.Language ?? string.Empty), name: "\"language\""); if (request.File != default) { var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); + __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( + request.Filename is null + ? "application/octet-stream" + : (global::System.IO.Path.GetExtension(request.Filename) ?? 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: __contentFile, name: "\"file\"", @@ -142,7 +170,7 @@ partial void ProcessCloneVoiceResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/DId/Generated/DId.VoicesClient.Delete.g.cs b/src/libs/DId/Generated/DId.VoicesClient.Delete.g.cs index e15860f6..672ede34 100644 --- a/src/libs/DId/Generated/DId.VoicesClient.Delete.g.cs +++ b/src/libs/DId/Generated/DId.VoicesClient.Delete.g.cs @@ -120,7 +120,7 @@ partial void ProcessDeleteResponse( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id!); return __httpRequest; }