diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.Authorizations.Bearer.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.Authorizations.Bearer.g.cs
new file mode 100644
index 0000000..91db621
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.Authorizations.Bearer.g.cs
@@ -0,0 +1,35 @@
+
+#nullable enable
+
+namespace AssemblyAI
+{
+ public sealed partial class AssemblyAIClient
+ {
+
+ ///
+ public void AuthorizeUsingBearer(
+ string apiKey)
+ {
+ apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
+
+ for (var i = Authorizations.Count - 1; i >= 0; i--)
+ {
+ var __authorization = Authorizations[i];
+ if (__authorization.Type == "Http" &&
+ __authorization.Name == "Bearer")
+ {
+ Authorizations.RemoveAt(i);
+ }
+ }
+
+ Authorizations.Add(new global::AssemblyAI.EndPointAuthorization
+ {
+ Type = "Http",
+ SchemeId = "BearerAuth",
+ Location = "Header",
+ Name = "Bearer",
+ Value = apiKey,
+ });
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.Constructors.Bearer.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.Constructors.Bearer.g.cs
new file mode 100644
index 0000000..af62db7
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.Constructors.Bearer.g.cs
@@ -0,0 +1,31 @@
+
+#nullable enable
+
+namespace AssemblyAI
+{
+ public sealed partial class AssemblyAIClient
+ {
+ ///
+
+ public AssemblyAIClient(
+ string apiKey,
+ global::System.Net.Http.HttpClient? httpClient = null,
+ global::System.Uri? baseUri = null,
+ global::System.Collections.Generic.List? authorizations = null,
+ bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient)
+ {
+ Authorizing(HttpClient, ref apiKey);
+
+ AuthorizeUsingBearer(apiKey);
+
+ Authorized(HttpClient);
+ }
+
+ partial void Authorizing(
+ global::System.Net.Http.HttpClient client,
+ ref string apiKey);
+ partial void Authorized(
+ global::System.Net.Http.HttpClient client);
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.CreateChatCompletion.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.CreateChatCompletion.g.cs
deleted file mode 100644
index e4a8050..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.CreateChatCompletion.g.cs
+++ /dev/null
@@ -1,538 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial class AssemblyAIClient
- {
-
- private static readonly global::AssemblyAI.AutoSDKServer[] s_CreateChatCompletionServers = new global::AssemblyAI.AutoSDKServer[]
- { new global::AssemblyAI.AutoSDKServer(
- id: "https-api-assemblyai-com",
- name: "api.assemblyai.com",
- url: "https://api.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-llm-gateway-assemblyai-com-v1",
- name: "llm-gateway.assemblyai.com v1",
- url: "https://llm-gateway.assemblyai.com/v1",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-streaming-assemblyai-com",
- name: "streaming.assemblyai.com",
- url: "https://streaming.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-agents-assemblyai-com",
- name: "agents.assemblyai.com",
- url: "https://agents.assemblyai.com/",
- description: ""),
- };
- partial void PrepareCreateChatCompletionArguments(
- global::System.Net.Http.HttpClient httpClient,
- ref string authorization,
- global::AssemblyAI.LLMGatewayRequest request);
- partial void PrepareCreateChatCompletionRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string authorization,
- global::AssemblyAI.LLMGatewayRequest request);
- partial void ProcessCreateChatCompletionResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessCreateChatCompletionResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Create a chat completion
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Generates a response from a model given a prompt or a series of messages.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task CreateChatCompletionAsync(
- string authorization,
-
- global::AssemblyAI.LLMGatewayRequest request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __response = await CreateChatCompletionAsResponseAsync(
- authorization: authorization,
-
- request: request,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken
- ).ConfigureAwait(false);
-
- return __response.Body;
- }
- ///
- /// Create a chat completion
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Generates a response from a model given a prompt or a series of messages.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task> CreateChatCompletionAsResponseAsync(
- string authorization,
-
- global::AssemblyAI.LLMGatewayRequest request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- request = request ?? throw new global::System.ArgumentNullException(nameof(request));
-
- PrepareArguments(
- client: HttpClient);
- PrepareCreateChatCompletionArguments(
- httpClient: HttpClient,
- authorization: ref authorization,
- request: request);
-
- using var __timeoutCancellationTokenSource = global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
- clientOptions: Options,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken);
- var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
- var __effectiveReadResponseAsString = global::AssemblyAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
- clientOptions: Options,
- requestOptions: requestOptions,
- fallbackValue: ReadResponseAsString);
- var __maxAttempts = global::AssemblyAI.AutoSDKRequestOptionsSupport.GetMaxAttempts(
- clientOptions: Options,
- requestOptions: requestOptions,
- supportsRetry: false);
-
- global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
- {
-
- var __pathBuilder = new global::AssemblyAI.PathBuilder(
- path: "/chat/completions",
- baseUri: ResolveBaseUri(
- servers: s_CreateChatCompletionServers,
- defaultBaseUrl: "https://api.assemblyai.com/"));
- var __path = __pathBuilder.ToString();
- __path = global::AssemblyAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
- path: __path,
- clientParameters: Options.QueryParameters,
- requestParameters: requestOptions?.QueryParameters);
- 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
-
- __httpRequest.Headers.TryAddWithoutValidation("Authorization", authorization.ToString());
-
- 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;
- global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders(
- request: __httpRequest,
- clientHeaders: Options.Headers,
- requestHeaders: requestOptions?.Headers);
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareCreateChatCompletionRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- authorization: authorization!,
- request: request);
-
- return __httpRequest;
- }
-
- global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
- global::System.Net.Http.HttpResponseMessage? __response = null;
- var __attemptNumber = 0;
- try
- {
- for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
- {
- __attemptNumber = __attempt;
- __httpRequest = __CreateHttpRequest();
- await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
- clientOptions: Options,
- context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateChatCompletion",
- methodName: "CreateChatCompletionAsync",
- pathTemplate: "\"/chat/completions\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- try
- {
- __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- }
- catch (global::System.Net.Http.HttpRequestException __exception)
- {
- var __retryDelay = global::AssemblyAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: null,
- attempt: __attempt);
- var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
- await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateChatCompletion",
- methodName: "CreateChatCompletionAsync",
- pathTemplate: "\"/chat/completions\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: __exception,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: __willRetry,
- retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
- retryReason: "exception",
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- if (!__willRetry)
- {
- throw;
- }
-
- __httpRequest.Dispose();
- __httpRequest = null;
- await global::AssemblyAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- if (__response != null &&
- __attempt < __maxAttempts &&
- global::AssemblyAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
- {
- var __retryDelay = global::AssemblyAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: __response,
- attempt: __attempt);
- await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateChatCompletion",
- methodName: "CreateChatCompletionAsync",
- pathTemplate: "\"/chat/completions\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: true,
- retryDelay: __retryDelay,
- retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- __response.Dispose();
- __response = null;
- __httpRequest.Dispose();
- __httpRequest = null;
- await global::AssemblyAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- break;
- }
-
- if (__response == null)
- {
- throw new global::System.InvalidOperationException("No response received.");
- }
-
- using (__response)
- {
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessCreateChatCompletionResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- if (__response.IsSuccessStatusCode)
- {
- await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
- clientOptions: Options,
- context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateChatCompletion",
- methodName: "CreateChatCompletionAsync",
- pathTemplate: "\"/chat/completions\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- else
- {
- await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateChatCompletion",
- methodName: "CreateChatCompletionAsync",
- pathTemplate: "\"/chat/completions\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
-
- if (__effectiveReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessCreateChatCompletionResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- var __value = global::AssemblyAI.Response.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::AssemblyAI.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- throw global::AssemblyAI.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- var __value = await global::AssemblyAI.Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::AssemblyAI.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
-
- throw global::AssemblyAI.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
-
- }
- }
- finally
- {
- __httpRequest?.Dispose();
- }
- }
- ///
- /// Create a chat completion
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Generates a response from a model given a prompt or a series of messages.
- ///
- ///
- ///
- /// A list of messages comprising the conversation so far.
- ///
- ///
- /// A simple string prompt. The API will automatically convert this into a user message.
- ///
- ///
- /// Optional. The ID of an AssemblyAI transcript whose text replaces the first `{{ transcript }}` tag in the prompt. See [Inject a transcript by ID](https://www.assemblyai.com/docs/llm-gateway/chat-completions#inject-a-transcript-by-id) for substitution rules and edge cases.
- ///
- ///
- /// The ID of the model to use for this request. See [LLM Gateway Overview](https://www.assemblyai.com/docs/llm-gateway/overview#available-models) for available models.
- ///
- ///
- /// The maximum number of tokens to generate in the completion. Default is 1000.
- /// Default Value: 1000
- ///
- ///
- /// Controls randomness. Lower values produce more deterministic results.
- ///
- ///
- /// When true, responses are streamed as server-sent events (SSE). Supported on OpenAI models only.
- /// Default Value: false
- ///
- ///
- /// A list of tools the model may call.
- ///
- ///
- /// Controls which (if any) function is called by the model.
- ///
- ///
- /// Specifies the format of the model's response. Use this to constrain the model to output valid JSON matching a schema. Supported by OpenAI (GPT-4.1, GPT-5.x), Gemini, and Claude models. Not supported by gpt-oss models.
- ///
- ///
- /// An array of fallback objects. Each object must include a `model` and can optionally override any field from the original request. If the primary model fails, the LLM Gateway tries each fallback in order until one succeeds. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details.
- ///
- ///
- /// Configuration for fallback behavior, including retry and depth settings. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details.
- ///
- ///
- /// Controls reasoning behavior for supported models. OpenAI-compatible models, Gemini 3+ models, and Anthropic models support reasoning. Use `effort` to set the reasoning effort level, or `max_tokens` to cap the number of tokens the model can use for reasoning.
- ///
- ///
- /// An ordered list of post-processing steps to apply to the model's response after generation. Currently supports `json-repair`, which automatically fixes malformed JSON in LLM Gateway content responses. See [Post-processing](https://www.assemblyai.com/docs/llm-gateway/post-processing) for details.
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task CreateChatCompletionAsync(
- string authorization,
- string model,
- global::System.Collections.Generic.IList? messages = default,
- string? prompt = default,
- string? transcriptId = default,
- int? maxTokens = default,
- double? temperature = default,
- bool? stream = default,
- global::System.Collections.Generic.IList? tools = default,
- global::AssemblyAI.ToolChoice? toolChoice = default,
- global::AssemblyAI.ResponseFormat? responseFormat = default,
- global::System.Collections.Generic.IList? fallbacks = default,
- global::AssemblyAI.FallbackConfig? fallbackConfig = default,
- global::AssemblyAI.Reasoning? reasoning = default,
- global::System.Collections.Generic.IList? postProcessingSteps = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __request = new global::AssemblyAI.LLMGatewayRequest
- {
- Messages = messages,
- Prompt = prompt,
- TranscriptId = transcriptId,
- Model = model,
- MaxTokens = maxTokens,
- Temperature = temperature,
- Stream = stream,
- Tools = tools,
- ToolChoice = toolChoice,
- ResponseFormat = responseFormat,
- Fallbacks = fallbacks,
- FallbackConfig = fallbackConfig,
- Reasoning = reasoning,
- PostProcessingSteps = postProcessingSteps,
- };
-
- return await CreateChatCompletionAsync(
- authorization: authorization,
- request: __request,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken).ConfigureAwait(false);
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.CreateSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.CreatePlants.g.cs
similarity index 71%
rename from src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.CreateSpeechUnderstanding.g.cs
rename to src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.CreatePlants.g.cs
index 7086579..f015282 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.CreateSpeechUnderstanding.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.CreatePlants.g.cs
@@ -6,68 +6,55 @@ namespace AssemblyAI
public partial class AssemblyAIClient
{
- private static readonly global::AssemblyAI.AutoSDKServer[] s_CreateSpeechUnderstandingServers = new global::AssemblyAI.AutoSDKServer[]
- { new global::AssemblyAI.AutoSDKServer(
- id: "https-api-assemblyai-com",
- name: "api.assemblyai.com",
- url: "https://api.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-llm-gateway-assemblyai-com-v1",
- name: "llm-gateway.assemblyai.com v1",
- url: "https://llm-gateway.assemblyai.com/v1",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-streaming-assemblyai-com",
- name: "streaming.assemblyai.com",
- url: "https://streaming.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-agents-assemblyai-com",
- name: "agents.assemblyai.com",
- url: "https://agents.assemblyai.com/",
- description: ""),
- };
- partial void PrepareCreateSpeechUnderstandingArguments(
+
+ private static readonly global::AssemblyAI.EndPointSecurityRequirement s_CreatePlantsSecurityRequirement0 =
+ new global::AssemblyAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::AssemblyAI.EndPointAuthorizationRequirement[]
+ { new global::AssemblyAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "BearerAuth",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::AssemblyAI.EndPointSecurityRequirement[] s_CreatePlantsSecurityRequirements =
+ new global::AssemblyAI.EndPointSecurityRequirement[]
+ { s_CreatePlantsSecurityRequirement0,
+ };
+ partial void PrepareCreatePlantsArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string authorization,
- global::AssemblyAI.UnderstandingRequest request);
- partial void PrepareCreateSpeechUnderstandingRequest(
+ global::AssemblyAI.NewPlant request);
+ partial void PrepareCreatePlantsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string authorization,
- global::AssemblyAI.UnderstandingRequest request);
- partial void ProcessCreateSpeechUnderstandingResponse(
+ global::AssemblyAI.NewPlant request);
+ partial void ProcessCreatePlantsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessCreateSpeechUnderstandingResponseContent(
+ partial void ProcessCreatePlantsResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
///
- /// Process speech understanding
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Perform various speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting).
+ /// Creates a new plant in the store
///
- ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task CreateSpeechUnderstandingAsync(
- string authorization,
+ public async global::System.Threading.Tasks.Task CreatePlantsAsync(
- global::AssemblyAI.UnderstandingRequest request,
+ global::AssemblyAI.NewPlant request,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __response = await CreateSpeechUnderstandingAsResponseAsync(
- authorization: authorization,
+ var __response = await CreatePlantsAsResponseAsync(
request: request,
requestOptions: requestOptions,
@@ -77,34 +64,30 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
return __response.Body;
}
///
- /// Process speech understanding
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Perform various speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting).
+ /// Creates a new plant in the store
///
- ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task> CreateSpeechUnderstandingAsResponseAsync(
- string authorization,
+ public async global::System.Threading.Tasks.Task> CreatePlantsAsResponseAsync(
- global::AssemblyAI.UnderstandingRequest request,
+ global::AssemblyAI.NewPlant request,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- request = request ?? throw new global::System.ArgumentNullException(nameof(request));
-
PrepareArguments(
client: HttpClient);
- PrepareCreateSpeechUnderstandingArguments(
+ PrepareCreatePlantsArguments(
httpClient: HttpClient,
- authorization: ref authorization,
request: request);
+
+ var __authorizations = global::AssemblyAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreatePlantsSecurityRequirements,
+ operationName: "CreatePlantsAsync");
+
using var __timeoutCancellationTokenSource = global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
requestOptions: requestOptions,
@@ -123,10 +106,8 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
{
var __pathBuilder = new global::AssemblyAI.PathBuilder(
- path: "/understanding",
- baseUri: ResolveBaseUri(
- servers: s_CreateSpeechUnderstandingServers,
- defaultBaseUrl: "https://api.assemblyai.com/"));
+ path: "/plants",
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
__path = global::AssemblyAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
@@ -140,8 +121,22 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- __httpRequest.Headers.TryAddWithoutValidation("Authorization", authorization.ToString());
-
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __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,
@@ -156,10 +151,9 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareCreateSpeechUnderstandingRequest(
+ PrepareCreatePlantsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- authorization: authorization!,
request: request);
return __httpRequest;
@@ -177,9 +171,9 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateSpeechUnderstanding",
- methodName: "CreateSpeechUnderstandingAsync",
- pathTemplate: "\"/understanding\"",
+ operationId: "createPlants",
+ methodName: "CreatePlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -211,9 +205,9 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateSpeechUnderstanding",
- methodName: "CreateSpeechUnderstandingAsync",
- pathTemplate: "\"/understanding\"",
+ operationId: "createPlants",
+ methodName: "CreatePlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -252,9 +246,9 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateSpeechUnderstanding",
- methodName: "CreateSpeechUnderstandingAsync",
- pathTemplate: "\"/understanding\"",
+ operationId: "createPlants",
+ methodName: "CreatePlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -292,7 +286,7 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessCreateSpeechUnderstandingResponse(
+ ProcessCreatePlantsResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -300,9 +294,9 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateSpeechUnderstanding",
- methodName: "CreateSpeechUnderstandingAsync",
- pathTemplate: "\"/understanding\"",
+ operationId: "createPlants",
+ methodName: "CreatePlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -322,9 +316,9 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CreateSpeechUnderstanding",
- methodName: "CreateSpeechUnderstandingAsync",
- pathTemplate: "\"/understanding\"",
+ operationId: "createPlants",
+ methodName: "CreatePlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -339,6 +333,43 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
+ // unexpected error
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ global::AssemblyAI.Error? __value_400 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
+ }
+ else
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+
+ throw global::AssemblyAI.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
if (__effectiveReadResponseAsString)
{
@@ -352,7 +383,7 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
client: HttpClient,
response: __response,
content: ref __content);
- ProcessCreateSpeechUnderstandingResponseContent(
+ ProcessCreatePlantsResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
@@ -361,9 +392,9 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
{
__response.EnsureSuccessStatusCode();
- var __value = global::AssemblyAI.CreateSpeechUnderstandingResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::AssemblyAI.Plant.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::AssemblyAI.AutoSDKHttpResponse(
+ return new global::AssemblyAI.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
@@ -393,9 +424,9 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
#endif
).ConfigureAwait(false);
- var __value = await global::AssemblyAI.CreateSpeechUnderstandingResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::AssemblyAI.Plant.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::AssemblyAI.AutoSDKHttpResponse(
+ return new global::AssemblyAI.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
@@ -436,38 +467,20 @@ partial void ProcessCreateSpeechUnderstandingResponseContent(
}
}
///
- /// Process speech understanding
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Perform various speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting).
+ /// Creates a new plant in the store
///
- ///
- ///
- /// The ID of the transcript to process.
- ///
- ///
- /// The speech understanding task to perform. Supports [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). Click into the request object below to see the available options.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task CreateSpeechUnderstandingAsync(
- string authorization,
- string transcriptId,
- global::AssemblyAI.UnderstandingRequestSpeechUnderstanding speechUnderstanding,
+ public async global::System.Threading.Tasks.Task CreatePlantsAsync(
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __request = new global::AssemblyAI.UnderstandingRequest
+ var __request = new global::AssemblyAI.NewPlant
{
- TranscriptId = transcriptId,
- SpeechUnderstanding = speechUnderstanding,
};
- return await CreateSpeechUnderstandingAsync(
- authorization: authorization,
+ return await CreatePlantsAsync(
request: __request,
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageVoiceAgentApiClient.GenerateVoiceAgentToken.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.DeletePlantsById.g.cs
similarity index 55%
rename from src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageVoiceAgentApiClient.GenerateVoiceAgentToken.g.cs
rename to src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.DeletePlantsById.g.cs
index f3b9350..2244d9b 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageVoiceAgentApiClient.GenerateVoiceAgentToken.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.DeletePlantsById.g.cs
@@ -3,116 +3,80 @@
namespace AssemblyAI
{
- public partial class SubpackageVoiceAgentApiClient
+ public partial class AssemblyAIClient
{
- private static readonly global::AssemblyAI.AutoSDKServer[] s_GenerateVoiceAgentTokenServers = new global::AssemblyAI.AutoSDKServer[]
- { new global::AssemblyAI.AutoSDKServer(
- id: "https-api-assemblyai-com",
- name: "api.assemblyai.com",
- url: "https://api.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-llm-gateway-assemblyai-com-v1",
- name: "llm-gateway.assemblyai.com v1",
- url: "https://llm-gateway.assemblyai.com/v1",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-streaming-assemblyai-com",
- name: "streaming.assemblyai.com",
- url: "https://streaming.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-agents-assemblyai-com",
- name: "agents.assemblyai.com",
- url: "https://agents.assemblyai.com/",
- description: ""),
- };
- partial void PrepareGenerateVoiceAgentTokenArguments(
+
+ private static readonly global::AssemblyAI.EndPointSecurityRequirement s_DeletePlantsByIdSecurityRequirement0 =
+ new global::AssemblyAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::AssemblyAI.EndPointAuthorizationRequirement[]
+ { new global::AssemblyAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "BearerAuth",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::AssemblyAI.EndPointSecurityRequirement[] s_DeletePlantsByIdSecurityRequirements =
+ new global::AssemblyAI.EndPointSecurityRequirement[]
+ { s_DeletePlantsByIdSecurityRequirement0,
+ };
+ partial void PrepareDeletePlantsByIdArguments(
global::System.Net.Http.HttpClient httpClient,
- ref int expiresInSeconds,
- ref int? maxSessionDurationSeconds);
- partial void PrepareGenerateVoiceAgentTokenRequest(
+ ref long id);
+ partial void PrepareDeletePlantsByIdRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- int expiresInSeconds,
- int? maxSessionDurationSeconds);
- partial void ProcessGenerateVoiceAgentTokenResponse(
+ long id);
+ partial void ProcessDeletePlantsByIdResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessGenerateVoiceAgentTokenResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
///
- /// Generate temporary Voice Agent token
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Generate a temporary authentication token for the Voice Agent API. Use this to
- /// connect browser or other client-side applications to the Voice Agent API without
- /// exposing your permanent API key. See
- /// [Browser integration](https://www.assemblyai.com/docs/voice-agents/voice-agent-api/browser-integration)
- /// for the full flow.
- /// Each token is one-time use and can only be used for a single session. All usage
- /// is attributed to the API key that generated the token.
+ /// Deletes a single plant based on the ID supplied
///
- ///
- ///
- /// Default Value: 10800
- ///
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task GenerateVoiceAgentTokenAsync(
- int expiresInSeconds,
- int? maxSessionDurationSeconds = default,
+ public async global::System.Threading.Tasks.Task DeletePlantsByIdAsync(
+ long id,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __response = await GenerateVoiceAgentTokenAsResponseAsync(
- expiresInSeconds: expiresInSeconds,
- maxSessionDurationSeconds: maxSessionDurationSeconds,
+ await DeletePlantsByIdAsResponseAsync(
+ id: id,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
-
- return __response.Body;
}
///
- /// Generate temporary Voice Agent token
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Generate a temporary authentication token for the Voice Agent API. Use this to
- /// connect browser or other client-side applications to the Voice Agent API without
- /// exposing your permanent API key. See
- /// [Browser integration](https://www.assemblyai.com/docs/voice-agents/voice-agent-api/browser-integration)
- /// for the full flow.
- /// Each token is one-time use and can only be used for a single session. All usage
- /// is attributed to the API key that generated the token.
+ /// Deletes a single plant based on the ID supplied
///
- ///
- ///
- /// Default Value: 10800
- ///
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task> GenerateVoiceAgentTokenAsResponseAsync(
- int expiresInSeconds,
- int? maxSessionDurationSeconds = default,
+ public async global::System.Threading.Tasks.Task DeletePlantsByIdAsResponseAsync(
+ long id,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
- PrepareGenerateVoiceAgentTokenArguments(
+ PrepareDeletePlantsByIdArguments(
httpClient: HttpClient,
- expiresInSeconds: ref expiresInSeconds,
- maxSessionDurationSeconds: ref maxSessionDurationSeconds);
+ id: ref id);
+
+
+ var __authorizations = global::AssemblyAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeletePlantsByIdSecurityRequirements,
+ operationName: "DeletePlantsByIdAsync");
using var __timeoutCancellationTokenSource = global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -132,26 +96,37 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
{
var __pathBuilder = new global::AssemblyAI.PathBuilder(
- path: "/v1/token",
- baseUri: ResolveBaseUri(
- servers: s_GenerateVoiceAgentTokenServers,
- defaultBaseUrl: "https://api.assemblyai.com/"));
- __pathBuilder
- .AddRequiredParameter("expires_in_seconds", expiresInSeconds.ToString()!)
- .AddOptionalParameter("max_session_duration_seconds", maxSessionDurationSeconds?.ToString())
- ;
+ path: $"/plants/{id}",
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
__path = global::AssemblyAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
clientParameters: Options.QueryParameters,
requestParameters: requestOptions?.QueryParameters);
var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Get,
+ method: global::System.Net.Http.HttpMethod.Delete,
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" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __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);
+ }
+ }
global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
clientHeaders: Options.Headers,
@@ -160,11 +135,10 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareGenerateVoiceAgentTokenRequest(
+ PrepareDeletePlantsByIdRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- expiresInSeconds: expiresInSeconds!,
- maxSessionDurationSeconds: maxSessionDurationSeconds);
+ id: id!);
return __httpRequest;
}
@@ -181,10 +155,10 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateVoiceAgentToken",
- methodName: "GenerateVoiceAgentTokenAsync",
- pathTemplate: "\"/v1/token\"",
- httpMethod: "GET",
+ operationId: "deletePlantsById",
+ methodName: "DeletePlantsByIdAsync",
+ pathTemplate: "$\"/plants/{id}\"",
+ httpMethod: "DELETE",
baseUri: BaseUri,
request: __httpRequest!,
response: null,
@@ -215,10 +189,10 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateVoiceAgentToken",
- methodName: "GenerateVoiceAgentTokenAsync",
- pathTemplate: "\"/v1/token\"",
- httpMethod: "GET",
+ operationId: "deletePlantsById",
+ methodName: "DeletePlantsByIdAsync",
+ pathTemplate: "$\"/plants/{id}\"",
+ httpMethod: "DELETE",
baseUri: BaseUri,
request: __httpRequest!,
response: null,
@@ -256,10 +230,10 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateVoiceAgentToken",
- methodName: "GenerateVoiceAgentTokenAsync",
- pathTemplate: "\"/v1/token\"",
- httpMethod: "GET",
+ operationId: "deletePlantsById",
+ methodName: "DeletePlantsByIdAsync",
+ pathTemplate: "$\"/plants/{id}\"",
+ httpMethod: "DELETE",
baseUri: BaseUri,
request: __httpRequest!,
response: __response,
@@ -296,7 +270,7 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessGenerateVoiceAgentTokenResponse(
+ ProcessDeletePlantsByIdResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -304,10 +278,10 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateVoiceAgentToken",
- methodName: "GenerateVoiceAgentTokenAsync",
- pathTemplate: "\"/v1/token\"",
- httpMethod: "GET",
+ operationId: "deletePlantsById",
+ methodName: "DeletePlantsByIdAsync",
+ pathTemplate: "$\"/plants/{id}\"",
+ httpMethod: "DELETE",
baseUri: BaseUri,
request: __httpRequest!,
response: __response,
@@ -326,10 +300,10 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateVoiceAgentToken",
- methodName: "GenerateVoiceAgentTokenAsync",
- pathTemplate: "\"/v1/token\"",
- httpMethod: "GET",
+ operationId: "deletePlantsById",
+ methodName: "DeletePlantsByIdAsync",
+ pathTemplate: "$\"/plants/{id}\"",
+ httpMethod: "DELETE",
baseUri: BaseUri,
request: __httpRequest!,
response: __response,
@@ -343,7 +317,7 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
- // Bad request — invalid parameters.
+ // unexpected error
if ((int)__response.StatusCode == 400)
{
string? __content_400 = null;
@@ -380,117 +354,6 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
h => h.Key,
h => h.Value));
}
- // Unauthorized — invalid or missing API key.
- if ((int)__response.StatusCode == 401)
- {
- string? __content_401 = null;
- global::System.Exception? __exception_401 = null;
- global::AssemblyAI.Error? __value_401 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- else
- {
- __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_401 = __ex;
- }
-
-
- throw global::AssemblyAI.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_401,
- responseBody: __content_401,
- responseObject: __value_401,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- // Too Many Requests — rate limit exceeded.
- if ((int)__response.StatusCode == 429)
- {
- string? __content_429 = null;
- global::System.Exception? __exception_429 = null;
- global::AssemblyAI.Error? __value_429 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- else
- {
- __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_429 = __ex;
- }
-
-
- throw global::AssemblyAI.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_429,
- responseBody: __content_429,
- responseObject: __value_429,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- // Internal Server Error.
- if ((int)__response.StatusCode == 500)
- {
- string? __content_500 = null;
- global::System.Exception? __exception_500 = null;
- global::AssemblyAI.Error? __value_500 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- else
- {
- __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_500 = __ex;
- }
-
-
- throw global::AssemblyAI.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_500,
- responseBody: __content_500,
- responseObject: __value_500,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
if (__effectiveReadResponseAsString)
{
@@ -504,22 +367,15 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
client: HttpClient,
response: __response,
content: ref __content);
- ProcessGenerateVoiceAgentTokenResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
try
{
__response.EnsureSuccessStatusCode();
- var __value = global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::AssemblyAI.AutoSDKHttpResponse(
+ return new global::AssemblyAI.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -539,19 +395,10 @@ partial void ProcessGenerateVoiceAgentTokenResponseContent(
try
{
__response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- var __value = await global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::AssemblyAI.AutoSDKHttpResponse(
+ return new global::AssemblyAI.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageStreamingApiClient.GenerateStreamingToken.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.GetPlants.g.cs
similarity index 61%
rename from src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageStreamingApiClient.GenerateStreamingToken.g.cs
rename to src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.GetPlants.g.cs
index 696b7e0..ae31e71 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageStreamingApiClient.GenerateStreamingToken.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.GetPlants.g.cs
@@ -3,72 +3,58 @@
namespace AssemblyAI
{
- public partial class SubpackageStreamingApiClient
+ public partial class AssemblyAIClient
{
- private static readonly global::AssemblyAI.AutoSDKServer[] s_GenerateStreamingTokenServers = new global::AssemblyAI.AutoSDKServer[]
- { new global::AssemblyAI.AutoSDKServer(
- id: "https-api-assemblyai-com",
- name: "api.assemblyai.com",
- url: "https://api.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-llm-gateway-assemblyai-com-v1",
- name: "llm-gateway.assemblyai.com v1",
- url: "https://llm-gateway.assemblyai.com/v1",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-streaming-assemblyai-com",
- name: "streaming.assemblyai.com",
- url: "https://streaming.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-agents-assemblyai-com",
- name: "agents.assemblyai.com",
- url: "https://agents.assemblyai.com/",
- description: ""),
- };
- partial void PrepareGenerateStreamingTokenArguments(
+
+ private static readonly global::AssemblyAI.EndPointSecurityRequirement s_GetPlantsSecurityRequirement0 =
+ new global::AssemblyAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::AssemblyAI.EndPointAuthorizationRequirement[]
+ { new global::AssemblyAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "BearerAuth",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::AssemblyAI.EndPointSecurityRequirement[] s_GetPlantsSecurityRequirements =
+ new global::AssemblyAI.EndPointSecurityRequirement[]
+ { s_GetPlantsSecurityRequirement0,
+ };
+ partial void PrepareGetPlantsArguments(
global::System.Net.Http.HttpClient httpClient,
- ref int expiresInSeconds,
- ref int? maxSessionDurationSeconds);
- partial void PrepareGenerateStreamingTokenRequest(
+ ref int? limit);
+ partial void PrepareGetPlantsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- int expiresInSeconds,
- int? maxSessionDurationSeconds);
- partial void ProcessGenerateStreamingTokenResponse(
+ int? limit);
+ partial void ProcessGetPlantsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessGenerateStreamingTokenResponseContent(
+ partial void ProcessGetPlantsResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
///
- /// Generate temporary streaming token
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Generates a temporary authentication token for use with streaming services. See [Authenticate with a temporary token](https://www.assemblyai.com/docs/streaming/authenticate-with-a-temporary-token) for more details.
+ /// Returns all plants from the system that the user has access to
///
- ///
- ///
- /// Default Value: 10800
- ///
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task GenerateStreamingTokenAsync(
- int expiresInSeconds,
- int? maxSessionDurationSeconds = default,
+ public async global::System.Threading.Tasks.Task> GetPlantsAsync(
+ int? limit = default,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __response = await GenerateStreamingTokenAsResponseAsync(
- expiresInSeconds: expiresInSeconds,
- maxSessionDurationSeconds: maxSessionDurationSeconds,
+ var __response = await GetPlantsAsResponseAsync(
+ limit: limit,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
@@ -76,31 +62,28 @@ partial void ProcessGenerateStreamingTokenResponseContent(
return __response.Body;
}
///
- /// Generate temporary streaming token
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Generates a temporary authentication token for use with streaming services. See [Authenticate with a temporary token](https://www.assemblyai.com/docs/streaming/authenticate-with-a-temporary-token) for more details.
+ /// Returns all plants from the system that the user has access to
///
- ///
- ///
- /// Default Value: 10800
- ///
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task> GenerateStreamingTokenAsResponseAsync(
- int expiresInSeconds,
- int? maxSessionDurationSeconds = default,
+ public async global::System.Threading.Tasks.Task>> GetPlantsAsResponseAsync(
+ int? limit = default,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
- PrepareGenerateStreamingTokenArguments(
+ PrepareGetPlantsArguments(
httpClient: HttpClient,
- expiresInSeconds: ref expiresInSeconds,
- maxSessionDurationSeconds: ref maxSessionDurationSeconds);
+ limit: ref limit);
+
+
+ var __authorizations = global::AssemblyAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetPlantsSecurityRequirements,
+ operationName: "GetPlantsAsync");
using var __timeoutCancellationTokenSource = global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -120,13 +103,10 @@ partial void ProcessGenerateStreamingTokenResponseContent(
{
var __pathBuilder = new global::AssemblyAI.PathBuilder(
- path: "/v3/token",
- baseUri: ResolveBaseUri(
- servers: s_GenerateStreamingTokenServers,
- defaultBaseUrl: "https://api.assemblyai.com/"));
+ path: "/plants",
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
- .AddRequiredParameter("expires_in_seconds", expiresInSeconds.ToString()!)
- .AddOptionalParameter("max_session_duration_seconds", maxSessionDurationSeconds?.ToString())
+ .AddOptionalParameter("limit", limit?.ToString())
;
var __path = __pathBuilder.ToString();
__path = global::AssemblyAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -140,6 +120,23 @@ partial void ProcessGenerateStreamingTokenResponseContent(
__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" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __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);
+ }
+ }
global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
clientHeaders: Options.Headers,
@@ -148,11 +145,10 @@ partial void ProcessGenerateStreamingTokenResponseContent(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareGenerateStreamingTokenRequest(
+ PrepareGetPlantsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- expiresInSeconds: expiresInSeconds!,
- maxSessionDurationSeconds: maxSessionDurationSeconds);
+ limit: limit);
return __httpRequest;
}
@@ -169,9 +165,9 @@ partial void ProcessGenerateStreamingTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateStreamingToken",
- methodName: "GenerateStreamingTokenAsync",
- pathTemplate: "\"/v3/token\"",
+ operationId: "getPlants",
+ methodName: "GetPlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -203,9 +199,9 @@ partial void ProcessGenerateStreamingTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateStreamingToken",
- methodName: "GenerateStreamingTokenAsync",
- pathTemplate: "\"/v3/token\"",
+ operationId: "getPlants",
+ methodName: "GetPlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -244,9 +240,9 @@ partial void ProcessGenerateStreamingTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateStreamingToken",
- methodName: "GenerateStreamingTokenAsync",
- pathTemplate: "\"/v3/token\"",
+ operationId: "getPlants",
+ methodName: "GetPlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -284,7 +280,7 @@ partial void ProcessGenerateStreamingTokenResponseContent(
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessGenerateStreamingTokenResponse(
+ ProcessGetPlantsResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -292,9 +288,9 @@ partial void ProcessGenerateStreamingTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateStreamingToken",
- methodName: "GenerateStreamingTokenAsync",
- pathTemplate: "\"/v3/token\"",
+ operationId: "getPlants",
+ methodName: "GetPlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -314,9 +310,9 @@ partial void ProcessGenerateStreamingTokenResponseContent(
await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "GenerateStreamingToken",
- methodName: "GenerateStreamingTokenAsync",
- pathTemplate: "\"/v3/token\"",
+ operationId: "getPlants",
+ methodName: "GetPlantsAsync",
+ pathTemplate: "\"/plants\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -331,7 +327,7 @@ partial void ProcessGenerateStreamingTokenResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
- // Bad Request - Invalid parameters
+ // Unexpected error
if ((int)__response.StatusCode == 400)
{
string? __content_400 = null;
@@ -368,117 +364,6 @@ partial void ProcessGenerateStreamingTokenResponseContent(
h => h.Key,
h => h.Value));
}
- // Unauthorized - Invalid or missing API key
- if ((int)__response.StatusCode == 401)
- {
- string? __content_401 = null;
- global::System.Exception? __exception_401 = null;
- global::AssemblyAI.Error? __value_401 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- else
- {
- __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_401 = __ex;
- }
-
-
- throw global::AssemblyAI.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_401,
- responseBody: __content_401,
- responseObject: __value_401,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- // Too Many Requests - Rate limit exceeded
- if ((int)__response.StatusCode == 429)
- {
- string? __content_429 = null;
- global::System.Exception? __exception_429 = null;
- global::AssemblyAI.Error? __value_429 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- else
- {
- __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_429 = __ex;
- }
-
-
- throw global::AssemblyAI.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_429,
- responseBody: __content_429,
- responseObject: __value_429,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- // Internal Server Error
- if ((int)__response.StatusCode == 500)
- {
- string? __content_500 = null;
- global::System.Exception? __exception_500 = null;
- global::AssemblyAI.Error? __value_500 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- else
- {
- __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_500 = __ex;
- }
-
-
- throw global::AssemblyAI.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_500,
- responseBody: __content_500,
- responseObject: __value_500,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
if (__effectiveReadResponseAsString)
{
@@ -492,7 +377,7 @@ partial void ProcessGenerateStreamingTokenResponseContent(
client: HttpClient,
response: __response,
content: ref __content);
- ProcessGenerateStreamingTokenResponseContent(
+ ProcessGetPlantsResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
@@ -501,9 +386,9 @@ partial void ProcessGenerateStreamingTokenResponseContent(
{
__response.EnsureSuccessStatusCode();
- var __value = global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::AssemblyAI.AutoSDKHttpResponse(
+ return new global::AssemblyAI.AutoSDKHttpResponse>(
statusCode: __response.StatusCode,
headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
@@ -533,9 +418,9 @@ partial void ProcessGenerateStreamingTokenResponseContent(
#endif
).ConfigureAwait(false);
- var __value = await global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::AssemblyAI.AutoSDKHttpResponse(
+ return new global::AssemblyAI.AutoSDKHttpResponse>(
statusCode: __response.StatusCode,
headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.g.cs
index c7750b1..ffe6451 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.g.cs
@@ -4,6 +4,7 @@
namespace AssemblyAI
{
///
+ /// A sample API that uses a plant store as an example to demonstrate features in the OpenAPI specification
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
///
@@ -12,7 +13,7 @@ public sealed partial class AssemblyAIClient : global::AssemblyAI.IAssemblyAICli
///
///
///
- public const string DefaultBaseUrl = "https://api.assemblyai.com/";
+ public const string DefaultBaseUrl = "http://sandbox.mintlify.com/";
private bool _disposeHttpClient = true;
@@ -20,7 +21,7 @@ public sealed partial class AssemblyAIClient : global::AssemblyAI.IAssemblyAICli
public global::System.Net.Http.HttpClient HttpClient { get; }
///
- public System.Uri? BaseUri => ResolveDisplayedBaseUri();
+ public System.Uri? BaseUri => HttpClient.BaseAddress;
///
public global::System.Collections.Generic.List Authorizations { get; }
@@ -33,93 +34,12 @@ public sealed partial class AssemblyAIClient : global::AssemblyAI.IAssemblyAICli
///
public global::AssemblyAI.AutoSDKClientOptions Options { get; }
-
-
- internal global::AssemblyAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::AssemblyAI.AutoSDKServerConfiguration();
///
///
///
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::AssemblyAI.SourceGenerationContext.Default;
- ///
- ///
- ///
- public SubpackageFilesClient SubpackageFiles => new SubpackageFilesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
- {
- ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
- AutoSDKServerConfiguration = AutoSDKServerConfiguration,
- };
-
- ///
- ///
- ///
- public SubpackageStreamingApiClient SubpackageStreamingApi => new SubpackageStreamingApiClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
- {
- ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
- AutoSDKServerConfiguration = AutoSDKServerConfiguration,
- };
-
- ///
- ///
- ///
- public SubpackageTranscriptsClient SubpackageTranscripts => new SubpackageTranscriptsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
- {
- ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
- AutoSDKServerConfiguration = AutoSDKServerConfiguration,
- };
-
- ///
- ///
- ///
- public SubpackageVoiceAgentApiClient SubpackageVoiceAgentApi => new SubpackageVoiceAgentApiClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
- {
- ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
- AutoSDKServerConfiguration = AutoSDKServerConfiguration,
- };
-
-
- private static readonly global::AssemblyAI.AutoSDKServer[] s_availableServers = new global::AssemblyAI.AutoSDKServer[]
- { new global::AssemblyAI.AutoSDKServer(
- id: "https-api-assemblyai-com",
- name: "api.assemblyai.com",
- url: "https://api.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-llm-gateway-assemblyai-com-v1",
- name: "llm-gateway.assemblyai.com v1",
- url: "https://llm-gateway.assemblyai.com/v1",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-streaming-assemblyai-com",
- name: "streaming.assemblyai.com",
- url: "https://streaming.assemblyai.com/",
- description: ""),
- new global::AssemblyAI.AutoSDKServer(
- id: "https-agents-assemblyai-com",
- name: "agents.assemblyai.com",
- url: "https://agents.assemblyai.com/",
- description: ""),
- };
-
- ///
- /// The server options available for this client.
- ///
- public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers;
-
- ///
- /// The currently selected server for this client, if any.
- ///
- public global::AssemblyAI.AutoSDKServer? SelectedServer
- {
- get => ResolveSelectedServer();
- set => SelectServer(value);
- }
-
///
/// Creates a new instance of the AssemblyAIClient.
/// If no httpClient is provided, a new one will be created.
@@ -182,16 +102,11 @@ public AssemblyAIClient(
{
HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
- if (baseUri is not null)
- {
- HttpClient.BaseAddress ??= baseUri;
- }
+ HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List();
Options = options ?? new global::AssemblyAI.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
- AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress;
-
Initialized(HttpClient);
}
@@ -218,117 +133,5 @@ partial void ProcessResponseContent(
global::System.Net.Http.HttpClient client,
global::System.Net.Http.HttpResponseMessage response,
ref string content);
-
-
- ///
- /// Selects one of the generated server options by id.
- ///
- public bool TrySelectServer(string serverId)
- {
- if (string.IsNullOrWhiteSpace(serverId))
- {
- return false;
- }
-
- foreach (var server in s_availableServers)
- {
- if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase))
- {
- AutoSDKServerConfiguration.SelectedServer = server;
- AutoSDKServerConfiguration.ExplicitBaseUri = null;
- return true;
- }
- }
-
- return false;
- }
-
- ///
- /// Clears the currently selected server.
- ///
- public void ClearSelectedServer()
- {
- AutoSDKServerConfiguration.SelectedServer = null;
- }
-
- private global::AssemblyAI.AutoSDKServer? ResolveSelectedServer()
- {
- var selectedServer = AutoSDKServerConfiguration.SelectedServer;
- if (selectedServer is null)
- {
- return null;
- }
-
- foreach (var server in s_availableServers)
- {
- if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal))
- {
- return server;
- }
- }
-
- return null;
- }
-
- private void SelectServer(global::AssemblyAI.AutoSDKServer? server)
- {
- if (server is null)
- {
- AutoSDKServerConfiguration.SelectedServer = null;
- return;
- }
-
- foreach (var candidate in s_availableServers)
- {
- if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal))
- {
- AutoSDKServerConfiguration.SelectedServer = candidate;
- AutoSDKServerConfiguration.ExplicitBaseUri = null;
- return;
- }
- }
-
- throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server));
- }
-
- private global::System.Uri? ResolveDisplayedBaseUri()
- {
- if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri)
- {
- return explicitBaseUri;
- }
-
- return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
- }
-
- private global::System.Uri? ResolveBaseUri(
- global::AssemblyAI.AutoSDKServer[] servers,
- string defaultBaseUrl)
- {
- if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri)
- {
- return explicitBaseUri;
- }
-
- if (AutoSDKServerConfiguration.SelectedServer is global::AssemblyAI.AutoSDKServer selectedServer)
- {
- foreach (var server in servers)
- {
- if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal))
- {
- return server.Uri;
- }
- }
- }
-
- if (servers.Length > 0)
- {
- return servers[0].Uri;
- }
-
- return string.IsNullOrWhiteSpace(defaultBaseUrl)
- ? HttpClient.BaseAddress
- : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute);
- }
}
}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.Authorizations.Bearer.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.Authorizations.Bearer.g.cs
new file mode 100644
index 0000000..421fcad
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.Authorizations.Bearer.g.cs
@@ -0,0 +1,16 @@
+
+#nullable enable
+
+namespace AssemblyAI
+{
+ public partial interface IAssemblyAIClient
+ {
+ ///
+ /// Authorize using bearer authentication.
+ ///
+ ///
+
+ public void AuthorizeUsingBearer(
+ string apiKey);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.CreateChatCompletion.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.CreateChatCompletion.g.cs
deleted file mode 100644
index 56db889..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.CreateChatCompletion.g.cs
+++ /dev/null
@@ -1,120 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface IAssemblyAIClient
- {
- ///
- /// Create a chat completion
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Generates a response from a model given a prompt or a series of messages.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task CreateChatCompletionAsync(
- string authorization,
-
- global::AssemblyAI.LLMGatewayRequest request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Create a chat completion
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Generates a response from a model given a prompt or a series of messages.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> CreateChatCompletionAsResponseAsync(
- string authorization,
-
- global::AssemblyAI.LLMGatewayRequest request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Create a chat completion
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Generates a response from a model given a prompt or a series of messages.
- ///
- ///
- ///
- /// A list of messages comprising the conversation so far.
- ///
- ///
- /// A simple string prompt. The API will automatically convert this into a user message.
- ///
- ///
- /// Optional. The ID of an AssemblyAI transcript whose text replaces the first `{{ transcript }}` tag in the prompt. See [Inject a transcript by ID](https://www.assemblyai.com/docs/llm-gateway/chat-completions#inject-a-transcript-by-id) for substitution rules and edge cases.
- ///
- ///
- /// The ID of the model to use for this request. See [LLM Gateway Overview](https://www.assemblyai.com/docs/llm-gateway/overview#available-models) for available models.
- ///
- ///
- /// The maximum number of tokens to generate in the completion. Default is 1000.
- /// Default Value: 1000
- ///
- ///
- /// Controls randomness. Lower values produce more deterministic results.
- ///
- ///
- /// When true, responses are streamed as server-sent events (SSE). Supported on OpenAI models only.
- /// Default Value: false
- ///
- ///
- /// A list of tools the model may call.
- ///
- ///
- /// Controls which (if any) function is called by the model.
- ///
- ///
- /// Specifies the format of the model's response. Use this to constrain the model to output valid JSON matching a schema. Supported by OpenAI (GPT-4.1, GPT-5.x), Gemini, and Claude models. Not supported by gpt-oss models.
- ///
- ///
- /// An array of fallback objects. Each object must include a `model` and can optionally override any field from the original request. If the primary model fails, the LLM Gateway tries each fallback in order until one succeeds. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details.
- ///
- ///
- /// Configuration for fallback behavior, including retry and depth settings. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details.
- ///
- ///
- /// Controls reasoning behavior for supported models. OpenAI-compatible models, Gemini 3+ models, and Anthropic models support reasoning. Use `effort` to set the reasoning effort level, or `max_tokens` to cap the number of tokens the model can use for reasoning.
- ///
- ///
- /// An ordered list of post-processing steps to apply to the model's response after generation. Currently supports `json-repair`, which automatically fixes malformed JSON in LLM Gateway content responses. See [Post-processing](https://www.assemblyai.com/docs/llm-gateway/post-processing) for details.
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task CreateChatCompletionAsync(
- string authorization,
- string model,
- global::System.Collections.Generic.IList? messages = default,
- string? prompt = default,
- string? transcriptId = default,
- int? maxTokens = default,
- double? temperature = default,
- bool? stream = default,
- global::System.Collections.Generic.IList? tools = default,
- global::AssemblyAI.ToolChoice? toolChoice = default,
- global::AssemblyAI.ResponseFormat? responseFormat = default,
- global::System.Collections.Generic.IList? fallbacks = default,
- global::AssemblyAI.FallbackConfig? fallbackConfig = default,
- global::AssemblyAI.Reasoning? reasoning = default,
- global::System.Collections.Generic.IList? postProcessingSteps = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.CreatePlants.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.CreatePlants.g.cs
new file mode 100644
index 0000000..85dce14
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.CreatePlants.g.cs
@@ -0,0 +1,41 @@
+#nullable enable
+
+namespace AssemblyAI
+{
+ public partial interface IAssemblyAIClient
+ {
+ ///
+ /// Creates a new plant in the store
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreatePlantsAsync(
+
+ global::AssemblyAI.NewPlant request,
+ global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Creates a new plant in the store
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreatePlantsAsResponseAsync(
+
+ global::AssemblyAI.NewPlant request,
+ global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Creates a new plant in the store
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreatePlantsAsync(
+ global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.CreateSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.CreateSpeechUnderstanding.g.cs
deleted file mode 100644
index 5973f97..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.CreateSpeechUnderstanding.g.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface IAssemblyAIClient
- {
- ///
- /// Process speech understanding
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Perform various speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting).
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task CreateSpeechUnderstandingAsync(
- string authorization,
-
- global::AssemblyAI.UnderstandingRequest request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Process speech understanding
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Perform various speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting).
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> CreateSpeechUnderstandingAsResponseAsync(
- string authorization,
-
- global::AssemblyAI.UnderstandingRequest request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Process speech understanding
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>
- /// Perform various speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting).
- ///
- ///
- ///
- /// The ID of the transcript to process.
- ///
- ///
- /// The speech understanding task to perform. Supports [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). Click into the request object below to see the available options.
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task CreateSpeechUnderstandingAsync(
- string authorization,
- string transcriptId,
- global::AssemblyAI.UnderstandingRequestSpeechUnderstanding speechUnderstanding,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.DeletePlantsById.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.DeletePlantsById.g.cs
new file mode 100644
index 0000000..e48c227
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.DeletePlantsById.g.cs
@@ -0,0 +1,30 @@
+#nullable enable
+
+namespace AssemblyAI
+{
+ public partial interface IAssemblyAIClient
+ {
+ ///
+ /// Deletes a single plant based on the ID supplied
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeletePlantsByIdAsync(
+ long id,
+ global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Deletes a single plant based on the ID supplied
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeletePlantsByIdAsResponseAsync(
+ long id,
+ global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.GetPlants.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.GetPlants.g.cs
new file mode 100644
index 0000000..b30ae54
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.GetPlants.g.cs
@@ -0,0 +1,30 @@
+#nullable enable
+
+namespace AssemblyAI
+{
+ public partial interface IAssemblyAIClient
+ {
+ ///
+ /// Returns all plants from the system that the user has access to
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetPlantsAsync(
+ int? limit = default,
+ global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Returns all plants from the system that the user has access to
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task>> GetPlantsAsResponseAsync(
+ int? limit = default,
+ global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs
index 19ae5d7..1a2dbad 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs
@@ -4,6 +4,7 @@
namespace AssemblyAI
{
///
+ /// A sample API that uses a plant store as an example to demonstrate features in the OpenAPI specification
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
///
@@ -19,27 +20,6 @@ public partial interface IAssemblyAIClient : global::System.IDisposable
///
public System.Uri? BaseUri { get; }
-
- ///
- /// The server options available for this client.
- ///
- public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; }
-
- ///
- /// The currently selected server for this client, if any.
- ///
- public global::AssemblyAI.AutoSDKServer? SelectedServer { get; set; }
-
- ///
- /// Selects one of the generated server options by id.
- ///
- public bool TrySelectServer(string serverId);
-
- ///
- /// Clears the currently selected server.
- ///
- public void ClearSelectedServer();
-
///
/// The authorizations to use for the requests.
///
@@ -65,25 +45,5 @@ public partial interface IAssemblyAIClient : global::System.IDisposable
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
- ///
- ///
- ///
- public SubpackageFilesClient SubpackageFiles { get; }
-
- ///
- ///
- ///
- public SubpackageStreamingApiClient SubpackageStreamingApi { get; }
-
- ///
- ///
- ///
- public SubpackageTranscriptsClient SubpackageTranscripts { get; }
-
- ///
- ///
- ///
- public SubpackageVoiceAgentApiClient SubpackageVoiceAgentApi { get; }
-
}
}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageFilesClient.Upload.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageFilesClient.Upload.g.cs
deleted file mode 100644
index fe3a22d..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageFilesClient.Upload.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageFilesClient
- {
- ///
- /// Upload a media file
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Upload a media file to AssemblyAI's servers.
- /// <Note>To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// <Warning>Requests to transcribe uploaded files must use an API key from the same project as the key that was used to upload the file. If you use an API key from a different project you will get a `403` error and "Cannot access uploaded file" message.</Warning>
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task UploadAsync(
- string authorization,
-
- byte[] request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Upload a media file
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Upload a media file to AssemblyAI's servers.
- /// <Note>To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// <Warning>Requests to transcribe uploaded files must use an API key from the same project as the key that was used to upload the file. If you use an API key from a different project you will get a `403` error and "Cannot access uploaded file" message.</Warning>
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> UploadAsResponseAsync(
- string authorization,
-
- byte[] request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageFilesClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageFilesClient.g.cs
deleted file mode 100644
index ef48a52..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageFilesClient.g.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface ISubpackageFilesClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
-
- ///
- /// The server options available for this client.
- ///
- public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; }
-
- ///
- /// The currently selected server for this client, if any.
- ///
- public global::AssemblyAI.AutoSDKServer? SelectedServer { get; set; }
-
- ///
- /// Selects one of the generated server options by id.
- ///
- public bool TrySelectServer(string serverId);
-
- ///
- /// Clears the currently selected server.
- ///
- public void ClearSelectedServer();
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::AssemblyAI.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageStreamingApiClient.GenerateStreamingToken.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageStreamingApiClient.GenerateStreamingToken.g.cs
deleted file mode 100644
index 5e58366..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageStreamingApiClient.GenerateStreamingToken.g.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageStreamingApiClient
- {
- ///
- /// Generate temporary streaming token
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Generates a temporary authentication token for use with streaming services. See [Authenticate with a temporary token](https://www.assemblyai.com/docs/streaming/authenticate-with-a-temporary-token) for more details.
- ///
- ///
- ///
- /// Default Value: 10800
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task GenerateStreamingTokenAsync(
- int expiresInSeconds,
- int? maxSessionDurationSeconds = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Generate temporary streaming token
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Generates a temporary authentication token for use with streaming services. See [Authenticate with a temporary token](https://www.assemblyai.com/docs/streaming/authenticate-with-a-temporary-token) for more details.
- ///
- ///
- ///
- /// Default Value: 10800
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> GenerateStreamingTokenAsResponseAsync(
- int expiresInSeconds,
- int? maxSessionDurationSeconds = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageStreamingApiClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageStreamingApiClient.g.cs
deleted file mode 100644
index b9888ab..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageStreamingApiClient.g.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface ISubpackageStreamingApiClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
-
- ///
- /// The server options available for this client.
- ///
- public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; }
-
- ///
- /// The currently selected server for this client, if any.
- ///
- public global::AssemblyAI.AutoSDKServer? SelectedServer { get; set; }
-
- ///
- /// Selects one of the generated server options by id.
- ///
- public bool TrySelectServer(string serverId);
-
- ///
- /// Clears the currently selected server.
- ///
- public void ClearSelectedServer();
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::AssemblyAI.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.Delete.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.Delete.g.cs
deleted file mode 100644
index 343e546..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.Delete.g.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageTranscriptsClient
- {
- ///
- /// Delete transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To delete your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Remove the data from the transcript and mark it as deleted.
- /// <Warning>Files uploaded via the `/upload` endpoint are immediately deleted alongside the transcript when you make a DELETE request, ensuring your data is removed from our systems right away.</Warning>
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task DeleteAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Delete transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To delete your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Remove the data from the transcript and mark it as deleted.
- /// <Warning>Files uploaded via the `/upload` endpoint are immediately deleted alongside the transcript when you make a DELETE request, ensuring your data is removed from our systems right away.</Warning>
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> DeleteAsResponseAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.Get.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.Get.g.cs
deleted file mode 100644
index 6379497..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.Get.g.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageTranscriptsClient
- {
- ///
- /// Get transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Get the transcript resource. The transcript is ready when the "status" is "completed".
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task GetAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Get transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Get the transcript resource. The transcript is ready when the "status" is "completed".
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> GetAsResponseAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetParagraphs.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetParagraphs.g.cs
deleted file mode 100644
index e0e5677..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetParagraphs.g.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageTranscriptsClient
- {
- ///
- /// Get paragraphs in transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Get the transcript split by paragraphs. The API will attempt to semantically segment your transcript into paragraphs to create more reader-friendly transcripts.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task GetParagraphsAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Get paragraphs in transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Get the transcript split by paragraphs. The API will attempt to semantically segment your transcript into paragraphs to create more reader-friendly transcripts.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> GetParagraphsAsResponseAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetRedactedAudio.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetRedactedAudio.g.cs
deleted file mode 100644
index b6829f8..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetRedactedAudio.g.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageTranscriptsClient
- {
- ///
- /// Get redacted audio
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve the redacted audio on the EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com` in the `GET` request above.</Note>
- /// <Note>Redacted audio files are only available for 24 hours. Make sure to download the file within this time frame.</Note>
- /// Retrieve the redacted audio object containing the status and URL to the redacted audio.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task GetRedactedAudioAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Get redacted audio
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve the redacted audio on the EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com` in the `GET` request above.</Note>
- /// <Note>Redacted audio files are only available for 24 hours. Make sure to download the file within this time frame.</Note>
- /// Retrieve the redacted audio object containing the status and URL to the redacted audio.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> GetRedactedAudioAsResponseAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetSentences.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetSentences.g.cs
deleted file mode 100644
index e485fb0..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetSentences.g.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageTranscriptsClient
- {
- ///
- /// Get sentences in transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Get the transcript split by sentences. The API will attempt to semantically segment the transcript into sentences to create more reader-friendly transcripts.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task GetSentencesAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Get sentences in transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Get the transcript split by sentences. The API will attempt to semantically segment the transcript into sentences to create more reader-friendly transcripts.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> GetSentencesAsResponseAsync(
- string transcriptId,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetSubtitles.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetSubtitles.g.cs
deleted file mode 100644
index 730fc18..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.GetSubtitles.g.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageTranscriptsClient
- {
- ///
- /// Get subtitles for transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Export your transcript in SRT or VTT format to use with a video player for subtitles and closed captions.
- ///
- ///
- ///
- /// Format of the subtitles
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task GetSubtitlesAsync(
- string transcriptId,
- global::AssemblyAI.SubtitleFormat subtitleFormat,
- string authorization,
- int? charsPerCaption = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Get subtitles for transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Export your transcript in SRT or VTT format to use with a video player for subtitles and closed captions.
- ///
- ///
- ///
- /// Format of the subtitles
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> GetSubtitlesAsResponseAsync(
- string transcriptId,
- global::AssemblyAI.SubtitleFormat subtitleFormat,
- string authorization,
- int? charsPerCaption = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.List.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.List.g.cs
deleted file mode 100644
index 57807cb..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.List.g.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageTranscriptsClient
- {
- ///
- /// List transcripts
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Retrieve a list of transcripts you created.
- /// Transcripts are sorted from newest to oldest and can be retrieved for the last 90 days of usage. The previous URL always points to a page with older transcripts.
- /// If you need to retrieve transcripts from more than 90 days ago please reach out to our Support team at support@assemblyai.com.
- /// **Pagination**
- /// This endpoint returns paginated results. The response includes a `page_details` object with the following properties:
- /// - `page_details.limit` - Maximum number of transcripts per page.
- /// - `page_details.result_count` - Total number of transcripts returned on the current page.
- /// - `page_details.current_url` - URL to the current page.
- /// - `page_details.prev_url` - URL to the previous page of older transcripts.
- /// - `page_details.next_url` - URL to the next page of newer transcripts.
- ///
- ///
- /// Default Value: 10
- ///
- ///
- /// The status of your transcript. Possible values are queued, processing, completed, or error.
- ///
- ///
- ///
- ///
- ///
- /// Default Value: false
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task ListAsync(
- string authorization,
- int? limit = default,
- global::AssemblyAI.TranscriptStatus? status = default,
- global::System.DateTime? createdOn = default,
- global::System.Guid? beforeId = default,
- global::System.Guid? afterId = default,
- bool? throttledOnly = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// List transcripts
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Retrieve a list of transcripts you created.
- /// Transcripts are sorted from newest to oldest and can be retrieved for the last 90 days of usage. The previous URL always points to a page with older transcripts.
- /// If you need to retrieve transcripts from more than 90 days ago please reach out to our Support team at support@assemblyai.com.
- /// **Pagination**
- /// This endpoint returns paginated results. The response includes a `page_details` object with the following properties:
- /// - `page_details.limit` - Maximum number of transcripts per page.
- /// - `page_details.result_count` - Total number of transcripts returned on the current page.
- /// - `page_details.current_url` - URL to the current page.
- /// - `page_details.prev_url` - URL to the previous page of older transcripts.
- /// - `page_details.next_url` - URL to the next page of newer transcripts.
- ///
- ///
- /// Default Value: 10
- ///
- ///
- /// The status of your transcript. Possible values are queued, processing, completed, or error.
- ///
- ///
- ///
- ///
- ///
- /// Default Value: false
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> ListAsResponseAsync(
- string authorization,
- int? limit = default,
- global::AssemblyAI.TranscriptStatus? status = default,
- global::System.DateTime? createdOn = default,
- global::System.Guid? beforeId = default,
- global::System.Guid? afterId = default,
- bool? throttledOnly = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.Submit.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.Submit.g.cs
deleted file mode 100644
index bfea91d..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.Submit.g.cs
+++ /dev/null
@@ -1,289 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageTranscriptsClient
- {
- ///
- /// Transcribe audio
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for transcription, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// <Tip>Building a load test or submitting a large batch? [See our guide →](/docs/pre-recorded-audio/guides/bulk-transcription-and-load-tests-at-scale)</Tip>
- /// Create a transcript from a media file that is accessible via a URL.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task SubmitAsync(
- string authorization,
-
- global::AssemblyAI.TranscriptParams request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Transcribe audio
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for transcription, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// <Tip>Building a load test or submitting a large batch? [See our guide →](/docs/pre-recorded-audio/guides/bulk-transcription-and-load-tests-at-scale)</Tip>
- /// Create a transcript from a media file that is accessible via a URL.
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> SubmitAsResponseAsync(
- string authorization,
-
- global::AssemblyAI.TranscriptParams request,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Transcribe audio
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To use our EU server for transcription, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// <Tip>Building a load test or submitting a large batch? [See our guide →](/docs/pre-recorded-audio/guides/bulk-transcription-and-load-tests-at-scale)</Tip>
- /// Create a transcript from a media file that is accessible via a URL.
- ///
- ///
- ///
- /// The point in time, in milliseconds, to stop transcribing in your media file. See [Set the start and end of the transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) for more details.
- ///
- ///
- /// The point in time, in milliseconds, to begin transcribing in your media file. See [Set the start and end of the transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) for more details.
- ///
- ///
- /// Enable [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/create-summarized-chapters), can be true or false. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/overview) instead for more flexible chapter summaries. See the [updated Auto Chapters page](https://www.assemblyai.com/docs/speech-understanding/create-summarized-chapters) for details.
- /// Note: This parameter is only supported for the Universal-2 model.
- /// Default Value: false
- ///
- ///
- /// Enable [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights), either true or false
- /// Default Value: false
- ///
- ///
- /// Enable [Content Moderation](https://www.assemblyai.com/docs/content-moderation), can be true or false
- /// Default Value: false
- ///
- ///
- /// The confidence threshold for the [Content Moderation](https://www.assemblyai.com/docs/content-moderation) model. Values must be between 25 and 100.
- /// Default Value: 50
- ///
- ///
- /// Customize how words are spelled and formatted using to and from values. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details.
- ///
- ///
- /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3 Pro and Universal-2.
- /// Default Value: false
- ///
- ///
- /// Enable domain-specific transcription models to improve accuracy for specialized terminology. Set to `"medical-v1"` to enable [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) for improved accuracy of medical terms such as medications, procedures, conditions, and dosages.
- /// Supported languages: English (`en`), Spanish (`es`), German (`de`), French (`fr`). If used with an unsupported language, the parameter is ignored and a warning is returned.
- ///
- ///
- /// Enable [Entity Detection](https://www.assemblyai.com/docs/speech-understanding/detect-entities-in-transcript), can be true or false
- /// Default Value: false
- ///
- ///
- /// Filter profanity from the transcribed text, can be true or false. See [Profanity Filtering](https://www.assemblyai.com/docs/profanity-filtering) for more details.
- /// Default Value: false
- ///
- ///
- /// Enable [Text Formatting](https://www.assemblyai.com/docs/pre-recorded-audio), can be true or false
- /// Default Value: true
- ///
- ///
- /// Enable [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics), can be true or false
- /// Default Value: false
- ///
- ///
- /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/keyterms-prompting) for more details.
- ///
- ///
- /// The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages).
- /// The default value is 'en_us'.
- ///
- ///
- /// The language codes of your audio file. Used for [Code switching](/docs/speech-to-text/pre-recorded-audio/code-switching)
- /// One of the values specified must be `en`.
- ///
- ///
- /// The confidence threshold for the automatically detected language.
- /// An error will be returned if the language confidence is below this threshold.
- /// Defaults to 0. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
- ///
- ///
- /// Enable [Automatic language detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection), either true or false.
- /// Default Value: false
- ///
- ///
- /// Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection).
- ///
- ///
- /// Enable [Multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) transcription, can be true or false.
- /// Default Value: false
- ///
- ///
- /// Provide natural language prompting of up to 1,500 words of contextual information to the model. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for best practices.
- /// Note: This parameter is only supported for the Universal-3 Pro model.
- ///
- ///
- /// Enable [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio), can be true or false
- /// Default Value: true
- ///
- ///
- /// Redact PII from the transcribed text using the Redact PII model, can be true or false. See [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
- /// Default Value: false
- ///
- ///
- /// Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details.
- /// Default Value: false
- ///
- ///
- /// Specify options for [PII redacted audio](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) files.
- ///
- ///
- /// Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details.
- ///
- ///
- /// The list of PII Redaction policies to enable. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
- ///
- ///
- /// The replacement logic for detected PII, can be `entity_type` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
- ///
- ///
- /// When set to `true`, returns the original unredacted transcript alongside the redacted one in the same response. Requires `redact_pii` to be `true`, otherwise a 400 error is returned.
- /// When enabled, the response includes the additional fields `unredacted_text`, `unredacted_words`, and `unredacted_utterances`. The existing `text`, `words`, and `utterances` fields remain fully redacted. When disabled (default), the response is unchanged and contains only the redacted transcript. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
- /// Default Value: false
- ///
- ///
- /// Enable [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/analyze-sentiment-of-speech), can be true or false
- /// Default Value: false
- ///
- ///
- /// Enable [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers), can be true or false
- /// Default Value: false
- ///
- ///
- /// Specify options for [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers). Use this to set a range of possible speakers.
- ///
- ///
- /// Tells the speaker label model how many speakers it should attempt to identify. See [Set number of speakers expected](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-number-of-speakers-expected) for more details.
- ///
- ///
- /// List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior.
- ///
- ///
- /// Reject audio files that contain less than this fraction of speech.
- /// Valid values are in the range [0, 1] inclusive. See [Speech Threshold](https://www.assemblyai.com/docs/speech-threshold) for more details.
- ///
- ///
- /// Enable speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). See the task-specific docs for available options and configuration.
- ///
- ///
- /// Enable [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts), can be true or false. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/overview) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) for details.
- /// Note: This parameter is only supported for the Universal-2 model.
- /// Default Value: false
- ///
- ///
- /// The model to summarize the transcript. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/overview) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) for details.
- ///
- ///
- /// The type of summary. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/overview) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) for details.
- ///
- ///
- /// Universal-3 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
- /// Note: This parameter is only supported for the Universal-3 Pro model.
- ///
- ///
- /// Control the amount of randomness injected into the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
- /// Note: This parameter can only be used with the Universal-3 Pro model.
- /// Default Value: 0
- ///
- ///
- /// The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests
- ///
- ///
- /// The header value to send back with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests for added security
- ///
- ///
- /// The URL to which we send [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests.
- ///
- ///
- /// This parameter does not currently have any functionality attached to it.
- /// Default Value: false
- ///
- ///
- /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model).
- ///
- ///
- /// This parameter does not currently have any functionality attached to it.
- ///
- ///
- /// The URL of the audio or video file to transcribe.
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task SubmitAsync(
- string authorization,
- global::System.Collections.Generic.IList speechModels,
- string audioUrl,
- int? audioEndAt = default,
- int? audioStartFrom = default,
- bool? autoChapters = default,
- bool? autoHighlights = default,
- bool? contentSafety = default,
- int? contentSafetyConfidence = default,
- global::System.Collections.Generic.IList? customSpelling = default,
- bool? disfluencies = default,
- string? domain = default,
- bool? entityDetection = default,
- bool? filterProfanity = default,
- bool? formatText = default,
- bool? iabCategories = default,
- global::System.Collections.Generic.IList? keytermsPrompt = default,
- global::AssemblyAI.OneOf? languageCode = default,
- global::System.Collections.Generic.IList? languageCodes = default,
- double? languageConfidenceThreshold = default,
- bool? languageDetection = default,
- global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? languageDetectionOptions = default,
- bool? multichannel = default,
- string? prompt = default,
- bool? punctuate = default,
- bool? redactPii = default,
- bool? redactPiiAudio = default,
- global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? redactPiiAudioOptions = default,
- global::AssemblyAI.RedactPiiAudioQuality? redactPiiAudioQuality = default,
- global::System.Collections.Generic.IList? redactPiiPolicies = default,
- global::AssemblyAI.OneOf? redactPiiSub = default,
- bool? redactPiiReturnUnredacted = default,
- bool? sentimentAnalysis = default,
- bool? speakerLabels = default,
- global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? speakerOptions = default,
- int? speakersExpected = default,
- double? speechThreshold = default,
- global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? speechUnderstanding = default,
- bool? summarization = default,
- global::AssemblyAI.SummaryModel? summaryModel = default,
- global::AssemblyAI.SummaryType? summaryType = default,
- global::AssemblyAI.OneOf? removeAudioTags = default,
- double? temperature = default,
- string? webhookAuthHeaderName = default,
- string? webhookAuthHeaderValue = default,
- string? webhookUrl = default,
- bool? customTopics = default,
- global::AssemblyAI.OneOf? speechModel = default,
- global::System.Collections.Generic.IList? topics = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.WordSearch.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.WordSearch.g.cs
deleted file mode 100644
index 7ff4fda..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.WordSearch.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageTranscriptsClient
- {
- ///
- /// Search words in transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To search through a transcription created on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Search through the transcript for keywords. You can search for individual words, numbers, or phrases containing up to five words or numbers.
- ///
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task WordSearchAsync(
- string transcriptId,
- global::System.Collections.Generic.IList words,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Search words in transcript
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// <Note>To search through a transcription created on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Search through the transcript for keywords. You can search for individual words, numbers, or phrases containing up to five words or numbers.
- ///
- ///
- ///
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> WordSearchAsResponseAsync(
- string transcriptId,
- global::System.Collections.Generic.IList words,
- string authorization,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.g.cs
deleted file mode 100644
index 56aae2b..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageTranscriptsClient.g.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface ISubpackageTranscriptsClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
-
- ///
- /// The server options available for this client.
- ///
- public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; }
-
- ///
- /// The currently selected server for this client, if any.
- ///
- public global::AssemblyAI.AutoSDKServer? SelectedServer { get; set; }
-
- ///
- /// Selects one of the generated server options by id.
- ///
- public bool TrySelectServer(string serverId);
-
- ///
- /// Clears the currently selected server.
- ///
- public void ClearSelectedServer();
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::AssemblyAI.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageVoiceAgentApiClient.GenerateVoiceAgentToken.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageVoiceAgentApiClient.GenerateVoiceAgentToken.g.cs
deleted file mode 100644
index 11eafc8..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageVoiceAgentApiClient.GenerateVoiceAgentToken.g.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ISubpackageVoiceAgentApiClient
- {
- ///
- /// Generate temporary Voice Agent token
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Generate a temporary authentication token for the Voice Agent API. Use this to
- /// connect browser or other client-side applications to the Voice Agent API without
- /// exposing your permanent API key. See
- /// [Browser integration](https://www.assemblyai.com/docs/voice-agents/voice-agent-api/browser-integration)
- /// for the full flow.
- /// Each token is one-time use and can only be used for a single session. All usage
- /// is attributed to the API key that generated the token.
- ///
- ///
- ///
- /// Default Value: 10800
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task GenerateVoiceAgentTokenAsync(
- int expiresInSeconds,
- int? maxSessionDurationSeconds = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Generate temporary Voice Agent token
- /// <llms-only>
- /// > For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)
- /// </llms-only>
- /// Generate a temporary authentication token for the Voice Agent API. Use this to
- /// connect browser or other client-side applications to the Voice Agent API without
- /// exposing your permanent API key. See
- /// [Browser integration](https://www.assemblyai.com/docs/voice-agents/voice-agent-api/browser-integration)
- /// for the full flow.
- /// Each token is one-time use and can only be used for a single session. All usage
- /// is attributed to the API key that generated the token.
- ///
- ///
- ///
- /// Default Value: 10800
- ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task> GenerateVoiceAgentTokenAsResponseAsync(
- int expiresInSeconds,
- int? maxSessionDurationSeconds = default,
- global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageVoiceAgentApiClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageVoiceAgentApiClient.g.cs
deleted file mode 100644
index a97865f..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ISubpackageVoiceAgentApiClient.g.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface ISubpackageVoiceAgentApiClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
-
- ///
- /// The server options available for this client.
- ///
- public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; }
-
- ///
- /// The currently selected server for this client, if any.
- ///
- public global::AssemblyAI.AutoSDKServer? SelectedServer { get; set; }
-
- ///
- /// Selects one of the generated server options by id.
- ///
- public bool TrySelectServer(string serverId);
-
- ///
- /// Clears the currently selected server.
- ///
- public void ClearSelectedServer();
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::AssemblyAI.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.AudioIntelligenceModelStatus.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.AudioIntelligenceModelStatus.g.cs
deleted file mode 100644
index cf90642..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.AudioIntelligenceModelStatus.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class AudioIntelligenceModelStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.AudioIntelligenceModelStatus Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.AudioIntelligenceModelStatusExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.AudioIntelligenceModelStatus)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.AudioIntelligenceModelStatus);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.AudioIntelligenceModelStatus value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.AudioIntelligenceModelStatusExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.AudioIntelligenceModelStatusNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.AudioIntelligenceModelStatusNullable.g.cs
deleted file mode 100644
index 878e4e0..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.AudioIntelligenceModelStatusNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class AudioIntelligenceModelStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.AudioIntelligenceModelStatus? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.AudioIntelligenceModelStatusExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.AudioIntelligenceModelStatus)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.AudioIntelligenceModelStatus?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.AudioIntelligenceModelStatus? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.AudioIntelligenceModelStatusExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.CreateSpeechUnderstandingResponse200.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.CreateSpeechUnderstandingResponse200.g.cs
deleted file mode 100644
index 1e4251c..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.CreateSpeechUnderstandingResponse200.g.cs
+++ /dev/null
@@ -1,204 +0,0 @@
-#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public class CreateSpeechUnderstandingResponse200JsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.CreateSpeechUnderstandingResponse200 Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
- var __rawJson = __jsonDocument.RootElement.GetRawText();
- var __jsonProps = new global::System.Collections.Generic.HashSet();
- if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name);
- if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
- }
- }
-
- }
- }
-
- var __score0 = 0;
- if (__jsonProps.Contains("speech_understanding")) __score0++;
- if (__jsonProps.Contains("speech_understanding.request")) __score0++;
- if (__jsonProps.Contains("speech_understanding.response")) __score0++;
- if (__jsonProps.Contains("translated_texts")) __score0++;
- if (__jsonProps.Contains("utterances")) __score0++;
- if (__jsonProps.Contains("words")) __score0++;
- var __score1 = 0;
- if (__jsonProps.Contains("speech_understanding")) __score1++;
- if (__jsonProps.Contains("speech_understanding.request")) __score1++;
- if (__jsonProps.Contains("speech_understanding.response")) __score1++;
- if (__jsonProps.Contains("utterances")) __score1++;
- if (__jsonProps.Contains("words")) __score1++;
- var __score2 = 0;
- if (__jsonProps.Contains("speech_understanding")) __score2++;
- if (__jsonProps.Contains("speech_understanding.request")) __score2++;
- if (__jsonProps.Contains("speech_understanding.response")) __score2++;
- if (__jsonProps.Contains("utterances")) __score2++;
- var __bestScore = 0;
- var __bestIndex = -1;
- if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
- if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
- if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; }
-
- global::AssemblyAI.LLMGatewayTranslationResponse? lLMGatewayTranslationResponse = default;
- global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? lLMGatewaySpeakerIdentificationResponse = default;
- global::AssemblyAI.LLMGatewayCustomFormattingResponse? lLMGatewayCustomFormattingResponse = default;
- if (__bestIndex >= 0)
- {
- if (__bestIndex == 0)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.LLMGatewayTranslationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.LLMGatewayTranslationResponse).Name}");
- lLMGatewayTranslationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 1)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse).Name}");
- lLMGatewaySpeakerIdentificationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 2)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse).Name}");
- lLMGatewayCustomFormattingResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- }
-
- if (lLMGatewayTranslationResponse == null && lLMGatewaySpeakerIdentificationResponse == null && lLMGatewayCustomFormattingResponse == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.LLMGatewayTranslationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.LLMGatewayTranslationResponse).Name}");
- lLMGatewayTranslationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (lLMGatewayTranslationResponse == null && lLMGatewaySpeakerIdentificationResponse == null && lLMGatewayCustomFormattingResponse == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse).Name}");
- lLMGatewaySpeakerIdentificationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (lLMGatewayTranslationResponse == null && lLMGatewaySpeakerIdentificationResponse == null && lLMGatewayCustomFormattingResponse == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse).Name}");
- lLMGatewayCustomFormattingResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- var __value = new global::AssemblyAI.CreateSpeechUnderstandingResponse200(
- lLMGatewayTranslationResponse,
-
- lLMGatewaySpeakerIdentificationResponse,
-
- lLMGatewayCustomFormattingResponse
- );
-
- return __value;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.CreateSpeechUnderstandingResponse200 value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- if (value.IsLLMGatewayTranslationResponse)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.LLMGatewayTranslationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.LLMGatewayTranslationResponse).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.LLMGatewayTranslationResponse!, typeInfo);
- }
- else if (value.IsLLMGatewaySpeakerIdentificationResponse)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.LLMGatewaySpeakerIdentificationResponse!, typeInfo);
- }
- else if (value.IsLLMGatewayCustomFormattingResponse)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.LLMGatewayCustomFormattingResponse!, typeInfo);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.EntityType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.EntityType.g.cs
deleted file mode 100644
index 552fd5c..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.EntityType.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class EntityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.EntityType Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.EntityTypeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.EntityType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.EntityType);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.EntityType value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.EntityTypeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.EntityTypeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.EntityTypeNullable.g.cs
deleted file mode 100644
index f111490..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.EntityTypeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class EntityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.EntityType? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.EntityTypeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.EntityType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.EntityType?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.EntityType? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.EntityTypeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.FunctionToolCallType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.FunctionToolCallType.g.cs
deleted file mode 100644
index 72b7705..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.FunctionToolCallType.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class FunctionToolCallTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.FunctionToolCallType Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.FunctionToolCallTypeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.FunctionToolCallType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.FunctionToolCallType);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.FunctionToolCallType value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.FunctionToolCallTypeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.FunctionToolCallTypeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.FunctionToolCallTypeNullable.g.cs
deleted file mode 100644
index b789290..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.FunctionToolCallTypeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class FunctionToolCallTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.FunctionToolCallType? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.FunctionToolCallTypeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.FunctionToolCallType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.FunctionToolCallType?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.FunctionToolCallType? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.FunctionToolCallTypeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.Message.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.Message.g.cs
deleted file mode 100644
index 26dbc37..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.Message.g.cs
+++ /dev/null
@@ -1,237 +0,0 @@
-#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public class MessageJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.Message Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
- var __rawJson = __jsonDocument.RootElement.GetRawText();
- var __jsonProps = new global::System.Collections.Generic.HashSet();
- if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name);
-
- }
- }
-
- var __score0 = 0;
- if (__jsonProps.Contains("content")) __score0++;
- if (__jsonProps.Contains("name")) __score0++;
- if (__jsonProps.Contains("role")) __score0++;
- var __score1 = 0;
- if (__jsonProps.Contains("content")) __score1++;
- if (__jsonProps.Contains("name")) __score1++;
- if (__jsonProps.Contains("role")) __score1++;
- var __score2 = 0;
- if (__jsonProps.Contains("content")) __score2++;
- if (__jsonProps.Contains("name")) __score2++;
- if (__jsonProps.Contains("role")) __score2++;
- var __score3 = 0;
- if (__jsonProps.Contains("content")) __score3++;
- if (__jsonProps.Contains("role")) __score3++;
- if (__jsonProps.Contains("tool_call_id")) __score3++;
- var __bestScore = 0;
- var __bestIndex = -1;
- if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
- if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
- if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; }
- if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; }
-
- global::AssemblyAI.MessageVariant1? messageVariant1 = default;
- global::AssemblyAI.MessageVariant2? messageVariant2 = default;
- global::AssemblyAI.MessageVariant3? messageVariant3 = default;
- global::AssemblyAI.MessageVariant4? tool = default;
- if (__bestIndex >= 0)
- {
- if (__bestIndex == 0)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant1).Name}");
- messageVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 1)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant2).Name}");
- messageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 2)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant3).Name}");
- messageVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 3)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant4).Name}");
- tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- }
-
- if (messageVariant1 == null && messageVariant2 == null && messageVariant3 == null && tool == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant1).Name}");
- messageVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (messageVariant1 == null && messageVariant2 == null && messageVariant3 == null && tool == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant2).Name}");
- messageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (messageVariant1 == null && messageVariant2 == null && messageVariant3 == null && tool == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant3).Name}");
- messageVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (messageVariant1 == null && messageVariant2 == null && messageVariant3 == null && tool == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant4).Name}");
- tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- var __value = new global::AssemblyAI.Message(
- messageVariant1,
-
- messageVariant2,
-
- messageVariant3,
-
- tool
- );
-
- return __value;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.Message value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- if (value.IsMessageVariant1)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant1).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageVariant1!, typeInfo);
- }
- else if (value.IsMessageVariant2)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant2).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageVariant2!, typeInfo);
- }
- else if (value.IsMessageVariant3)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant3).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageVariant3!, typeInfo);
- }
- else if (value.IsTool)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.MessageVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.MessageVariant4).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool!, typeInfo);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.MessageDiscriminatorRole.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.MessageDiscriminatorRole.g.cs
deleted file mode 100644
index e664b4f..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.MessageDiscriminatorRole.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class MessageDiscriminatorRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.MessageDiscriminatorRole Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.MessageDiscriminatorRoleExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.MessageDiscriminatorRole)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.MessageDiscriminatorRole);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.MessageDiscriminatorRole value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.MessageDiscriminatorRoleExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.MessageDiscriminatorRoleNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.MessageDiscriminatorRoleNullable.g.cs
deleted file mode 100644
index 3f39add..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.MessageDiscriminatorRoleNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class MessageDiscriminatorRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.MessageDiscriminatorRole? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.MessageDiscriminatorRoleExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.MessageDiscriminatorRole)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.MessageDiscriminatorRole?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.MessageDiscriminatorRole? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.MessageDiscriminatorRoleExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoice.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.NewPlant.g.cs
similarity index 62%
rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoice.g.cs
rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.NewPlant.g.cs
index 9f0a7fe..e30439e 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoice.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.NewPlant.g.cs
@@ -4,10 +4,10 @@
namespace AssemblyAI.JsonConverters
{
///
- public class ToolChoiceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ public class NewPlantJsonConverter : global::System.Text.Json.Serialization.JsonConverter
{
///
- public override global::AssemblyAI.ToolChoice Read(
+ public override global::AssemblyAI.NewPlant Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
@@ -23,38 +23,31 @@ public class ToolChoiceJsonConverter : global::System.Text.Json.Serialization.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
- if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
- }
- }
}
}
var __score0 = 0;
+ if (__jsonProps.Contains("name")) __score0++;
+ if (__jsonProps.Contains("tag")) __score0++;
var __score1 = 0;
- if (__jsonProps.Contains("function")) __score1++;
- if (__jsonProps.Contains("function.name")) __score1++;
- if (__jsonProps.Contains("type")) __score1++;
+ if (__jsonProps.Contains("id")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
- global::AssemblyAI.ToolChoice0? toolChoice0 = default;
- global::AssemblyAI.ToolChoice1? toolChoice1 = default;
+ global::AssemblyAI.Plant? plant = default;
+ global::AssemblyAI.NewPlantVariant2? newPlantVariant2 = default;
if (__bestIndex >= 0)
{
if (__bestIndex == 0)
{
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.ToolChoice0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.ToolChoice0).Name}");
- toolChoice0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.Plant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.Plant).Name}");
+ plant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -67,9 +60,9 @@ public class ToolChoiceJsonConverter : global::System.Text.Json.Serialization.Js
{
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.ToolChoice1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.ToolChoice1).Name}");
- toolChoice1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.NewPlantVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.NewPlantVariant2).Name}");
+ newPlantVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -80,14 +73,14 @@ public class ToolChoiceJsonConverter : global::System.Text.Json.Serialization.Js
}
}
- if (toolChoice0 == null && toolChoice1 == null)
+ if (plant == null && newPlantVariant2 == null)
{
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.ToolChoice0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.ToolChoice0).Name}");
- toolChoice0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.Plant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.Plant).Name}");
+ plant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -97,14 +90,14 @@ public class ToolChoiceJsonConverter : global::System.Text.Json.Serialization.Js
}
}
- if (toolChoice0 == null && toolChoice1 == null)
+ if (plant == null && newPlantVariant2 == null)
{
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.ToolChoice1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.ToolChoice1).Name}");
- toolChoice1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.NewPlantVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.NewPlantVariant2).Name}");
+ newPlantVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
@@ -114,10 +107,10 @@ public class ToolChoiceJsonConverter : global::System.Text.Json.Serialization.Js
}
}
- var __value = new global::AssemblyAI.ToolChoice(
- toolChoice0,
+ var __value = new global::AssemblyAI.NewPlant(
+ plant,
- toolChoice1
+ newPlantVariant2
);
return __value;
@@ -126,23 +119,23 @@ public class ToolChoiceJsonConverter : global::System.Text.Json.Serialization.Js
///
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ToolChoice value,
+ global::AssemblyAI.NewPlant value,
global::System.Text.Json.JsonSerializerOptions options)
{
options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
- if (value.IsToolChoice0)
+ if (value.IsPlant)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.ToolChoice0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.ToolChoice0).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoice0!.Value, typeInfo);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.Plant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.Plant).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Plant!, typeInfo);
}
- else if (value.IsToolChoice1)
+ else if (value.IsNewPlantVariant2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.ToolChoice1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.ToolChoice1).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoice1!, typeInfo);
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.NewPlantVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.NewPlantVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.NewPlantVariant2!, typeInfo);
}
}
}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf2.g.cs
deleted file mode 100644
index aa80138..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf2.g.cs
+++ /dev/null
@@ -1,161 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter>
- {
- ///
- public override global::AssemblyAI.OneOf Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
-
- using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
- var __rawJson = __jsonDocument.RootElement.GetRawText();
- var __jsonProps = new global::System.Collections.Generic.HashSet();
- if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name);
- }
- }
-
- var __score0 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score0++;
- }
- }
- }
- var __score1 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score1++;
- }
- }
- }
- var __bestScore = 0;
- var __bestIndex = -1;
- if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
- if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
-
- T1? value1 = default;
- T2? value2 = default;
- if (__bestIndex >= 0)
- {
- if (__bestIndex == 0)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- else if (__bestIndex == 1)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- }
-
- if (value1 == null && value2 == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (value1 == null && value2 == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- var __value = new global::AssemblyAI.OneOf(
- value1,
-
- value2
- );
-
- return __value;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.OneOf value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- if (value.IsValue1)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
- }
- else if (value.IsValue2)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PiiPolicy.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PiiPolicy.g.cs
deleted file mode 100644
index 402011d..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PiiPolicy.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class PiiPolicyJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.PiiPolicy Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.PiiPolicyExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.PiiPolicy)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.PiiPolicy);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.PiiPolicy value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.PiiPolicyExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PiiPolicyNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PiiPolicyNullable.g.cs
deleted file mode 100644
index 326142b..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PiiPolicyNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class PiiPolicyNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.PiiPolicy? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.PiiPolicyExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.PiiPolicy)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.PiiPolicy?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.PiiPolicy? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.PiiPolicyExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PostProcessingStepType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PostProcessingStepType.g.cs
deleted file mode 100644
index e31fe6e..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PostProcessingStepType.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class PostProcessingStepTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.PostProcessingStepType Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.PostProcessingStepTypeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.PostProcessingStepType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.PostProcessingStepType);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.PostProcessingStepType value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.PostProcessingStepTypeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PostProcessingStepTypeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PostProcessingStepTypeNullable.g.cs
deleted file mode 100644
index 3c12b12..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.PostProcessingStepTypeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class PostProcessingStepTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.PostProcessingStepType? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.PostProcessingStepTypeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.PostProcessingStepType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.PostProcessingStepType?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.PostProcessingStepType? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.PostProcessingStepTypeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ReasoningEffort.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ReasoningEffort.g.cs
deleted file mode 100644
index da21d24..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ReasoningEffort.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ReasoningEffortJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ReasoningEffort Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ReasoningEffortExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ReasoningEffort)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ReasoningEffort);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ReasoningEffort value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.ReasoningEffortExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ReasoningEffortNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ReasoningEffortNullable.g.cs
deleted file mode 100644
index 5ede5b3..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ReasoningEffortNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ReasoningEffortNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ReasoningEffort? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ReasoningEffortExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ReasoningEffort)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ReasoningEffort?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ReasoningEffort? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.ReasoningEffortExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactPiiAudioQuality.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactPiiAudioQuality.g.cs
deleted file mode 100644
index 1ee5b8e..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactPiiAudioQuality.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class RedactPiiAudioQualityJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.RedactPiiAudioQuality Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.RedactPiiAudioQualityExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.RedactPiiAudioQuality)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.RedactPiiAudioQuality);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.RedactPiiAudioQuality value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.RedactPiiAudioQualityExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactPiiAudioQualityNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactPiiAudioQualityNullable.g.cs
deleted file mode 100644
index f15a310..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactPiiAudioQualityNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class RedactPiiAudioQualityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.RedactPiiAudioQuality? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.RedactPiiAudioQualityExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.RedactPiiAudioQuality)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.RedactPiiAudioQuality?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.RedactPiiAudioQuality? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.RedactPiiAudioQualityExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioStatus.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioStatus.g.cs
deleted file mode 100644
index 403ac91..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioStatus.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class RedactedAudioStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.RedactedAudioStatus Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.RedactedAudioStatusExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.RedactedAudioStatus)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.RedactedAudioStatus);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.RedactedAudioStatus value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.RedactedAudioStatusExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioStatusNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioStatusNullable.g.cs
deleted file mode 100644
index 2ae0659..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioStatusNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class RedactedAudioStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.RedactedAudioStatus? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.RedactedAudioStatusExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.RedactedAudioStatus)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.RedactedAudioStatus?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.RedactedAudioStatus? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.RedactedAudioStatusExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ResponseFormatType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ResponseFormatType.g.cs
deleted file mode 100644
index 8f36846..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ResponseFormatType.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ResponseFormatTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ResponseFormatType Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ResponseFormatTypeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ResponseFormatType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ResponseFormatType);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ResponseFormatType value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.ResponseFormatTypeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ResponseFormatTypeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ResponseFormatTypeNullable.g.cs
deleted file mode 100644
index 67c368e..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ResponseFormatTypeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ResponseFormatTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ResponseFormatType? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ResponseFormatTypeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ResponseFormatType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ResponseFormatType?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ResponseFormatType? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.ResponseFormatTypeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.Sentiment.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.Sentiment.g.cs
deleted file mode 100644
index 2756398..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.Sentiment.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SentimentJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.Sentiment Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SentimentExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.Sentiment)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.Sentiment);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.Sentiment value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.SentimentExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SentimentNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SentimentNullable.g.cs
deleted file mode 100644
index b892b3d..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SentimentNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SentimentNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.Sentiment? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SentimentExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.Sentiment)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.Sentiment?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.Sentiment? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.SentimentExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs
deleted file mode 100644
index d118bd7..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullable.g.cs
deleted file mode 100644
index d4443cd..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubstitutionPolicy.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubstitutionPolicy.g.cs
deleted file mode 100644
index dd2a7c5..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubstitutionPolicy.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SubstitutionPolicyJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SubstitutionPolicy Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SubstitutionPolicyExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SubstitutionPolicy)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SubstitutionPolicy);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SubstitutionPolicy value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.SubstitutionPolicyExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubstitutionPolicyNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubstitutionPolicyNullable.g.cs
deleted file mode 100644
index 83b75e7..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubstitutionPolicyNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SubstitutionPolicyNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SubstitutionPolicy? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SubstitutionPolicyExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SubstitutionPolicy)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SubstitutionPolicy?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SubstitutionPolicy? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.SubstitutionPolicyExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubtitleFormat.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubtitleFormat.g.cs
deleted file mode 100644
index 2249560..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubtitleFormat.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SubtitleFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SubtitleFormat Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SubtitleFormatExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SubtitleFormat)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SubtitleFormat);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SubtitleFormat value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.SubtitleFormatExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubtitleFormatNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubtitleFormatNullable.g.cs
deleted file mode 100644
index 2304d71..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SubtitleFormatNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SubtitleFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SubtitleFormat? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SubtitleFormatExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SubtitleFormat)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SubtitleFormat?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SubtitleFormat? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.SubtitleFormatExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryModel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryModel.g.cs
deleted file mode 100644
index 2f4e5fe..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryModel.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SummaryModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SummaryModel Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SummaryModelExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SummaryModel)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SummaryModel);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SummaryModel value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.SummaryModelExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryModelNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryModelNullable.g.cs
deleted file mode 100644
index 586de1e..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryModelNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SummaryModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SummaryModel? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SummaryModelExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SummaryModel)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SummaryModel?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SummaryModel? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.SummaryModelExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryType.g.cs
deleted file mode 100644
index 340e473..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryType.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SummaryTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SummaryType Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SummaryTypeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SummaryType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SummaryType);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SummaryType value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.SummaryTypeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryTypeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryTypeNullable.g.cs
deleted file mode 100644
index 9b49cc1..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SummaryTypeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SummaryTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SummaryType? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.SummaryTypeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SummaryType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SummaryType?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SummaryType? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.SummaryTypeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoice0.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoice0.g.cs
deleted file mode 100644
index 0cc24b0..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoice0.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ToolChoice0JsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ToolChoice0 Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ToolChoice0Extensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ToolChoice0)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ToolChoice0);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ToolChoice0 value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.ToolChoice0Extensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoice0Nullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoice0Nullable.g.cs
deleted file mode 100644
index d9cef2a..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoice0Nullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ToolChoice0NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ToolChoice0? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ToolChoice0Extensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ToolChoice0)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ToolChoice0?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ToolChoice0? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.ToolChoice0Extensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoiceOneOf1Type.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoiceOneOf1Type.g.cs
deleted file mode 100644
index 3e44dcf..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoiceOneOf1Type.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ToolChoiceOneOf1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ToolChoiceOneOf1Type Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ToolChoiceOneOf1TypeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ToolChoiceOneOf1Type)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ToolChoiceOneOf1Type);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ToolChoiceOneOf1Type value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.ToolChoiceOneOf1TypeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoiceOneOf1TypeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoiceOneOf1TypeNullable.g.cs
deleted file mode 100644
index ff75494..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolChoiceOneOf1TypeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ToolChoiceOneOf1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ToolChoiceOneOf1Type? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ToolChoiceOneOf1TypeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ToolChoiceOneOf1Type)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ToolChoiceOneOf1Type?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ToolChoiceOneOf1Type? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.ToolChoiceOneOf1TypeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolMessageRole.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolMessageRole.g.cs
deleted file mode 100644
index 97ce1ed..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolMessageRole.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ToolMessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ToolMessageRole Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ToolMessageRoleExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ToolMessageRole)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ToolMessageRole);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ToolMessageRole value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.ToolMessageRoleExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolMessageRoleNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolMessageRoleNullable.g.cs
deleted file mode 100644
index 73b85ca..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolMessageRoleNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ToolMessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ToolMessageRole? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ToolMessageRoleExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ToolMessageRole)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ToolMessageRole?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ToolMessageRole? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.ToolMessageRoleExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolType.g.cs
deleted file mode 100644
index 5352221..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolType.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ToolType Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ToolTypeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ToolType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ToolType);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ToolType value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.ToolTypeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolTypeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolTypeNullable.g.cs
deleted file mode 100644
index 3946204..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ToolTypeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ToolType? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.ToolTypeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ToolType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ToolType?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ToolType? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.ToolTypeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageCode.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageCode.g.cs
deleted file mode 100644
index 19f9910..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageCode.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptLanguageCodeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptLanguageCode Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptLanguageCodeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptLanguageCode)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptLanguageCode);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptLanguageCode value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.TranscriptLanguageCodeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageCodeNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageCodeNullable.g.cs
deleted file mode 100644
index 6d6642e..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageCodeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptLanguageCodeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptLanguageCode? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptLanguageCodeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptLanguageCode)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptLanguageCode?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptLanguageCode? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.TranscriptLanguageCodeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs
deleted file mode 100644
index f8c9b1b..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs
deleted file mode 100644
index 0e05470..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags.g.cs
deleted file mode 100644
index 1f1ec58..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptOptionalParamsRemoveAudioTagsJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullable.g.cs
deleted file mode 100644
index a114a60..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptOptionalParamsRemoveAudioTagsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsSpeechUnderstandingRequest.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsSpeechUnderstandingRequest.g.cs
deleted file mode 100644
index 82138c1..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsSpeechUnderstandingRequest.g.cs
+++ /dev/null
@@ -1,201 +0,0 @@
-#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public class TranscriptOptionalParamsSpeechUnderstandingRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
- var __rawJson = __jsonDocument.RootElement.GetRawText();
- var __jsonProps = new global::System.Collections.Generic.HashSet();
- if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name);
- if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
- }
- }
-
- }
- }
-
- var __score0 = 0;
- if (__jsonProps.Contains("translation")) __score0++;
- if (__jsonProps.Contains("translation.formal")) __score0++;
- if (__jsonProps.Contains("translation.match_original_utterance")) __score0++;
- if (__jsonProps.Contains("translation.target_languages")) __score0++;
- var __score1 = 0;
- if (__jsonProps.Contains("speaker_identification")) __score1++;
- if (__jsonProps.Contains("speaker_identification.known_values")) __score1++;
- if (__jsonProps.Contains("speaker_identification.speaker_type")) __score1++;
- if (__jsonProps.Contains("speaker_identification.speakers")) __score1++;
- var __score2 = 0;
- if (__jsonProps.Contains("custom_formatting")) __score2++;
- if (__jsonProps.Contains("custom_formatting.date")) __score2++;
- if (__jsonProps.Contains("custom_formatting.email")) __score2++;
- if (__jsonProps.Contains("custom_formatting.phone_number")) __score2++;
- var __bestScore = 0;
- var __bestIndex = -1;
- if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
- if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
- if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; }
-
- global::AssemblyAI.TranslationRequestBody? translationRequestBody = default;
- global::AssemblyAI.SpeakerIdentificationRequestBody? speakerIdentificationRequestBody = default;
- global::AssemblyAI.CustomFormattingRequestBody? customFormattingRequestBody = default;
- if (__bestIndex >= 0)
- {
- if (__bestIndex == 0)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationRequestBody).Name}");
- translationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 1)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationRequestBody).Name}");
- speakerIdentificationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 2)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingRequestBody).Name}");
- customFormattingRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- }
-
- if (translationRequestBody == null && speakerIdentificationRequestBody == null && customFormattingRequestBody == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationRequestBody).Name}");
- translationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (translationRequestBody == null && speakerIdentificationRequestBody == null && customFormattingRequestBody == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationRequestBody).Name}");
- speakerIdentificationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (translationRequestBody == null && speakerIdentificationRequestBody == null && customFormattingRequestBody == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingRequestBody).Name}");
- customFormattingRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- var __value = new global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest(
- translationRequestBody,
-
- speakerIdentificationRequestBody,
-
- customFormattingRequestBody
- );
-
- return __value;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- if (value.IsTranslationRequestBody)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationRequestBody).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranslationRequestBody!, typeInfo);
- }
- else if (value.IsSpeakerIdentificationRequestBody)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationRequestBody).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeakerIdentificationRequestBody!, typeInfo);
- }
- else if (value.IsCustomFormattingRequestBody)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingRequestBody).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomFormattingRequestBody!, typeInfo);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs
deleted file mode 100644
index 09efc82..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs
deleted file mode 100644
index 2f1a7a8..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags.g.cs
deleted file mode 100644
index cb5a15d..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTags.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptRemoveAudioTagsJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptRemoveAudioTags Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptRemoveAudioTags)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptRemoveAudioTags);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptRemoveAudioTags value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullable.g.cs
deleted file mode 100644
index 93e5e3d..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptRemoveAudioTagsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptRemoveAudioTags? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptRemoveAudioTags)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptRemoveAudioTags?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptRemoveAudioTags? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingRequest.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingRequest.g.cs
deleted file mode 100644
index c721cc7..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingRequest.g.cs
+++ /dev/null
@@ -1,201 +0,0 @@
-#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public class TranscriptSpeechUnderstandingRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptSpeechUnderstandingRequest Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
- var __rawJson = __jsonDocument.RootElement.GetRawText();
- var __jsonProps = new global::System.Collections.Generic.HashSet();
- if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name);
- if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
- }
- }
-
- }
- }
-
- var __score0 = 0;
- if (__jsonProps.Contains("translation")) __score0++;
- if (__jsonProps.Contains("translation.formal")) __score0++;
- if (__jsonProps.Contains("translation.match_original_utterance")) __score0++;
- if (__jsonProps.Contains("translation.target_languages")) __score0++;
- var __score1 = 0;
- if (__jsonProps.Contains("speaker_identification")) __score1++;
- if (__jsonProps.Contains("speaker_identification.known_values")) __score1++;
- if (__jsonProps.Contains("speaker_identification.speaker_type")) __score1++;
- if (__jsonProps.Contains("speaker_identification.speakers")) __score1++;
- var __score2 = 0;
- if (__jsonProps.Contains("custom_formatting")) __score2++;
- if (__jsonProps.Contains("custom_formatting.date")) __score2++;
- if (__jsonProps.Contains("custom_formatting.email")) __score2++;
- if (__jsonProps.Contains("custom_formatting.phone_number")) __score2++;
- var __bestScore = 0;
- var __bestIndex = -1;
- if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
- if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
- if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; }
-
- global::AssemblyAI.TranslationRequestBody? translationRequestBody = default;
- global::AssemblyAI.SpeakerIdentificationRequestBody? speakerIdentificationRequestBody = default;
- global::AssemblyAI.CustomFormattingRequestBody? customFormattingRequestBody = default;
- if (__bestIndex >= 0)
- {
- if (__bestIndex == 0)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationRequestBody).Name}");
- translationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 1)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationRequestBody).Name}");
- speakerIdentificationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 2)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingRequestBody).Name}");
- customFormattingRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- }
-
- if (translationRequestBody == null && speakerIdentificationRequestBody == null && customFormattingRequestBody == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationRequestBody).Name}");
- translationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (translationRequestBody == null && speakerIdentificationRequestBody == null && customFormattingRequestBody == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationRequestBody).Name}");
- speakerIdentificationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (translationRequestBody == null && speakerIdentificationRequestBody == null && customFormattingRequestBody == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingRequestBody).Name}");
- customFormattingRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- var __value = new global::AssemblyAI.TranscriptSpeechUnderstandingRequest(
- translationRequestBody,
-
- speakerIdentificationRequestBody,
-
- customFormattingRequestBody
- );
-
- return __value;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptSpeechUnderstandingRequest value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- if (value.IsTranslationRequestBody)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationRequestBody).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranslationRequestBody!, typeInfo);
- }
- else if (value.IsSpeakerIdentificationRequestBody)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationRequestBody).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeakerIdentificationRequestBody!, typeInfo);
- }
- else if (value.IsCustomFormattingRequestBody)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingRequestBody).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomFormattingRequestBody!, typeInfo);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingResponse.g.cs
deleted file mode 100644
index df76c2e..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingResponse.g.cs
+++ /dev/null
@@ -1,197 +0,0 @@
-#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public class TranscriptSpeechUnderstandingResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptSpeechUnderstandingResponse Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
- var __rawJson = __jsonDocument.RootElement.GetRawText();
- var __jsonProps = new global::System.Collections.Generic.HashSet();
- if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name);
- if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
- }
- }
-
- }
- }
-
- var __score0 = 0;
- if (__jsonProps.Contains("translation")) __score0++;
- if (__jsonProps.Contains("translation.status")) __score0++;
- var __score1 = 0;
- if (__jsonProps.Contains("speaker_identification")) __score1++;
- if (__jsonProps.Contains("speaker_identification.mapping")) __score1++;
- if (__jsonProps.Contains("speaker_identification.status")) __score1++;
- var __score2 = 0;
- if (__jsonProps.Contains("custom_formatting")) __score2++;
- if (__jsonProps.Contains("custom_formatting.formatted_text")) __score2++;
- if (__jsonProps.Contains("custom_formatting.mapping")) __score2++;
- var __bestScore = 0;
- var __bestIndex = -1;
- if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
- if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
- if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; }
-
- global::AssemblyAI.TranslationResponse? translationResponse = default;
- global::AssemblyAI.SpeakerIdentificationResponse? speakerIdentificationResponse = default;
- global::AssemblyAI.CustomFormattingResponse? customFormattingResponse = default;
- if (__bestIndex >= 0)
- {
- if (__bestIndex == 0)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationResponse).Name}");
- translationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 1)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationResponse).Name}");
- speakerIdentificationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 2)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingResponse).Name}");
- customFormattingResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- }
-
- if (translationResponse == null && speakerIdentificationResponse == null && customFormattingResponse == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationResponse).Name}");
- translationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (translationResponse == null && speakerIdentificationResponse == null && customFormattingResponse == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationResponse).Name}");
- speakerIdentificationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (translationResponse == null && speakerIdentificationResponse == null && customFormattingResponse == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingResponse).Name}");
- customFormattingResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- var __value = new global::AssemblyAI.TranscriptSpeechUnderstandingResponse(
- translationResponse,
-
- speakerIdentificationResponse,
-
- customFormattingResponse
- );
-
- return __value;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptSpeechUnderstandingResponse value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- if (value.IsTranslationResponse)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationResponse).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranslationResponse!, typeInfo);
- }
- else if (value.IsSpeakerIdentificationResponse)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationResponse).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeakerIdentificationResponse!, typeInfo);
- }
- else if (value.IsCustomFormattingResponse)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingResponse).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomFormattingResponse!, typeInfo);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptStatus.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptStatus.g.cs
deleted file mode 100644
index 4969ab6..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptStatus.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptStatus Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptStatusExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptStatus)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptStatus);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptStatus value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.TranscriptStatusExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptStatusNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptStatusNullable.g.cs
deleted file mode 100644
index af0175a..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptStatusNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class TranscriptStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.TranscriptStatus? Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- switch (reader.TokenType)
- {
- case global::System.Text.Json.JsonTokenType.String:
- {
- var stringValue = reader.GetString();
- if (stringValue != null)
- {
- return global::AssemblyAI.TranscriptStatusExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.TranscriptStatus)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.TranscriptStatus?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.TranscriptStatus? value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- if (value == null)
- {
- writer.WriteNullValue();
- }
- else
- {
- writer.WriteStringValue(global::AssemblyAI.TranscriptStatusExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UnderstandingRequestSpeechUnderstandingRequest.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UnderstandingRequestSpeechUnderstandingRequest.g.cs
deleted file mode 100644
index 7eae6fa..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UnderstandingRequestSpeechUnderstandingRequest.g.cs
+++ /dev/null
@@ -1,201 +0,0 @@
-#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public class UnderstandingRequestSpeechUnderstandingRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
- var __rawJson = __jsonDocument.RootElement.GetRawText();
- var __jsonProps = new global::System.Collections.Generic.HashSet();
- if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name);
- if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
- }
- }
-
- }
- }
-
- var __score0 = 0;
- if (__jsonProps.Contains("translation")) __score0++;
- if (__jsonProps.Contains("translation.formal")) __score0++;
- if (__jsonProps.Contains("translation.match_original_utterance")) __score0++;
- if (__jsonProps.Contains("translation.target_languages")) __score0++;
- var __score1 = 0;
- if (__jsonProps.Contains("speaker_identification")) __score1++;
- if (__jsonProps.Contains("speaker_identification.known_values")) __score1++;
- if (__jsonProps.Contains("speaker_identification.speaker_type")) __score1++;
- if (__jsonProps.Contains("speaker_identification.speakers")) __score1++;
- var __score2 = 0;
- if (__jsonProps.Contains("custom_formatting")) __score2++;
- if (__jsonProps.Contains("custom_formatting.date")) __score2++;
- if (__jsonProps.Contains("custom_formatting.email")) __score2++;
- if (__jsonProps.Contains("custom_formatting.phone_number")) __score2++;
- var __bestScore = 0;
- var __bestIndex = -1;
- if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
- if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
- if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; }
-
- global::AssemblyAI.TranslationRequestBody? translationRequestBody = default;
- global::AssemblyAI.SpeakerIdentificationRequestBody? speakerIdentificationRequestBody = default;
- global::AssemblyAI.CustomFormattingRequestBody? customFormattingRequestBody = default;
- if (__bestIndex >= 0)
- {
- if (__bestIndex == 0)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationRequestBody).Name}");
- translationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 1)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationRequestBody).Name}");
- speakerIdentificationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- else if (__bestIndex == 2)
- {
- try
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingRequestBody).Name}");
- customFormattingRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- }
-
- if (translationRequestBody == null && speakerIdentificationRequestBody == null && customFormattingRequestBody == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationRequestBody).Name}");
- translationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (translationRequestBody == null && speakerIdentificationRequestBody == null && customFormattingRequestBody == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationRequestBody).Name}");
- speakerIdentificationRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (translationRequestBody == null && speakerIdentificationRequestBody == null && customFormattingRequestBody == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingRequestBody).Name}");
- customFormattingRequestBody = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- var __value = new global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest(
- translationRequestBody,
-
- speakerIdentificationRequestBody,
-
- customFormattingRequestBody
- );
-
- return __value;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- if (value.IsTranslationRequestBody)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranslationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranslationRequestBody).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranslationRequestBody!, typeInfo);
- }
- else if (value.IsSpeakerIdentificationRequestBody)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.SpeakerIdentificationRequestBody).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeakerIdentificationRequestBody!, typeInfo);
- }
- else if (value.IsCustomFormattingRequestBody)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.CustomFormattingRequestBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.CustomFormattingRequestBody).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomFormattingRequestBody!, typeInfo);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UserAssistantSystemMessageContent.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UserAssistantSystemMessageContent.g.cs
deleted file mode 100644
index 69077c9..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UserAssistantSystemMessageContent.g.cs
+++ /dev/null
@@ -1,162 +0,0 @@
-#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public class UserAssistantSystemMessageContentJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.UserAssistantSystemMessageContent Read(
- ref global::System.Text.Json.Utf8JsonReader reader,
- global::System.Type typeToConvert,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
-
- using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
- var __rawJson = __jsonDocument.RootElement.GetRawText();
- var __jsonProps = new global::System.Collections.Generic.HashSet();
- if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
- {
- foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
- {
- __jsonProps.Add(__jsonProp.Name);
- }
- }
-
- var __score0 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score0++;
- }
- }
- }
- var __score1 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score1++;
- }
- }
- }
- var __bestScore = 0;
- var __bestIndex = -1;
- if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
- if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
-
- string? userAssistantSystemMessageContentVariant1 = default;
- global::System.Collections.Generic.IList? userAssistantSystemMessageContent1 = default;
- if (__bestIndex >= 0)
- {
- if (__bestIndex == 0)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}");
- userAssistantSystemMessageContentVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- else if (__bestIndex == 1)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}");
- userAssistantSystemMessageContent1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
- }
-
- if (userAssistantSystemMessageContentVariant1 == null && userAssistantSystemMessageContent1 == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}");
- userAssistantSystemMessageContentVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- if (userAssistantSystemMessageContentVariant1 == null && userAssistantSystemMessageContent1 == null)
- {
- try
- {
-
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}");
- userAssistantSystemMessageContent1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
- }
- catch (global::System.Text.Json.JsonException)
- {
- }
- catch (global::System.InvalidOperationException)
- {
- }
- }
-
- var __value = new global::AssemblyAI.UserAssistantSystemMessageContent(
- userAssistantSystemMessageContentVariant1,
-
- userAssistantSystemMessageContent1
- );
-
- return __value;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.UserAssistantSystemMessageContent value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
-
- if (value.IsUserAssistantSystemMessageContentVariant1)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.UserAssistantSystemMessageContentVariant1!, typeInfo);
- }
- else if (value.IsUserAssistantSystemMessageContent1)
- {
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList