Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/DId/Generated/DId.AgentsClient.Delete.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessDeleteResponseContent(
PrepareDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ partial void ProcessDeleteChatsDataResponse(
PrepareDeleteChatsDataRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId);
agentId: agentId!);

return __httpRequest;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DId/Generated/DId.AgentsClient.Get.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetResponseContent(
PrepareGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DId/Generated/DId.AgentsClient.Update.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ partial void ProcessUpdateResponseContent(
PrepareUpdateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
xApiKeyExternal: xApiKeyExternal,
request: request);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ partial void ProcessAddIceCandidateResponseContent(
PrepareAddIceCandidateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
streamId: streamId,
agentId: agentId!,
streamId: streamId!,
request: request);

return __httpRequest;
Expand Down
4 changes: 2 additions & 2 deletions src/libs/DId/Generated/DId.AgentsStreamsClient.Chat.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ partial void ProcessChatResponseContent(
PrepareChatRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
chatId: chatId,
agentId: agentId!,
chatId: chatId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessCreateChatResponseContent(
PrepareCreateChatRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessCreateStreamResponseContent(
PrepareCreateStreamRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ partial void ProcessCreateVideoStreamResponseContent(
PrepareCreateVideoStreamRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
streamId: streamId,
agentId: agentId!,
streamId: streamId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ partial void ProcessDeleteStreamResponseContent(
PrepareDeleteStreamRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
streamId: streamId,
agentId: agentId!,
streamId: streamId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ partial void ProcessStartConnectionResponseContent(
PrepareStartConnectionRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
streamId: streamId,
agentId: agentId!,
streamId: streamId!,
request: request);

return __httpRequest;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DId/Generated/DId.AudiosClient.DeleteAudio.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ partial void ProcessDeleteAudioResponse(
PrepareDeleteAudioRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
34 changes: 31 additions & 3 deletions src/libs/DId/Generated/DId.AudiosClient.UploadAnAudio.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,34 @@ partial void ProcessUploadAnAudioResponseContent(
{

var __contentAudio = new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty<byte>());
__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\"",
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessDeleteChatLogsResponseContent(
PrepareDeleteChatLogsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGetChatLogsResponseContent(
PrepareGetChatLogsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessCreateResourceClientKeyResponseContent(
PrepareCreateResourceClientKeyRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ partial void ProcessDeleteResourceClientKeyResponse(
PrepareDeleteResourceClientKeyRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
clientKey: clientKey);
agentId: agentId!,
clientKey: clientKey!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessListResourceClientKeysResponseContent(
PrepareListResourceClientKeysRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ partial void ProcessUpdateResourceClientKeyResponse(
PrepareUpdateResourceClientKeyRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
clientKey: clientKey,
agentId: agentId!,
clientKey: clientKey!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessDeleteClipResponseContent(
PrepareDeleteClipRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ partial void ProcessDeletePresenterResponse(
PrepareDeletePresenterRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGetClipResponseContent(
PrepareGetClipRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGetPresenterByIdResponseContent(
PrepareGetPresenterByIdRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGetPresenterDriversByIdResponseContent(
PrepareGetPresenterDriversByIdRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ partial void ProcessUpdatePresenterAttributesResponse(
PrepareUpdatePresenterAttributesRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DId/Generated/DId.ConsentsClient.Delete1.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ partial void ProcessDelete1Response(
PrepareDelete1Request(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DId/Generated/DId.ConsentsClient.Get.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGetResponseContent(
PrepareGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DId/Generated/DId.ConsentsClient.UploadVideo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ partial void ProcessUploadVideoResponseContent(
PrepareUploadVideoRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DId/Generated/DId.ImagesClient.DeleteImage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ partial void ProcessDeleteImageResponse(
PrepareDeleteImageRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
36 changes: 32 additions & 4 deletions src/libs/DId/Generated/DId.ImagesClient.UploadAnImage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,34 @@ partial void ProcessUploadAnImageResponseContent(
{

var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty<byte>());
__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\"",
Expand All @@ -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;
Expand Down
Loading