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 @@ -81,9 +81,37 @@ partial void ProcessAddProfileSampleProfilesProfileIdSamplesPostResponseContent(
#endif
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{profileId}"),
content: new global::System.Net.Http.StringContent(profileId ?? string.Empty),
name: "\"profile_id\"");
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 All @@ -93,7 +121,7 @@ partial void ProcessAddProfileSampleProfilesProfileIdSamplesPostResponseContent(
__contentFile.Headers.ContentDisposition.FileNameStar = null;
}
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ReferenceText}"),
content: new global::System.Net.Http.StringContent(request.ReferenceText ?? string.Empty),
name: "\"reference_text\"");
__httpRequest.Content = __httpRequestContent;
global::Voicebox.AutoSDKRequestOptionsSupport.ApplyHeaders(
Expand All @@ -107,7 +135,7 @@ partial void ProcessAddProfileSampleProfilesProfileIdSamplesPostResponseContent(
PrepareAddProfileSampleProfilesProfileIdSamplesPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
profileId: profileId,
profileId: profileId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
PrepareAddStoryItemStoriesStoryIdItemsPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storyId: storyId,
storyId: storyId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
PrepareApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
generationId: generationId,
generationId: generationId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
PrepareCancelGenerationGenerateGenerationIdCancelPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
generationId: generationId);
generationId: generationId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
PrepareComposeInCharacterProfilesProfileIdComposePostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
profileId: profileId);
profileId: profileId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,34 @@ partial void ProcessCreateCaptureEndpointCapturesPostResponseContent(
#endif
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 All @@ -88,21 +116,21 @@ partial void ProcessCreateCaptureEndpointCapturesPostResponseContent(
{

__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.Source != default)
{

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

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

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
PrepareDeleteChannelChannelsChannelIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
channelId: channelId);
channelId: channelId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
PrepareDeleteEffectPresetEffectsPresetsPresetIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
presetId: presetId);
presetId: presetId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteGenerationHistoryGenerationIdDeleteResponseContent(
PrepareDeleteGenerationHistoryGenerationIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
generationId: generationId);
generationId: generationId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ partial void ProcessDeleteGenerationVersionGenerationsGenerationIdVersionsVersio
PrepareDeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
generationId: generationId,
versionId: versionId);
generationId: generationId!,
versionId: versionId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ partial void ProcessDeleteMcpBindingMcpBindingsClientIdDeleteResponseContent(
PrepareDeleteMcpBindingMcpBindingsClientIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
clientId: clientId);
clientId: clientId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteModelModelsModelNameDeleteResponseContent(
PrepareDeleteModelModelsModelNameDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
modelName: modelName);
modelName: modelName!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteProfileAvatarProfilesProfileIdAvatarDeleteResponseCont
PrepareDeleteProfileAvatarProfilesProfileIdAvatarDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
profileId: profileId);
profileId: profileId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteProfileProfilesProfileIdDeleteResponseContent(
PrepareDeleteProfileProfilesProfileIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
profileId: profileId);
profileId: profileId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteProfileSampleProfilesSamplesSampleIdDeleteResponseCont
PrepareDeleteProfileSampleProfilesSamplesSampleIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
sampleId: sampleId);
sampleId: sampleId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteStoryStoriesStoryIdDeleteResponseContent(
PrepareDeleteStoryStoriesStoryIdDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storyId: storyId);
storyId: storyId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ partial void ProcessDuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePostResp
PrepareDuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storyId: storyId,
itemId: itemId);
storyId: storyId!,
itemId: itemId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessExportGenerationAudioHistoryGenerationIdExportAudioGetRespon
PrepareExportGenerationAudioHistoryGenerationIdExportAudioGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
generationId: generationId);
generationId: generationId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessExportGenerationHistoryGenerationIdExportGetResponseContent(
PrepareExportGenerationHistoryGenerationIdExportGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
generationId: generationId);
generationId: generationId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessExportProfileProfilesProfileIdExportGetResponseContent(
PrepareExportProfileProfilesProfileIdExportGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
profileId: profileId);
profileId: profileId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessExportStoryAudioStoriesStoryIdExportAudioGetResponseContent(
PrepareExportStoryAudioStoriesStoryIdExportAudioGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storyId: storyId);
storyId: storyId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessGetAudioAudioGenerationIdGetResponseContent(
PrepareGetAudioAudioGenerationIdGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
generationId: generationId);
generationId: generationId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessGetCaptureAudioEndpointCapturesCaptureIdAudioGetResponseCont
PrepareGetCaptureAudioEndpointCapturesCaptureIdAudioGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
captureId: captureId);
captureId: captureId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ partial void ProcessGetCaptureEndpointCapturesCaptureIdGetResponseContent(
PrepareGetCaptureEndpointCapturesCaptureIdGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
captureId: captureId);
captureId: captureId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessGetChannelChannelsChannelIdGetResponseContent(
PrepareGetChannelChannelsChannelIdGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
channelId: channelId);
channelId: channelId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessGetChannelVoicesChannelsChannelIdVoicesGetResponseContent(
PrepareGetChannelVoicesChannelsChannelIdVoicesGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
channelId: channelId);
channelId: channelId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessGetEffectPresetEffectsPresetsPresetIdGetResponseContent(
PrepareGetEffectPresetEffectsPresetsPresetIdGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
presetId: presetId);
presetId: presetId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessGetGenerationHistoryGenerationIdGetResponseContent(
PrepareGetGenerationHistoryGenerationIdGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
generationId: generationId);
generationId: generationId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessGetGenerationStatusGenerateGenerationIdStatusGetResponseCont
PrepareGetGenerationStatusGenerateGenerationIdStatusGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
generationId: generationId);
generationId: generationId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessGetModelProgressModelsProgressModelNameGetResponseContent(
PrepareGetModelProgressModelsProgressModelNameGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
modelName: modelName);
modelName: modelName!);

return __httpRequest;
}
Expand Down
Loading