diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IStreamingClient.CreateTemporaryToken.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IStreamingClient.CreateTemporaryToken.g.cs
deleted file mode 100644
index 01fdd8f..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.IStreamingClient.CreateTemporaryToken.g.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface IStreamingClient
- {
- ///
- /// Create temporary authentication token for Streaming STT
- /// <Warning>Streaming Speech-to-Text is currently not available on the EU endpoint.</Warning>
- /// <Note>Any usage associated with a temporary token will be attributed to the API key that generated it.</Note>
- /// Create a temporary authentication token for Streaming Speech-to-Text
- ///
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task CreateTemporaryTokenAsync(
- global::AssemblyAI.CreateRealtimeTemporaryTokenParams request,
- global::System.Threading.CancellationToken cancellationToken = default);
-
- ///
- /// Create temporary authentication token for Streaming STT
- /// <Warning>Streaming Speech-to-Text is currently not available on the EU endpoint.</Warning>
- /// <Note>Any usage associated with a temporary token will be attributed to the API key that generated it.</Note>
- /// Create a temporary authentication token for Streaming Speech-to-Text
- ///
- ///
- /// The amount of time until the token expires in seconds
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task CreateTemporaryTokenAsync(
- int expiresIn,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.StreamingClient.CreateTemporaryToken.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.StreamingClient.CreateTemporaryToken.g.cs
deleted file mode 100644
index 1d00968..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.StreamingClient.CreateTemporaryToken.g.cs
+++ /dev/null
@@ -1,384 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial class StreamingClient
- {
- partial void PrepareCreateTemporaryTokenArguments(
- global::System.Net.Http.HttpClient httpClient,
- global::AssemblyAI.CreateRealtimeTemporaryTokenParams request);
- partial void PrepareCreateTemporaryTokenRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::AssemblyAI.CreateRealtimeTemporaryTokenParams request);
- partial void ProcessCreateTemporaryTokenResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessCreateTemporaryTokenResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Create temporary authentication token for Streaming STT
- /// <Warning>Streaming Speech-to-Text is currently not available on the EU endpoint.</Warning>
- /// <Note>Any usage associated with a temporary token will be attributed to the API key that generated it.</Note>
- /// Create a temporary authentication token for Streaming Speech-to-Text
- ///
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task CreateTemporaryTokenAsync(
- global::AssemblyAI.CreateRealtimeTemporaryTokenParams request,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- request = request ?? throw new global::System.ArgumentNullException(nameof(request));
-
- PrepareArguments(
- client: HttpClient);
- PrepareCreateTemporaryTokenArguments(
- httpClient: HttpClient,
- request: request);
-
- var __pathBuilder = new PathBuilder(
- path: "/v2/realtime/token",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in Authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
- var __httpRequestContent = new global::System.Net.Http.StringContent(
- content: __httpRequestContentBody,
- encoding: global::System.Text.Encoding.UTF8,
- mediaType: "application/json");
- __httpRequest.Content = __httpRequestContent;
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareCreateTemporaryTokenRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- using var __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: cancellationToken).ConfigureAwait(false);
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessCreateTemporaryTokenResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- // Bad request
- if ((int)__response.StatusCode == 400)
- {
- string? __content_400 = null;
- global::AssemblyAI.Error? __value_400 = null;
- if (ReadResponseAsString)
- {
- __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
- }
- else
- {
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Unauthorized
- if ((int)__response.StatusCode == 401)
- {
- string? __content_401 = null;
- global::AssemblyAI.Error? __value_401 = null;
- if (ReadResponseAsString)
- {
- __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- else
- {
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseObject = __value_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Not found
- if ((int)__response.StatusCode == 404)
- {
- string? __content_404 = null;
- global::AssemblyAI.Error? __value_404 = null;
- if (ReadResponseAsString)
- {
- __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
- }
- else
- {
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Too many requests
- if ((int)__response.StatusCode == 429)
- {
- string? __content_429 = null;
- global::AssemblyAI.Error? __value_429 = null;
- if (ReadResponseAsString)
- {
- __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- else
- {
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_429,
- ResponseObject = __value_429,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // An error occurred while processing the request
- if ((int)__response.StatusCode == 500)
- {
- string? __content_500 = null;
- global::AssemblyAI.Error? __value_500 = null;
- if (ReadResponseAsString)
- {
- __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- else
- {
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 503)
- {
- string? __content_503 = null;
- if (ReadResponseAsString)
- {
- __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_503,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 504)
- {
- string? __content_504 = null;
- if (ReadResponseAsString)
- {
- __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_504 ?? __response.ReasonPhrase ?? string.Empty,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_504,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
-
- if (ReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessCreateTemporaryTokenResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
- }
- catch (global::System.Net.Http.HttpRequestException __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
-
- return
- global::AssemblyAI.RealtimeTemporaryTokenResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
- }
- catch (global::System.Net.Http.HttpRequestException __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- return
- await global::AssemblyAI.RealtimeTemporaryTokenResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- }
- }
-
- ///
- /// Create temporary authentication token for Streaming STT
- /// <Warning>Streaming Speech-to-Text is currently not available on the EU endpoint.</Warning>
- /// <Note>Any usage associated with a temporary token will be attributed to the API key that generated it.</Note>
- /// Create a temporary authentication token for Streaming Speech-to-Text
- ///
- ///
- /// The amount of time until the token expires in seconds
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task CreateTemporaryTokenAsync(
- int expiresIn,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __request = new global::AssemblyAI.CreateRealtimeTemporaryTokenParams
- {
- ExpiresIn = expiresIn,
- };
-
- return await CreateTemporaryTokenAsync(
- request: __request,
- cancellationToken: cancellationToken).ConfigureAwait(false);
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml
index f10a904..e51d4a7 100644
--- a/src/libs/AssemblyAI/openapi.yaml
+++ b/src/libs/AssemblyAI/openapi.yaml
@@ -590,47 +590,47 @@ paths:
"504":
$ref: "#/components/responses/GatewayTimeout"
- /v2/realtime/token:
- post:
- tags:
- - streaming
- summary: Create temporary authentication token for Streaming STT
- description: |
- Streaming Speech-to-Text is currently not available on the EU endpoint.
- Any usage associated with a temporary token will be attributed to the API key that generated it.
- Create a temporary authentication token for Streaming Speech-to-Text
- operationId: createTemporaryToken
- x-fern-sdk-group-name: realtime
- x-fern-sdk-method-name: createTemporaryToken
- x-fern-request-name: CreateRealtimeTemporaryTokenParams
- requestBody:
- description: Params to create a temporary authentication token
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/CreateRealtimeTemporaryTokenParams"
- responses:
- "200":
- description: Temporary authentication token generated
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/RealtimeTemporaryTokenResponse"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthorized"
- "404":
- $ref: "#/components/responses/NotFound"
- "429":
- $ref: "#/components/responses/TooManyRequests"
- "500":
- $ref: "#/components/responses/InternalServerError"
- "503":
- $ref: "#/components/responses/ServiceUnavailable"
- "504":
- $ref: "#/components/responses/GatewayTimeout"
+ # /v2/realtime/token:
+ # post:
+ # tags:
+ # - streaming
+ # summary: Create temporary authentication token for Streaming STT
+ # description: |
+ # Streaming Speech-to-Text is currently not available on the EU endpoint.
+ # Any usage associated with a temporary token will be attributed to the API key that generated it.
+ # Create a temporary authentication token for Streaming Speech-to-Text
+ # operationId: createTemporaryToken
+ # x-fern-sdk-group-name: realtime
+ # x-fern-sdk-method-name: createTemporaryToken
+ # x-fern-request-name: CreateRealtimeTemporaryTokenParams
+ # requestBody:
+ # description: Params to create a temporary authentication token
+ # required: true
+ # content:
+ # application/json:
+ # schema:
+ # $ref: "#/components/schemas/CreateRealtimeTemporaryTokenParams"
+ # responses:
+ # "200":
+ # description: Temporary authentication token generated
+ # content:
+ # application/json:
+ # schema:
+ # $ref: "#/components/schemas/RealtimeTemporaryTokenResponse"
+ # "400":
+ # $ref: "#/components/responses/BadRequest"
+ # "401":
+ # $ref: "#/components/responses/Unauthorized"
+ # "404":
+ # $ref: "#/components/responses/NotFound"
+ # "429":
+ # $ref: "#/components/responses/TooManyRequests"
+ # "500":
+ # $ref: "#/components/responses/InternalServerError"
+ # "503":
+ # $ref: "#/components/responses/ServiceUnavailable"
+ # "504":
+ # $ref: "#/components/responses/GatewayTimeout"
/lemur/v3/generate/task:
post: