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
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ partial void ProcessEnterpriseLoginApiV1AuthEnterpriseLoginGetResponseContent(
PrepareEnterpriseLoginApiV1AuthEnterpriseLoginGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
email: email,
email: email!,
firstName: firstName,
lastName: lastName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,34 @@ partial void ProcessPatchMeApiV1AuthProfileUpdatePatchResponseContent(
{

var __contentProfilePicture = new global::System.Net.Http.ByteArrayContent(request.ProfilePicture ?? global::System.Array.Empty<byte>());
__contentProfilePicture.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.ProfilePicturename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.ProfilePicturename) ?? 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: __contentProfilePicture,
name: "\"profile_picture\"",
Expand All @@ -134,7 +162,7 @@ partial void ProcessPatchMeApiV1AuthProfileUpdatePatchResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Name}"),
content: new global::System.Net.Http.StringContent(request.Name ?? string.Empty),
name: "\"name\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ partial void ProcessUsersDeleteUserApiV1AuthUsersIdDeleteResponse(
PrepareUsersDeleteUserApiV1AuthUsersIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

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

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

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ partial void ProcessGetUsedCreditsApiV1CreditAddedIdUsedGetResponseContent(
PrepareGetUsedCreditsApiV1CreditAddedIdUsedGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
page: page,
pageSize: pageSize);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
PrepareAddDownloadApiV3DownloadsAddPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
device: device,
format: format);
device: device!,
format: format!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessUploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTempo
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Files}"),
content: new global::System.Net.Http.StringContent(request.Files.ToString() ?? string.Empty),
name: "\"files\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessUploadFilesForUiApiV1PptFilesUploadUiPostResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Files}"),
content: new global::System.Net.Http.StringContent(request.Files.ToString() ?? string.Empty),
name: "\"files\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessUploadFilesV1ApiV1PptFilesUploadPostResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Files}"),
content: new global::System.Net.Http.StringContent(request.Files.ToString() ?? string.Empty),
name: "\"files\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,34 @@ partial void ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponseContent(
}
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
var __contentPptxFile = new global::System.Net.Http.ByteArrayContent(request.PptxFile ?? global::System.Array.Empty<byte>());
__contentPptxFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.PptxFilename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.PptxFilename) ?? 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: __contentPptxFile,
name: "\"pptx_file\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ partial void ProcessDeleteFontApiV1PptFontsFontIdDeleteResponse(
PrepareDeleteFontApiV1PptFontsFontIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
fontId: fontId);
fontId: fontId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,34 @@ partial void ProcessUploadFontApiV1PptFontsUploadPostResponseContent(
}
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>());
__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\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,34 @@ partial void ProcessInitHtmlCreateApiV1PptHtmlCreateInitPostResponseContent(
{

var __contentSketchImage = new global::System.Net.Http.ByteArrayContent(request.SketchImage ?? global::System.Array.Empty<byte>());
__contentSketchImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.SketchImagename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.SketchImagename) ?? 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: __contentSketchImage,
name: "\"sketch_image\"",
Expand All @@ -134,24 +162,24 @@ partial void ProcessInitHtmlCreateApiV1PptHtmlCreateInitPostResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.AdditionalImages}"),
content: new global::System.Net.Http.StringContent(request.AdditionalImages.ToString() ?? string.Empty),
name: "\"additional_images\"");
}
if (request.Html != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Html}"),
content: new global::System.Net.Http.StringContent(request.Html ?? string.Empty),
name: "\"html\"");
}
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty),
name: "\"prompt\"");
if (request.TemplateId != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.TemplateId}"),
content: new global::System.Net.Http.StringContent(request.TemplateId ?? string.Empty),
name: "\"template_id\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
PrepareStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
sessionId: sessionId);
sessionId: sessionId!);

return __httpRequest;
}
Expand Down
Loading