diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs index ccdc37c..b62f851 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs @@ -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()); + __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\"", @@ -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( @@ -107,7 +135,7 @@ partial void ProcessAddProfileSampleProfilesProfileIdSamplesPostResponseContent( PrepareAddProfileSampleProfilesProfileIdSamplesPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId, + profileId: profileId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs index 4e67873..89c294f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs @@ -96,7 +96,7 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent( PrepareAddStoryItemStoriesStoryIdItemsPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, + storyId: storyId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs index 8739e05..e78e056 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs @@ -96,7 +96,7 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply PrepareApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId, + generationId: generationId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs index 92d3639..4726380 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs @@ -82,7 +82,7 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten PrepareCancelGenerationGenerateGenerationIdCancelPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs index 4b7ea38..5f5912d 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs @@ -82,7 +82,7 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten PrepareComposeInCharacterProfilesProfileIdComposePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId); + profileId: profileId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs index c14ff95..fa2cd01 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs @@ -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()); + __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\"", @@ -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; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs index 4751c8e..4d9452f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs @@ -81,7 +81,7 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent( PrepareDeleteCaptureEndpointCapturesCaptureIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - captureId: captureId); + captureId: captureId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs index 3a5e6c3..460dce6 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs @@ -82,7 +82,7 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent( PrepareDeleteChannelChannelsChannelIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - channelId: channelId); + channelId: channelId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs index 2ec35dc..b1bba2c 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs @@ -82,7 +82,7 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten PrepareDeleteEffectPresetEffectsPresetsPresetIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - presetId: presetId); + presetId: presetId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs index 2074ac2..a3e98cd 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs @@ -82,7 +82,7 @@ partial void ProcessDeleteGenerationHistoryGenerationIdDeleteResponseContent( PrepareDeleteGenerationHistoryGenerationIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs index 09c9c93..4f29a8f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs @@ -87,8 +87,8 @@ partial void ProcessDeleteGenerationVersionGenerationsGenerationIdVersionsVersio PrepareDeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId, - versionId: versionId); + generationId: generationId!, + versionId: versionId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs index 8b8abfc..c94e42d 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs @@ -81,7 +81,7 @@ partial void ProcessDeleteMcpBindingMcpBindingsClientIdDeleteResponseContent( PrepareDeleteMcpBindingMcpBindingsClientIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - clientId: clientId); + clientId: clientId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteModelModelsModelNameDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteModelModelsModelNameDelete.g.cs index 58cb57e..7cce834 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteModelModelsModelNameDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteModelModelsModelNameDelete.g.cs @@ -82,7 +82,7 @@ partial void ProcessDeleteModelModelsModelNameDeleteResponseContent( PrepareDeleteModelModelsModelNameDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - modelName: modelName); + modelName: modelName!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs index c5eb073..01c9721 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs @@ -82,7 +82,7 @@ partial void ProcessDeleteProfileAvatarProfilesProfileIdAvatarDeleteResponseCont PrepareDeleteProfileAvatarProfilesProfileIdAvatarDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId); + profileId: profileId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs index 3d74e26..a50cb33 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs @@ -82,7 +82,7 @@ partial void ProcessDeleteProfileProfilesProfileIdDeleteResponseContent( PrepareDeleteProfileProfilesProfileIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId); + profileId: profileId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs index 0475531..964723a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs @@ -82,7 +82,7 @@ partial void ProcessDeleteProfileSampleProfilesSamplesSampleIdDeleteResponseCont PrepareDeleteProfileSampleProfilesSamplesSampleIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sampleId: sampleId); + sampleId: sampleId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs index 0e7cec2..6236d89 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs @@ -82,7 +82,7 @@ partial void ProcessDeleteStoryStoriesStoryIdDeleteResponseContent( PrepareDeleteStoryStoriesStoryIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId); + storyId: storyId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs index d2d5c96..2bddfb8 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs @@ -87,8 +87,8 @@ partial void ProcessDuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePostResp PrepareDuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, - itemId: itemId); + storyId: storyId!, + itemId: itemId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs index 938bc72..605c23a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessExportGenerationAudioHistoryGenerationIdExportAudioGetRespon PrepareExportGenerationAudioHistoryGenerationIdExportAudioGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs index 7ab098f..35839cf 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessExportGenerationHistoryGenerationIdExportGetResponseContent( PrepareExportGenerationHistoryGenerationIdExportGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs index e69c08c..660ef49 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessExportProfileProfilesProfileIdExportGetResponseContent( PrepareExportProfileProfilesProfileIdExportGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId); + profileId: profileId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs index 75bf5d1..be49984 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessExportStoryAudioStoriesStoryIdExportAudioGetResponseContent( PrepareExportStoryAudioStoriesStoryIdExportAudioGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId); + storyId: storyId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAudioAudioGenerationIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAudioAudioGenerationIdGet.g.cs index b1250f6..6b9a475 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAudioAudioGenerationIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAudioAudioGenerationIdGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetAudioAudioGenerationIdGetResponseContent( PrepareGetAudioAudioGenerationIdGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs index b2b3a70..dafb20f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetCaptureAudioEndpointCapturesCaptureIdAudioGetResponseCont PrepareGetCaptureAudioEndpointCapturesCaptureIdAudioGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - captureId: captureId); + captureId: captureId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs index e10fb26..3f70386 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs @@ -81,7 +81,7 @@ partial void ProcessGetCaptureEndpointCapturesCaptureIdGetResponseContent( PrepareGetCaptureEndpointCapturesCaptureIdGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - captureId: captureId); + captureId: captureId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelChannelsChannelIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelChannelsChannelIdGet.g.cs index 340d23d..399d04d 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelChannelsChannelIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelChannelsChannelIdGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetChannelChannelsChannelIdGetResponseContent( PrepareGetChannelChannelsChannelIdGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - channelId: channelId); + channelId: channelId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs index a039740..7b152ce 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetChannelVoicesChannelsChannelIdVoicesGetResponseContent( PrepareGetChannelVoicesChannelsChannelIdVoicesGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - channelId: channelId); + channelId: channelId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs index 498248a..045888a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetEffectPresetEffectsPresetsPresetIdGetResponseContent( PrepareGetEffectPresetEffectsPresetsPresetIdGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - presetId: presetId); + presetId: presetId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs index 5e3b71a..ea40e1f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetGenerationHistoryGenerationIdGetResponseContent( PrepareGetGenerationHistoryGenerationIdGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs index b92d1db..dbd606e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetGenerationStatusGenerateGenerationIdStatusGetResponseCont PrepareGetGenerationStatusGenerateGenerationIdStatusGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs index 2347467..cc417b1 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetModelProgressModelsProgressModelNameGetResponseContent( PrepareGetModelProgressModelsProgressModelNameGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - modelName: modelName); + modelName: modelName!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs index 8f06174..8efae74 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetProfileAvatarProfilesProfileIdAvatarGetResponseContent( PrepareGetProfileAvatarProfilesProfileIdAvatarGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId); + profileId: profileId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs index 78553dc..4cf8322 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetProfileChannelsProfilesProfileIdChannelsGetResponseConten PrepareGetProfileChannelsProfilesProfileIdChannelsGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId); + profileId: profileId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileProfilesProfileIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileProfilesProfileIdGet.g.cs index eb14973..976bc45 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileProfilesProfileIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileProfilesProfileIdGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetProfileProfilesProfileIdGetResponseContent( PrepareGetProfileProfilesProfileIdGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId); + profileId: profileId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs index 0cdcd60..81ec322 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetProfileSamplesProfilesProfileIdSamplesGetResponseContent( PrepareGetProfileSamplesProfilesProfileIdSamplesGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId); + profileId: profileId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs index aac8795..d05b5c5 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetSampleAudioSamplesSampleIdGetResponseContent( PrepareGetSampleAudioSamplesSampleIdGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sampleId: sampleId); + sampleId: sampleId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStoryStoriesStoryIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStoryStoriesStoryIdGet.g.cs index 284bd39..a790f3e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStoryStoriesStoryIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStoryStoriesStoryIdGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetStoryStoriesStoryIdGetResponseContent( PrepareGetStoryStoriesStoryIdGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId); + storyId: storyId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs index 933abe7..ce05394 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessGetVersionAudioAudioVersionVersionIdGetResponseContent( PrepareGetVersionAudioAudioVersionVersionIdGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - versionId: versionId); + versionId: versionId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportAudioGenerateImportPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportAudioGenerateImportPost.g.cs index 9188bd3..78db15f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportAudioGenerateImportPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportAudioGenerateImportPost.g.cs @@ -79,6 +79,34 @@ partial void ProcessImportAudioGenerateImportPostResponseContent( #endif var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); 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\"", diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportGenerationHistoryImportPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportGenerationHistoryImportPost.g.cs index 2e6a3ff..b9c9e94 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportGenerationHistoryImportPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportGenerationHistoryImportPost.g.cs @@ -76,6 +76,34 @@ partial void ProcessImportGenerationHistoryImportPostResponseContent( #endif var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); 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\"", diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportProfileProfilesImportPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportProfileProfilesImportPost.g.cs index 7330336..7596e0b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportProfileProfilesImportPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportProfileProfilesImportPost.g.cs @@ -76,6 +76,34 @@ partial void ProcessImportProfileProfilesImportPostResponseContent( #endif var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); 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\"", diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs index f324a93..5947999 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessListGenerationVersionsGenerationsGenerationIdVersionsGetResp PrepareListGenerationVersionsGenerationsGenerationIdVersionsGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs index 939ac3b..c511604 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs @@ -82,7 +82,7 @@ partial void ProcessListPresetVoicesProfilesPresetsEngineGetResponseContent( PrepareListPresetVoicesProfilesPresetsEngineGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - engine: engine); + engine: engine!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs index d6c011e..8b4f638 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs @@ -101,8 +101,8 @@ partial void ProcessMoveStoryItemStoriesStoryIdItemsItemIdMovePutResponseContent PrepareMoveStoryItemStoriesStoryIdItemsItemIdMovePutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, - itemId: itemId, + storyId: storyId!, + itemId: itemId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs index 0f99a03..9dfdc3a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs @@ -96,7 +96,7 @@ partial void ProcessPreviewEffectsEffectsPreviewGenerationIdPostResponseContent( PreparePreviewEffectsEffectsPreviewGenerationIdPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId, + generationId: generationId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs index a511b65..bf222cd 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs @@ -95,7 +95,7 @@ partial void ProcessRefineCaptureEndpointCapturesCaptureIdRefinePostResponseCont PrepareRefineCaptureEndpointCapturesCaptureIdRefinePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - captureId: captureId, + captureId: captureId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs index 59daf7c..e9c6ce3 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs @@ -82,7 +82,7 @@ partial void ProcessRegenerateGenerationGenerateGenerationIdRegeneratePostRespon PrepareRegenerateGenerationGenerateGenerationIdRegeneratePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs index 4d1fa31..c2815ac 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs @@ -87,8 +87,8 @@ partial void ProcessRemoveStoryItemStoriesStoryIdItemsItemIdDeleteResponseConten PrepareRemoveStoryItemStoriesStoryIdItemsItemIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, - itemId: itemId); + storyId: storyId!, + itemId: itemId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs index 62a64a7..70c292a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessReorderStoryItemsStoriesStoryIdItemsReorderPutResponseConten PrepareReorderStoryItemsStoriesStoryIdItemsReorderPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, + storyId: storyId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs index 1a88c54..b9aec75 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs @@ -95,7 +95,7 @@ partial void ProcessRetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost PrepareRetranscribeCaptureEndpointCapturesCaptureIdRetranscribePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - captureId: captureId, + captureId: captureId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs index 8012f11..02a4466 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs @@ -82,7 +82,7 @@ partial void ProcessRetryGenerationGenerateGenerationIdRetryPostResponseContent( PrepareRetryGenerationGenerateGenerationIdRetryPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs index 375bcf6..9d5d4de 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessSetChannelVoicesChannelsChannelIdVoicesPutResponseContent( PrepareSetChannelVoicesChannelsChannelIdVoicesPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - channelId: channelId, + channelId: channelId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs index c3e7468..85e9466 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs @@ -87,8 +87,8 @@ partial void ProcessSetDefaultVersionGenerationsGenerationIdVersionsVersionIdSet PrepareSetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId, - versionId: versionId); + generationId: generationId!, + versionId: versionId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs index 389097d..48db61d 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessSetProfileChannelsProfilesProfileIdChannelsPutResponseConten PrepareSetProfileChannelsProfilesProfileIdChannelsPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId, + profileId: profileId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs index 69efbe5..22d700b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs @@ -101,8 +101,8 @@ partial void ProcessSetStoryItemVersionStoriesStoryIdItemsItemIdVersionPutRespon PrepareSetStoryItemVersionStoriesStoryIdItemsItemIdVersionPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, - itemId: itemId, + storyId: storyId!, + itemId: itemId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs index e7d9f40..0986226 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs @@ -101,8 +101,8 @@ partial void ProcessSplitStoryItemStoriesStoryIdItemsItemIdSplitPostResponseCont PrepareSplitStoryItemStoriesStoryIdItemsItemIdSplitPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, - itemId: itemId, + storyId: storyId!, + itemId: itemId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs index 0838748..5e9f1ff 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs @@ -82,7 +82,7 @@ partial void ProcessToggleFavoriteHistoryGenerationIdFavoritePostResponseContent PrepareToggleFavoriteHistoryGenerationIdFavoritePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - generationId: generationId); + generationId: generationId!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TranscribeAudioTranscribePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TranscribeAudioTranscribePost.g.cs index b771b5f..24d2676 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TranscribeAudioTranscribePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TranscribeAudioTranscribePost.g.cs @@ -76,6 +76,34 @@ partial void ProcessTranscribeAudioTranscribePostResponseContent( #endif var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); 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\"", @@ -88,14 +116,14 @@ partial void ProcessTranscribeAudioTranscribePostResponseContent( { __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.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model}"), + content: new global::System.Net.Http.StringContent(request.Model ?? string.Empty), name: "\"model\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs index a1a74a7..2b6cbc9 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs @@ -101,8 +101,8 @@ partial void ProcessTrimStoryItemStoriesStoryIdItemsItemIdTrimPutResponseContent PrepareTrimStoryItemStoriesStoryIdItemsItemIdTrimPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, - itemId: itemId, + storyId: storyId!, + itemId: itemId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs index 0c0e9da..d8673c3 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs @@ -82,7 +82,7 @@ partial void ProcessUnloadModelByNameModelsModelNameUnloadPostResponseContent( PrepareUnloadModelByNameModelsModelNameUnloadPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - modelName: modelName); + modelName: modelName!); return __httpRequest; } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs index 2a41413..f9968ea 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessUpdateChannelChannelsChannelIdPutResponseContent( PrepareUpdateChannelChannelsChannelIdPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - channelId: channelId, + channelId: channelId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs index 9134c8d..26f9bfa 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessUpdateEffectPresetEffectsPresetsPresetIdPutResponseContent( PrepareUpdateEffectPresetEffectsPresetsPresetIdPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - presetId: presetId, + presetId: presetId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs index 445d7c8..6cc280f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessUpdateProfileEffectsProfilesProfileIdEffectsPutResponseConte PrepareUpdateProfileEffectsProfilesProfileIdEffectsPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId, + profileId: profileId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs index 5384962..a32178e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessUpdateProfileProfilesProfileIdPutResponseContent( PrepareUpdateProfileProfilesProfileIdPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId, + profileId: profileId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs index 7bde0db..890384d 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessUpdateProfileSampleProfilesSamplesSampleIdPutResponseContent PrepareUpdateProfileSampleProfilesSamplesSampleIdPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sampleId: sampleId, + sampleId: sampleId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs index 83a5c1b..c61b4ba 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessUpdateStoryItemTimesStoriesStoryIdItemsTimesPutResponseConte PrepareUpdateStoryItemTimesStoriesStoryIdItemsTimesPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, + storyId: storyId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs index df93bc8..57fda64 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs @@ -101,8 +101,8 @@ partial void ProcessUpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePutRespo PrepareUpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, - itemId: itemId, + storyId: storyId!, + itemId: itemId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs index b8234f5..3d6237e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs @@ -96,7 +96,7 @@ partial void ProcessUpdateStoryStoriesStoryIdPutResponseContent( PrepareUpdateStoryStoriesStoryIdPutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storyId: storyId, + storyId: storyId!, request: request); return __httpRequest; diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs index ae5615e..5d26243 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs @@ -81,9 +81,37 @@ partial void ProcessUploadProfileAvatarProfilesProfileIdAvatarPostResponseConten #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()); + __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\"", @@ -104,7 +132,7 @@ partial void ProcessUploadProfileAvatarProfilesProfileIdAvatarPostResponseConten PrepareUploadProfileAvatarProfilesProfileIdAvatarPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - profileId: profileId, + profileId: profileId!, request: request); return __httpRequest;