diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.UploadFile.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.UploadFile.g.cs
index 598e996..0e10dfe 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.UploadFile.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.UploadFile.g.cs
@@ -9,8 +9,20 @@ public partial interface ITranscriptClient
/// <Note>To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
/// Upload a media file to AssemblyAI's servers.
///
+ ///
/// The token to cancel the operation with
///
+ global::System.Threading.Tasks.Task UploadFileAsync(
+ byte[] request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Upload a media file
+ /// <Note>To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
+ /// Upload a media file to AssemblyAI's servers.
+ ///
+ /// The token to cancel the operation with
+ ///
global::System.Threading.Tasks.Task UploadFileAsync(
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs
index f8de5c9..7f04db4 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs
@@ -6,10 +6,12 @@ namespace AssemblyAI
public partial class TranscriptClient
{
partial void PrepareUploadFileArguments(
- global::System.Net.Http.HttpClient httpClient);
+ global::System.Net.Http.HttpClient httpClient,
+ byte[] request);
partial void PrepareUploadFileRequest(
global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage);
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ byte[] request);
partial void ProcessUploadFileResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -24,15 +26,20 @@ partial void ProcessUploadFileResponseContent(
/// <Note>To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
/// Upload a media file to AssemblyAI's servers.
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task UploadFileAsync(
+ byte[] request,
global::System.Threading.CancellationToken cancellationToken = default)
{
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
PrepareArguments(
client: HttpClient);
PrepareUploadFileArguments(
- httpClient: HttpClient);
+ httpClient: HttpClient,
+ request: request);
var __pathBuilder = new PathBuilder(
path: "/v2/upload",
@@ -61,13 +68,20 @@ partial void ProcessUploadFileResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
+ var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/octet-stream");
+ __httpRequest.Content = __httpRequestContent;
PrepareRequest(
client: HttpClient,
request: __httpRequest);
PrepareUploadFileRequest(
httpClient: HttpClient,
- httpRequestMessage: __httpRequest);
+ httpRequestMessage: __httpRequest,
+ request: request);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
@@ -340,5 +354,24 @@ partial void ProcessUploadFileResponseContent(
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
}
+
+ ///
+ /// Upload a media file
+ /// <Note>To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
+ /// Upload a media file to AssemblyAI's servers.
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task UploadFileAsync(
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new byte[]
+ {
+ };
+
+ return await UploadFileAsync(
+ request: __request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
}
}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/JsonSerializerContextTypes.g.cs
index 9549af1..667113e 100644
--- a/src/libs/AssemblyAI/Generated/JsonSerializerContextTypes.g.cs
+++ b/src/libs/AssemblyAI/Generated/JsonSerializerContextTypes.g.cs
@@ -475,5 +475,9 @@ public sealed partial class JsonSerializerContextTypes
///
///
public global::System.Collections.Generic.IList? Type112 { get; set; }
+ ///
+ ///
+ ///
+ public byte[]? Type113 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml
index 5316d9a..f10a904 100644
--- a/src/libs/AssemblyAI/openapi.yaml
+++ b/src/libs/AssemblyAI/openapi.yaml
@@ -46,7 +46,10 @@ paths:
x-fern-sdk-method-name: upload
requestBody:
content:
- application/octet-stream: {}
+ application/octet-stream:
+ schema:
+ type: string
+ format: binary
responses:
"200":
x-label: Media file uploaded