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).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UserAssistantSystemMessageContent1!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UserAssistantSystemMessageRole.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UserAssistantSystemMessageRole.g.cs deleted file mode 100644 index 27cd4f4..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UserAssistantSystemMessageRole.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace AssemblyAI.JsonConverters -{ - /// - public sealed class UserAssistantSystemMessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::AssemblyAI.UserAssistantSystemMessageRole 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.UserAssistantSystemMessageRoleExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::AssemblyAI.UserAssistantSystemMessageRole)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::AssemblyAI.UserAssistantSystemMessageRole); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.UserAssistantSystemMessageRole value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::AssemblyAI.UserAssistantSystemMessageRoleExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UserAssistantSystemMessageRoleNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UserAssistantSystemMessageRoleNullable.g.cs deleted file mode 100644 index 8e89f5d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.UserAssistantSystemMessageRoleNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace AssemblyAI.JsonConverters -{ - /// - public sealed class UserAssistantSystemMessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::AssemblyAI.UserAssistantSystemMessageRole? 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.UserAssistantSystemMessageRoleExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::AssemblyAI.UserAssistantSystemMessageRole)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::AssemblyAI.UserAssistantSystemMessageRole?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::AssemblyAI.UserAssistantSystemMessageRole? 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.UserAssistantSystemMessageRoleExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs index 0b543eb..486a248 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs @@ -13,384 +13,20 @@ namespace AssemblyAI DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { - typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.RedactPiiAudioQualityJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.RedactPiiAudioQualityNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.PiiPolicyJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.PiiPolicyNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SubstitutionPolicyJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SubstitutionPolicyNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SummaryModelJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SummaryModelNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SummaryTypeJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SummaryTypeNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.EntityTypeJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.EntityTypeNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SentimentJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SentimentNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptStatusJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptStatusNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SubtitleFormatJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.SubtitleFormatNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.RedactedAudioStatusJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.RedactedAudioStatusNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.UserAssistantSystemMessageRoleJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.UserAssistantSystemMessageRoleNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ToolMessageRoleJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ToolMessageRoleNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.MessageDiscriminatorRoleJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.MessageDiscriminatorRoleNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ToolTypeJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ToolTypeNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ToolChoice0JsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ToolChoice0NullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ToolChoiceOneOf1TypeJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ToolChoiceOneOf1TypeNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ResponseFormatTypeJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ResponseFormatTypeNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ReasoningEffortJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ReasoningEffortNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.PostProcessingStepTypeJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.PostProcessingStepTypeNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.FunctionToolCallTypeJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsSpeechUnderstandingRequestJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingRequestJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingResponseJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.UserAssistantSystemMessageContentJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.MessageJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.ToolChoiceJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.UnderstandingRequestSpeechUnderstandingRequestJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.CreateSpeechUnderstandingResponse200JsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.NewPlantJsonConverter), typeof(global::AssemblyAI.JsonConverters.UnixTimestampJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.JsonSerializerContextTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.UploadedFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Plant))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ErrorDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.NewPlant), TypeInfoPropertyName = "NewPlant2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.NewPlantVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Error))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptCustomSpelling))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptLanguageCode), TypeInfoPropertyName = "TranscriptLanguageCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod), TypeInfoPropertyName = "TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.RedactPiiAudioQuality), TypeInfoPropertyName = "RedactPiiAudioQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.PiiPolicy), TypeInfoPropertyName = "PiiPolicy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SubstitutionPolicy), TypeInfoPropertyName = "SubstitutionPolicy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranslationRequestBodyTranslation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranslationRequestBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType), TypeInfoPropertyName = "SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationRequestBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CustomFormattingRequestBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest), TypeInfoPropertyName = "TranscriptOptionalParamsSpeechUnderstandingRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummaryModel), TypeInfoPropertyName = "SummaryModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummaryType), TypeInfoPropertyName = "SummaryType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags), TypeInfoPropertyName = "TranscriptOptionalParamsRemoveAudioTags2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranscriptLanguageCodeObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfSubstitutionPolicyObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranscriptOptionalParamsRemoveAudioTagsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfStringObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AudioIntelligenceModelStatus), TypeInfoPropertyName = "AudioIntelligenceModelStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Timestamp))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AutoHighlightResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AutoHighlightsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Chapter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ContentSafetyLabel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ContentSafetyLabelResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SeverityScoreSummary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ContentSafetyLabelsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.EntityType), TypeInfoPropertyName = "EntityType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Entity))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TopicDetectionResultLabelsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TopicDetectionResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TopicDetectionModelResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptLanguageDetectionOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptWarning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod), TypeInfoPropertyName = "TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Sentiment), TypeInfoPropertyName = "Sentiment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SentimentAnalysisResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptSpeechUnderstandingRequest), TypeInfoPropertyName = "TranscriptSpeechUnderstandingRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranslationResponseTranslation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranslationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeakerIdentificationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CustomFormattingResponseCustomFormatting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CustomFormattingResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptSpeechUnderstandingResponse), TypeInfoPropertyName = "TranscriptSpeechUnderstandingResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptSpeechUnderstanding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptStatus), TypeInfoPropertyName = "TranscriptStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRemoveAudioTags), TypeInfoPropertyName = "TranscriptRemoveAudioTags2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptWord))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptUtterance))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptTranslatedTexts))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Transcript))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfAutoHighlightsResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfContentSafetyLabelsResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTopicDetectionModelResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranscriptMetadataObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfRedactPiiAudioQualityObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranscriptRemoveAudioTagsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptSentence))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SentencesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptParagraph))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ParagraphsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SubtitleFormat), TypeInfoPropertyName = "SubtitleFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.RedactedAudioStatus), TypeInfoPropertyName = "RedactedAudioStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.RedactedAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.WordSearchMatch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.WordSearchResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.PageDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptListItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.UserAssistantSystemMessageRole), TypeInfoPropertyName = "UserAssistantSystemMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ContentPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.UserAssistantSystemMessageContent), TypeInfoPropertyName = "UserAssistantSystemMessageContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ToolMessageRole), TypeInfoPropertyName = "ToolMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Message), TypeInfoPropertyName = "Message2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.MessageVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.MessageVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.MessageVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.MessageVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.MessageDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.MessageDiscriminatorRole), TypeInfoPropertyName = "MessageDiscriminatorRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ToolType), TypeInfoPropertyName = "ToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.FunctionDescription))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Tool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ToolChoice0), TypeInfoPropertyName = "ToolChoice02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ToolChoiceOneOf1Type), TypeInfoPropertyName = "ToolChoiceOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ToolChoiceOneOf1Function))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ToolChoice1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ToolChoice), TypeInfoPropertyName = "ToolChoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ResponseFormatType), TypeInfoPropertyName = "ResponseFormatType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.JsonSchemaConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.FallbackObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.FallbackConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ReasoningEffort), TypeInfoPropertyName = "ReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Reasoning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.PostProcessingStepType), TypeInfoPropertyName = "PostProcessingStepType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.PostProcessingStep))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LLMGatewayRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.FunctionToolCallType), TypeInfoPropertyName = "FunctionToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.FunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.FunctionToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ResponseMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Choice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ResponseRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Usage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Response))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest), TypeInfoPropertyName = "UnderstandingRequestSpeechUnderstandingRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.UnderstandingRequestSpeechUnderstanding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.UnderstandingRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayTranslationResponseWordsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LLMGatewayTranslationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseUtterancesItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseWordsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseUtterancesItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CreateSpeechUnderstandingResponse200), TypeInfoPropertyName = "CreateSpeechUnderstandingResponse2002")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs index 0cf347e..cebb15d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -28,7 +28,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.UploadedFile? Type0 { get; set; } + public global::AssemblyAI.Plant? Type0 { get; set; } /// /// /// @@ -36,911 +36,31 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.ErrorDetails? Type2 { get; set; } + public global::AssemblyAI.NewPlant? Type2 { get; set; } /// /// /// - public global::AssemblyAI.Error? Type3 { get; set; } + public global::AssemblyAI.NewPlantVariant2? Type3 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptCustomSpelling? Type4 { get; set; } + public long? Type4 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5 { get; set; } + public global::AssemblyAI.Error? Type5 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptLanguageCode? Type6 { get; set; } + public int? Type6 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? Type7 { get; set; } - /// - /// - /// - public bool? Type8 { get; set; } - /// - /// - /// - public double? Type9 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type10 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type11 { get; set; } - /// - /// - /// - public global::AssemblyAI.RedactPiiAudioQuality? Type12 { get; set; } - /// - /// - /// - public global::AssemblyAI.PiiPolicy? Type13 { get; set; } - /// - /// - /// - public global::AssemblyAI.SubstitutionPolicy? Type14 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type15 { get; set; } - /// - /// - /// - public int? Type16 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranslationRequestBodyTranslation? Type17 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranslationRequestBody? Type18 { get; set; } - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type19 { get; set; } - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems? Type20 { get; set; } - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type21 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type22 { get; set; } - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationRequestBody? Type23 { get; set; } - /// - /// - /// - public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type24 { get; set; } - /// - /// - /// - public global::AssemblyAI.CustomFormattingRequestBody? Type25 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest? Type26 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type27 { get; set; } - /// - /// - /// - public global::AssemblyAI.SummaryModel? Type28 { get; set; } - /// - /// - /// - public global::AssemblyAI.SummaryType? Type29 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type30 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptParams? Type31 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type32 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type33 { get; set; } - /// - /// - /// - public object? Type34 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type35 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type36 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type37 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type38 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type39 { get; set; } - /// - /// - /// - public global::AssemblyAI.AudioIntelligenceModelStatus? Type40 { get; set; } - /// - /// - /// - public global::AssemblyAI.Timestamp? Type41 { get; set; } - /// - /// - /// - public global::AssemblyAI.AutoHighlightResult? Type42 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type43 { get; set; } - /// - /// - /// - public global::AssemblyAI.AutoHighlightsResult? Type44 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type45 { get; set; } - /// - /// - /// - public global::AssemblyAI.Chapter? Type46 { get; set; } - /// - /// - /// - public global::AssemblyAI.ContentSafetyLabel? Type47 { get; set; } - /// - /// - /// - public global::AssemblyAI.ContentSafetyLabelResult? Type48 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type49 { get; set; } - /// - /// - /// - public global::AssemblyAI.SeverityScoreSummary? Type50 { get; set; } - /// - /// - /// - public global::AssemblyAI.ContentSafetyLabelsResult? Type51 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type52 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type53 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type54 { get; set; } - /// - /// - /// - public global::AssemblyAI.EntityType? Type55 { get; set; } - /// - /// - /// - public global::AssemblyAI.Entity? Type56 { get; set; } - /// - /// - /// - public global::AssemblyAI.TopicDetectionResultLabelsItems? Type57 { get; set; } - /// - /// - /// - public global::AssemblyAI.TopicDetectionResult? Type58 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type59 { get; set; } - /// - /// - /// - public global::AssemblyAI.TopicDetectionModelResult? Type60 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type61 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type62 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptWarning? Type63 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptMetadata? Type64 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type65 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type66 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type67 { get; set; } - /// - /// - /// - public global::AssemblyAI.Sentiment? Type68 { get; set; } - /// - /// - /// - public global::AssemblyAI.SentimentAnalysisResult? Type69 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptSpeechUnderstandingRequest? Type70 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranslationResponseTranslation? Type71 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranslationResponse? Type72 { get; set; } - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type73 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type74 { get; set; } - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationResponse? Type75 { get; set; } - /// - /// - /// - public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type76 { get; set; } - /// - /// - /// - public global::AssemblyAI.CustomFormattingResponse? Type77 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptSpeechUnderstandingResponse? Type78 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptSpeechUnderstanding? Type79 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptStatus? Type80 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptRemoveAudioTags? Type81 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptWord? Type82 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptUtterance? Type83 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type84 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptTranslatedTexts? Type85 { get; set; } - /// - /// - /// - public global::AssemblyAI.Transcript? Type86 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type87 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type88 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type89 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type90 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type91 { get; set; } - /// - /// - /// - public global::System.Guid? Type92 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type93 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type94 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type95 { get; set; } - /// - /// - /// - public global::AssemblyAI.OneOf? Type96 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type97 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptSentence? Type98 { get; set; } - /// - /// - /// - public global::AssemblyAI.SentencesResponse? Type99 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type100 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptParagraph? Type101 { get; set; } - /// - /// - /// - public global::AssemblyAI.ParagraphsResponse? Type102 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type103 { get; set; } - /// - /// - /// - public global::AssemblyAI.SubtitleFormat? Type104 { get; set; } - /// - /// - /// - public global::AssemblyAI.RedactedAudioStatus? Type105 { get; set; } - /// - /// - /// - public global::AssemblyAI.RedactedAudioResponse? Type106 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type107 { get; set; } - /// - /// - /// - public global::AssemblyAI.WordSearchMatch? Type108 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type109 { get; set; } - /// - /// - /// - public global::AssemblyAI.WordSearchResponse? Type110 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type111 { get; set; } - /// - /// - /// - public global::AssemblyAI.PageDetails? Type112 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptListItem? Type113 { get; set; } - /// - /// - /// - public global::System.DateTime? Type114 { get; set; } - /// - /// - /// - public global::AssemblyAI.TranscriptList? Type115 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type116 { get; set; } - /// - /// - /// - public global::AssemblyAI.UserAssistantSystemMessageRole? Type117 { get; set; } - /// - /// - /// - public global::AssemblyAI.ContentPart? Type118 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type119 { get; set; } - /// - /// - /// - public global::AssemblyAI.UserAssistantSystemMessageContent? Type120 { get; set; } - /// - /// - /// - public global::AssemblyAI.ToolMessageRole? Type121 { get; set; } - /// - /// - /// - public global::AssemblyAI.Message? Type122 { get; set; } - /// - /// - /// - public global::AssemblyAI.MessageVariant1? Type123 { get; set; } - /// - /// - /// - public global::AssemblyAI.MessageVariant2? Type124 { get; set; } - /// - /// - /// - public global::AssemblyAI.MessageVariant3? Type125 { get; set; } - /// - /// - /// - public global::AssemblyAI.MessageVariant4? Type126 { get; set; } - /// - /// - /// - public global::AssemblyAI.MessageDiscriminator? Type127 { get; set; } - /// - /// - /// - public global::AssemblyAI.MessageDiscriminatorRole? Type128 { get; set; } - /// - /// - /// - public global::AssemblyAI.ToolType? Type129 { get; set; } - /// - /// - /// - public global::AssemblyAI.FunctionDescription? Type130 { get; set; } - /// - /// - /// - public global::AssemblyAI.Tool? Type131 { get; set; } - /// - /// - /// - public global::AssemblyAI.ToolChoice0? Type132 { get; set; } - /// - /// - /// - public global::AssemblyAI.ToolChoiceOneOf1Type? Type133 { get; set; } - /// - /// - /// - public global::AssemblyAI.ToolChoiceOneOf1Function? Type134 { get; set; } - /// - /// - /// - public global::AssemblyAI.ToolChoice1? Type135 { get; set; } - /// - /// - /// - public global::AssemblyAI.ToolChoice? Type136 { get; set; } - /// - /// - /// - public global::AssemblyAI.ResponseFormatType? Type137 { get; set; } - /// - /// - /// - public global::AssemblyAI.JsonSchemaConfig? Type138 { get; set; } - /// - /// - /// - public global::AssemblyAI.ResponseFormat? Type139 { get; set; } - /// - /// - /// - public global::AssemblyAI.FallbackObject? Type140 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type141 { get; set; } - /// - /// - /// - public global::AssemblyAI.FallbackConfig? Type142 { get; set; } - /// - /// - /// - public global::AssemblyAI.ReasoningEffort? Type143 { get; set; } - /// - /// - /// - public global::AssemblyAI.Reasoning? Type144 { get; set; } - /// - /// - /// - public global::AssemblyAI.PostProcessingStepType? Type145 { get; set; } - /// - /// - /// - public global::AssemblyAI.PostProcessingStep? Type146 { get; set; } - /// - /// - /// - public global::AssemblyAI.LLMGatewayRequest? Type147 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type148 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type149 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type150 { get; set; } - /// - /// - /// - public global::AssemblyAI.FunctionToolCallType? Type151 { get; set; } - /// - /// - /// - public global::AssemblyAI.FunctionCall? Type152 { get; set; } - /// - /// - /// - public global::AssemblyAI.FunctionToolCall? Type153 { get; set; } - /// - /// - /// - public global::AssemblyAI.ResponseMessage? Type154 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type155 { get; set; } - /// - /// - /// - public global::AssemblyAI.Choice? Type156 { get; set; } - /// - /// - /// - public global::AssemblyAI.ResponseRequest? Type157 { get; set; } - /// - /// - /// - public global::AssemblyAI.Usage? Type158 { get; set; } - /// - /// - /// - public global::AssemblyAI.Response? Type159 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type160 { get; set; } - /// - /// - /// - public long? Type161 { get; set; } - /// - /// - /// - public global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest? Type162 { get; set; } - /// - /// - /// - public global::AssemblyAI.UnderstandingRequestSpeechUnderstanding? Type163 { get; set; } - /// - /// - /// - public global::AssemblyAI.UnderstandingRequest? Type164 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation? Type165 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse? Type166 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding? Type167 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItems? Type168 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayTranslationResponseWordsItems? Type169 { get; set; } - /// - /// - /// - public global::AssemblyAI.LLMGatewayTranslationResponse? Type170 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type171 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type172 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification? Type173 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse? Type174 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding? Type175 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseUtterancesItems? Type176 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseWordsItems? Type177 { get; set; } - /// - /// - /// - public global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? Type178 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type179 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type180 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems? Type181 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting? Type182 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type183 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse? Type184 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding? Type185 { get; set; } - /// - /// - /// - public global::AssemblyAI.LlmGatewayCustomFormattingResponseUtterancesItems? Type186 { get; set; } - /// - /// - /// - public global::AssemblyAI.LLMGatewayCustomFormattingResponse? Type187 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type188 { get; set; } - /// - /// - /// - public global::AssemblyAI.CreateSpeechUnderstandingResponse200? Type189 { get; set; } - /// - /// - /// - public global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200? Type190 { get; set; } - /// - /// - /// - public global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200? Type191 { get; set; } - /// - /// - /// - public byte[]? Type192 { get; set; } + public global::System.Collections.Generic.IList? Type7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType0 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType1 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType2 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType3 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType4 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType5 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType6 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType7 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType8 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType9 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType10 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType11 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType12 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType13 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType14 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType15 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType16 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType17 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType18 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType19 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType20 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType21 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType22 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType23 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType24 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType25 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType26 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType27 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType28 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType29 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType30 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType31 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType32 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType33 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType34 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType0 { get; set; } } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AudioIntelligenceModelStatus.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AudioIntelligenceModelStatus.g.cs deleted file mode 100644 index 242a75f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AudioIntelligenceModelStatus.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Either success, or unavailable in the rare case that the model failed - /// - public enum AudioIntelligenceModelStatus - { - /// - /// - /// - Success, - /// - /// - /// - Unavailable, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AudioIntelligenceModelStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AudioIntelligenceModelStatus value) - { - return value switch - { - AudioIntelligenceModelStatus.Success => "success", - AudioIntelligenceModelStatus.Unavailable => "unavailable", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AudioIntelligenceModelStatus? ToEnum(string value) - { - return value switch - { - "success" => AudioIntelligenceModelStatus.Success, - "unavailable" => AudioIntelligenceModelStatus.Unavailable, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.Json.g.cs deleted file mode 100644 index ee8e5b1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class AutoHighlightResult - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.AutoHighlightResult? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.AutoHighlightResult), - jsonSerializerContext) as global::AssemblyAI.AutoHighlightResult; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.AutoHighlightResult? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.AutoHighlightResult), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.AutoHighlightResult; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.g.cs deleted file mode 100644 index 151d541..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.g.cs +++ /dev/null @@ -1,83 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class AutoHighlightResult - { - /// - /// The total number of times the key phrase appears in the audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("count")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Count { get; set; } - - /// - /// The total relevancy to the overall audio file of this key phrase - a greater number means more relevant - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rank")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Rank { get; set; } - - /// - /// The text itself of the key phrase - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// The timestamp of the of the key phrase - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timestamps")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Timestamps { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The total number of times the key phrase appears in the audio file - /// - /// - /// The total relevancy to the overall audio file of this key phrase - a greater number means more relevant - /// - /// - /// The text itself of the key phrase - /// - /// - /// The timestamp of the of the key phrase - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AutoHighlightResult( - int count, - double rank, - string text, - global::System.Collections.Generic.IList timestamps) - { - this.Count = count; - this.Rank = rank; - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Timestamps = timestamps ?? throw new global::System.ArgumentNullException(nameof(timestamps)); - } - - /// - /// Initializes a new instance of the class. - /// - public AutoHighlightResult() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.Json.g.cs deleted file mode 100644 index abe78cb..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class AutoHighlightsResult - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.AutoHighlightsResult? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.AutoHighlightsResult), - jsonSerializerContext) as global::AssemblyAI.AutoHighlightsResult; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.AutoHighlightsResult? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.AutoHighlightsResult), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.AutoHighlightsResult; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.g.cs deleted file mode 100644 index b7e15d0..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.g.cs +++ /dev/null @@ -1,61 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// An array of results for the Key Phrases model, if it is enabled.
- /// See [Key phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights) for more information. - ///
- public sealed partial class AutoHighlightsResult - { - /// - /// The status of the Key Phrases model. Either success, or unavailable in the rare case that the model failed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.AudioIntelligenceModelStatus Status { get; set; } - - /// - /// A temporally-sequential array of Key Phrases - /// - [global::System.Text.Json.Serialization.JsonPropertyName("results")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Results { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The status of the Key Phrases model. Either success, or unavailable in the rare case that the model failed. - /// - /// - /// A temporally-sequential array of Key Phrases - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AutoHighlightsResult( - global::AssemblyAI.AudioIntelligenceModelStatus status, - global::System.Collections.Generic.IList results) - { - this.Status = status; - this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); - } - - /// - /// Initializes a new instance of the class. - /// - public AutoHighlightsResult() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.Json.g.cs deleted file mode 100644 index 2793f8a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class Chapter - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.Chapter? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.Chapter), - jsonSerializerContext) as global::AssemblyAI.Chapter; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.Chapter? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.Chapter), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Chapter; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.g.cs deleted file mode 100644 index 8789b4c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.g.cs +++ /dev/null @@ -1,95 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Chapter of the audio file - /// - public sealed partial class Chapter - { - /// - /// An ultra-short summary (just a few words) of the content spoken in the chapter - /// - [global::System.Text.Json.Serialization.JsonPropertyName("gist")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Gist { get; set; } - - /// - /// A single sentence summary of the content spoken during the chapter - /// - [global::System.Text.Json.Serialization.JsonPropertyName("headline")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Headline { get; set; } - - /// - /// A one paragraph summary of the content spoken during the chapter - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Summary { get; set; } - - /// - /// The starting time, in milliseconds, for the chapter - /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } - - /// - /// The starting time, in milliseconds, for the chapter - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// An ultra-short summary (just a few words) of the content spoken in the chapter - /// - /// - /// A single sentence summary of the content spoken during the chapter - /// - /// - /// A one paragraph summary of the content spoken during the chapter - /// - /// - /// The starting time, in milliseconds, for the chapter - /// - /// - /// The starting time, in milliseconds, for the chapter - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Chapter( - string gist, - string headline, - string summary, - int start, - int end) - { - this.Gist = gist ?? throw new global::System.ArgumentNullException(nameof(gist)); - this.Headline = headline ?? throw new global::System.ArgumentNullException(nameof(headline)); - this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); - this.Start = start; - this.End = end; - } - - /// - /// Initializes a new instance of the class. - /// - public Chapter() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Choice.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Choice.Json.g.cs deleted file mode 100644 index 1f2a3ac..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Choice.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class Choice - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.Choice? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.Choice), - jsonSerializerContext) as global::AssemblyAI.Choice; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.Choice? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.Choice), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Choice; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Choice.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Choice.g.cs deleted file mode 100644 index 4d0a127..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Choice.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class Choice - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public global::AssemblyAI.ResponseMessage? Message { get; set; } - - /// - /// The reason the model stopped generating tokens. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - public string? FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// The reason the model stopped generating tokens. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Choice( - global::AssemblyAI.ResponseMessage? message, - string? finishReason) - { - this.Message = message; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public Choice() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentPart.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentPart.Json.g.cs deleted file mode 100644 index 58237e3..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentPart.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ContentPart - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ContentPart? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ContentPart), - jsonSerializerContext) as global::AssemblyAI.ContentPart; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ContentPart? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ContentPart), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ContentPart; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentPart.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentPart.g.cs deleted file mode 100644 index 5a2523f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentPart.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class ContentPart - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.Json.g.cs deleted file mode 100644 index 97a0805..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ContentSafetyLabel - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ContentSafetyLabel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ContentSafetyLabel), - jsonSerializerContext) as global::AssemblyAI.ContentSafetyLabel; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ContentSafetyLabel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ContentSafetyLabel), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ContentSafetyLabel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.g.cs deleted file mode 100644 index 01707be..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class ContentSafetyLabel - { - /// - /// The label of the sensitive topic - /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Label { get; set; } - - /// - /// The confidence score for the topic being discussed, from 0 to 1 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } - - /// - /// How severely the topic is discussed in the section, from 0 to 1 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("severity")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Severity { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The label of the sensitive topic - /// - /// - /// The confidence score for the topic being discussed, from 0 to 1 - /// - /// - /// How severely the topic is discussed in the section, from 0 to 1 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ContentSafetyLabel( - string label, - double confidence, - double severity) - { - this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); - this.Confidence = confidence; - this.Severity = severity; - } - - /// - /// Initializes a new instance of the class. - /// - public ContentSafetyLabel() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.Json.g.cs deleted file mode 100644 index 58f192f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ContentSafetyLabelResult - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ContentSafetyLabelResult? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ContentSafetyLabelResult), - jsonSerializerContext) as global::AssemblyAI.ContentSafetyLabelResult; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ContentSafetyLabelResult? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ContentSafetyLabelResult), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ContentSafetyLabelResult; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.g.cs deleted file mode 100644 index 7f2c950..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.g.cs +++ /dev/null @@ -1,95 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class ContentSafetyLabelResult - { - /// - /// The transcript of the section flagged by the Content Moderation model - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// An array of safety labels, one per sensitive topic that was detected in the section - /// - [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Labels { get; set; } - - /// - /// The sentence index at which the section begins - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sentences_idx_start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int SentencesIdxStart { get; set; } - - /// - /// The sentence index at which the section ends - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sentences_idx_end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int SentencesIdxEnd { get; set; } - - /// - /// Timestamp information for the section - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.Timestamp Timestamp { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The transcript of the section flagged by the Content Moderation model - /// - /// - /// An array of safety labels, one per sensitive topic that was detected in the section - /// - /// - /// The sentence index at which the section begins - /// - /// - /// The sentence index at which the section ends - /// - /// - /// Timestamp information for the section - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ContentSafetyLabelResult( - string text, - global::System.Collections.Generic.IList labels, - int sentencesIdxStart, - int sentencesIdxEnd, - global::AssemblyAI.Timestamp timestamp) - { - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Labels = labels ?? throw new global::System.ArgumentNullException(nameof(labels)); - this.SentencesIdxStart = sentencesIdxStart; - this.SentencesIdxEnd = sentencesIdxEnd; - this.Timestamp = timestamp ?? throw new global::System.ArgumentNullException(nameof(timestamp)); - } - - /// - /// Initializes a new instance of the class. - /// - public ContentSafetyLabelResult() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.Json.g.cs deleted file mode 100644 index 9ecc2b5..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ContentSafetyLabelsResult - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ContentSafetyLabelsResult? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ContentSafetyLabelsResult), - jsonSerializerContext) as global::AssemblyAI.ContentSafetyLabelsResult; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ContentSafetyLabelsResult? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ContentSafetyLabelsResult), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ContentSafetyLabelsResult; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs deleted file mode 100644 index 35af7a1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs +++ /dev/null @@ -1,85 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// An array of results for the Content Moderation model, if it is enabled.
- /// See [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information. - ///
- public sealed partial class ContentSafetyLabelsResult - { - /// - /// The status of the Content Moderation model. Either success, or unavailable in the rare case that the model failed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.AudioIntelligenceModelStatus Status { get; set; } - - /// - /// An array of results for the Content Moderation model - /// - [global::System.Text.Json.Serialization.JsonPropertyName("results")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Results { get; set; } - - /// - /// A summary of the Content Moderation confidence results for the entire audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.Dictionary Summary { get; set; } - - /// - /// A summary of the Content Moderation severity results for the entire audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("severity_score_summary")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.Dictionary SeverityScoreSummary { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The status of the Content Moderation model. Either success, or unavailable in the rare case that the model failed. - /// - /// - /// An array of results for the Content Moderation model - /// - /// - /// A summary of the Content Moderation confidence results for the entire audio file - /// - /// - /// A summary of the Content Moderation severity results for the entire audio file - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ContentSafetyLabelsResult( - global::AssemblyAI.AudioIntelligenceModelStatus status, - global::System.Collections.Generic.IList results, - global::System.Collections.Generic.Dictionary summary, - global::System.Collections.Generic.Dictionary severityScoreSummary) - { - this.Status = status; - this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); - this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); - this.SeverityScoreSummary = severityScoreSummary ?? throw new global::System.ArgumentNullException(nameof(severityScoreSummary)); - } - - /// - /// Initializes a new instance of the class. - /// - public ContentSafetyLabelsResult() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSeverityScoreSummary.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSeverityScoreSummary.Json.g.cs deleted file mode 100644 index 711de64..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSeverityScoreSummary.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ContentSafetyLabelsResultSeverityScoreSummary - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ContentSafetyLabelsResultSeverityScoreSummary? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ContentSafetyLabelsResultSeverityScoreSummary), - jsonSerializerContext) as global::AssemblyAI.ContentSafetyLabelsResultSeverityScoreSummary; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ContentSafetyLabelsResultSeverityScoreSummary? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ContentSafetyLabelsResultSeverityScoreSummary), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ContentSafetyLabelsResultSeverityScoreSummary; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSeverityScoreSummary.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSeverityScoreSummary.g.cs deleted file mode 100644 index dde754c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSeverityScoreSummary.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A summary of the Content Moderation severity results for the entire audio file - /// - public sealed partial class ContentSafetyLabelsResultSeverityScoreSummary - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSummary.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSummary.Json.g.cs deleted file mode 100644 index 2da5f54..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSummary.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ContentSafetyLabelsResultSummary - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ContentSafetyLabelsResultSummary? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ContentSafetyLabelsResultSummary), - jsonSerializerContext) as global::AssemblyAI.ContentSafetyLabelsResultSummary; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ContentSafetyLabelsResultSummary? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ContentSafetyLabelsResultSummary), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ContentSafetyLabelsResultSummary; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSummary.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSummary.g.cs deleted file mode 100644 index f9eadb2..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResultSummary.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A summary of the Content Moderation confidence results for the entire audio file - /// - public sealed partial class ContentSafetyLabelsResultSummary - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateSpeechUnderstandingResponse200.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateSpeechUnderstandingResponse200.Json.g.cs deleted file mode 100644 index 5a3796c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateSpeechUnderstandingResponse200.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public readonly partial struct CreateSpeechUnderstandingResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.CreateSpeechUnderstandingResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.CreateSpeechUnderstandingResponse200), - jsonSerializerContext) as global::AssemblyAI.CreateSpeechUnderstandingResponse200?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.CreateSpeechUnderstandingResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.CreateSpeechUnderstandingResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.CreateSpeechUnderstandingResponse200?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateSpeechUnderstandingResponse200.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateSpeechUnderstandingResponse200.g.cs deleted file mode 100644 index eea2034..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateSpeechUnderstandingResponse200.g.cs +++ /dev/null @@ -1,378 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public readonly partial struct CreateSpeechUnderstandingResponse200 : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.LLMGatewayTranslationResponse? LLMGatewayTranslationResponse { get; init; } -#else - public global::AssemblyAI.LLMGatewayTranslationResponse? LLMGatewayTranslationResponse { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LLMGatewayTranslationResponse))] -#endif - public bool IsLLMGatewayTranslationResponse => LLMGatewayTranslationResponse != null; - - /// - /// - /// - public bool TryPickLLMGatewayTranslationResponse( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.LLMGatewayTranslationResponse? value) - { - value = LLMGatewayTranslationResponse; - return IsLLMGatewayTranslationResponse; - } - - /// - /// - /// - public global::AssemblyAI.LLMGatewayTranslationResponse PickLLMGatewayTranslationResponse() => IsLLMGatewayTranslationResponse - ? LLMGatewayTranslationResponse! - : throw new global::System.InvalidOperationException($"Expected union variant 'LLMGatewayTranslationResponse' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? LLMGatewaySpeakerIdentificationResponse { get; init; } -#else - public global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? LLMGatewaySpeakerIdentificationResponse { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LLMGatewaySpeakerIdentificationResponse))] -#endif - public bool IsLLMGatewaySpeakerIdentificationResponse => LLMGatewaySpeakerIdentificationResponse != null; - - /// - /// - /// - public bool TryPickLLMGatewaySpeakerIdentificationResponse( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? value) - { - value = LLMGatewaySpeakerIdentificationResponse; - return IsLLMGatewaySpeakerIdentificationResponse; - } - - /// - /// - /// - public global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse PickLLMGatewaySpeakerIdentificationResponse() => IsLLMGatewaySpeakerIdentificationResponse - ? LLMGatewaySpeakerIdentificationResponse! - : throw new global::System.InvalidOperationException($"Expected union variant 'LLMGatewaySpeakerIdentificationResponse' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.LLMGatewayCustomFormattingResponse? LLMGatewayCustomFormattingResponse { get; init; } -#else - public global::AssemblyAI.LLMGatewayCustomFormattingResponse? LLMGatewayCustomFormattingResponse { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LLMGatewayCustomFormattingResponse))] -#endif - public bool IsLLMGatewayCustomFormattingResponse => LLMGatewayCustomFormattingResponse != null; - - /// - /// - /// - public bool TryPickLLMGatewayCustomFormattingResponse( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.LLMGatewayCustomFormattingResponse? value) - { - value = LLMGatewayCustomFormattingResponse; - return IsLLMGatewayCustomFormattingResponse; - } - - /// - /// - /// - public global::AssemblyAI.LLMGatewayCustomFormattingResponse PickLLMGatewayCustomFormattingResponse() => IsLLMGatewayCustomFormattingResponse - ? LLMGatewayCustomFormattingResponse! - : throw new global::System.InvalidOperationException($"Expected union variant 'LLMGatewayCustomFormattingResponse' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator CreateSpeechUnderstandingResponse200(global::AssemblyAI.LLMGatewayTranslationResponse value) => new CreateSpeechUnderstandingResponse200((global::AssemblyAI.LLMGatewayTranslationResponse?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.LLMGatewayTranslationResponse?(CreateSpeechUnderstandingResponse200 @this) => @this.LLMGatewayTranslationResponse; - - /// - /// - /// - public CreateSpeechUnderstandingResponse200(global::AssemblyAI.LLMGatewayTranslationResponse? value) - { - LLMGatewayTranslationResponse = value; - } - - /// - /// - /// - public static CreateSpeechUnderstandingResponse200 FromLLMGatewayTranslationResponse(global::AssemblyAI.LLMGatewayTranslationResponse? value) => new CreateSpeechUnderstandingResponse200(value); - - /// - /// - /// - public static implicit operator CreateSpeechUnderstandingResponse200(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse value) => new CreateSpeechUnderstandingResponse200((global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse?(CreateSpeechUnderstandingResponse200 @this) => @this.LLMGatewaySpeakerIdentificationResponse; - - /// - /// - /// - public CreateSpeechUnderstandingResponse200(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? value) - { - LLMGatewaySpeakerIdentificationResponse = value; - } - - /// - /// - /// - public static CreateSpeechUnderstandingResponse200 FromLLMGatewaySpeakerIdentificationResponse(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? value) => new CreateSpeechUnderstandingResponse200(value); - - /// - /// - /// - public static implicit operator CreateSpeechUnderstandingResponse200(global::AssemblyAI.LLMGatewayCustomFormattingResponse value) => new CreateSpeechUnderstandingResponse200((global::AssemblyAI.LLMGatewayCustomFormattingResponse?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.LLMGatewayCustomFormattingResponse?(CreateSpeechUnderstandingResponse200 @this) => @this.LLMGatewayCustomFormattingResponse; - - /// - /// - /// - public CreateSpeechUnderstandingResponse200(global::AssemblyAI.LLMGatewayCustomFormattingResponse? value) - { - LLMGatewayCustomFormattingResponse = value; - } - - /// - /// - /// - public static CreateSpeechUnderstandingResponse200 FromLLMGatewayCustomFormattingResponse(global::AssemblyAI.LLMGatewayCustomFormattingResponse? value) => new CreateSpeechUnderstandingResponse200(value); - - /// - /// - /// - public CreateSpeechUnderstandingResponse200( - global::AssemblyAI.LLMGatewayTranslationResponse? lLMGatewayTranslationResponse, - global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? lLMGatewaySpeakerIdentificationResponse, - global::AssemblyAI.LLMGatewayCustomFormattingResponse? lLMGatewayCustomFormattingResponse - ) - { - LLMGatewayTranslationResponse = lLMGatewayTranslationResponse; - LLMGatewaySpeakerIdentificationResponse = lLMGatewaySpeakerIdentificationResponse; - LLMGatewayCustomFormattingResponse = lLMGatewayCustomFormattingResponse; - } - - /// - /// - /// - public object? Object => - LLMGatewayCustomFormattingResponse as object ?? - LLMGatewaySpeakerIdentificationResponse as object ?? - LLMGatewayTranslationResponse as object - ; - - /// - /// - /// - public override string? ToString() => - LLMGatewayTranslationResponse?.ToString() ?? - LLMGatewaySpeakerIdentificationResponse?.ToString() ?? - LLMGatewayCustomFormattingResponse?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsLLMGatewayTranslationResponse && !IsLLMGatewaySpeakerIdentificationResponse && !IsLLMGatewayCustomFormattingResponse || !IsLLMGatewayTranslationResponse && IsLLMGatewaySpeakerIdentificationResponse && !IsLLMGatewayCustomFormattingResponse || !IsLLMGatewayTranslationResponse && !IsLLMGatewaySpeakerIdentificationResponse && IsLLMGatewayCustomFormattingResponse; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? lLMGatewayTranslationResponse = null, - global::System.Func? lLMGatewaySpeakerIdentificationResponse = null, - global::System.Func? lLMGatewayCustomFormattingResponse = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsLLMGatewayTranslationResponse && lLMGatewayTranslationResponse != null) - { - return lLMGatewayTranslationResponse(LLMGatewayTranslationResponse!); - } - else if (IsLLMGatewaySpeakerIdentificationResponse && lLMGatewaySpeakerIdentificationResponse != null) - { - return lLMGatewaySpeakerIdentificationResponse(LLMGatewaySpeakerIdentificationResponse!); - } - else if (IsLLMGatewayCustomFormattingResponse && lLMGatewayCustomFormattingResponse != null) - { - return lLMGatewayCustomFormattingResponse(LLMGatewayCustomFormattingResponse!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? lLMGatewayTranslationResponse = null, - - global::System.Action? lLMGatewaySpeakerIdentificationResponse = null, - - global::System.Action? lLMGatewayCustomFormattingResponse = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsLLMGatewayTranslationResponse) - { - lLMGatewayTranslationResponse?.Invoke(LLMGatewayTranslationResponse!); - } - else if (IsLLMGatewaySpeakerIdentificationResponse) - { - lLMGatewaySpeakerIdentificationResponse?.Invoke(LLMGatewaySpeakerIdentificationResponse!); - } - else if (IsLLMGatewayCustomFormattingResponse) - { - lLMGatewayCustomFormattingResponse?.Invoke(LLMGatewayCustomFormattingResponse!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? lLMGatewayTranslationResponse = null, - global::System.Action? lLMGatewaySpeakerIdentificationResponse = null, - global::System.Action? lLMGatewayCustomFormattingResponse = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsLLMGatewayTranslationResponse) - { - lLMGatewayTranslationResponse?.Invoke(LLMGatewayTranslationResponse!); - } - else if (IsLLMGatewaySpeakerIdentificationResponse) - { - lLMGatewaySpeakerIdentificationResponse?.Invoke(LLMGatewaySpeakerIdentificationResponse!); - } - else if (IsLLMGatewayCustomFormattingResponse) - { - lLMGatewayCustomFormattingResponse?.Invoke(LLMGatewayCustomFormattingResponse!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - LLMGatewayTranslationResponse, - typeof(global::AssemblyAI.LLMGatewayTranslationResponse), - LLMGatewaySpeakerIdentificationResponse, - typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse), - LLMGatewayCustomFormattingResponse, - typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(CreateSpeechUnderstandingResponse200 other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(LLMGatewayTranslationResponse, other.LLMGatewayTranslationResponse) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(LLMGatewaySpeakerIdentificationResponse, other.LLMGatewaySpeakerIdentificationResponse) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(LLMGatewayCustomFormattingResponse, other.LLMGatewayCustomFormattingResponse) - ; - } - - /// - /// - /// - public static bool operator ==(CreateSpeechUnderstandingResponse200 obj1, CreateSpeechUnderstandingResponse200 obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(CreateSpeechUnderstandingResponse200 obj1, CreateSpeechUnderstandingResponse200 obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is CreateSpeechUnderstandingResponse200 o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.Json.g.cs deleted file mode 100644 index a195227..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class CustomFormattingRequestBody - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.CustomFormattingRequestBody? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.CustomFormattingRequestBody), - jsonSerializerContext) as global::AssemblyAI.CustomFormattingRequestBody; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.CustomFormattingRequestBody? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.CustomFormattingRequestBody), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.CustomFormattingRequestBody; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.g.cs deleted file mode 100644 index 7ea956c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Request body for [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). - /// - public sealed partial class CustomFormattingRequestBody - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_formatting")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting CustomFormatting { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CustomFormattingRequestBody( - global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting customFormatting) - { - this.CustomFormatting = customFormatting ?? throw new global::System.ArgumentNullException(nameof(customFormatting)); - } - - /// - /// Initializes a new instance of the class. - /// - public CustomFormattingRequestBody() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.Json.g.cs deleted file mode 100644 index 248fd82..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class CustomFormattingRequestBodyCustomFormatting - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting), - jsonSerializerContext) as global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.g.cs deleted file mode 100644 index 5772e61..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class CustomFormattingRequestBodyCustomFormatting - { - /// - /// Date format pattern (e.g., `"mm/dd/yyyy"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("date")] - public string? Date { get; set; } - - /// - /// Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("phone_number")] - public string? PhoneNumber { get; set; } - - /// - /// Email format pattern (e.g., `"username@domain.com"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("email")] - public string? Email { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Date format pattern (e.g., `"mm/dd/yyyy"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details. - /// - /// - /// Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details. - /// - /// - /// Email format pattern (e.g., `"username@domain.com"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CustomFormattingRequestBodyCustomFormatting( - string? date, - string? phoneNumber, - string? email) - { - this.Date = date; - this.PhoneNumber = phoneNumber; - this.Email = email; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomFormattingRequestBodyCustomFormatting() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.Json.g.cs deleted file mode 100644 index fe6409f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class CustomFormattingResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.CustomFormattingResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.CustomFormattingResponse), - jsonSerializerContext) as global::AssemblyAI.CustomFormattingResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.CustomFormattingResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.CustomFormattingResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.CustomFormattingResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.g.cs deleted file mode 100644 index b1dd390..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class CustomFormattingResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_formatting")] - public global::AssemblyAI.CustomFormattingResponseCustomFormatting? CustomFormatting { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CustomFormattingResponse( - global::AssemblyAI.CustomFormattingResponseCustomFormatting? customFormatting) - { - this.CustomFormatting = customFormatting; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomFormattingResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.Json.g.cs deleted file mode 100644 index ed8a58a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class CustomFormattingResponseCustomFormatting - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.CustomFormattingResponseCustomFormatting? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.CustomFormattingResponseCustomFormatting), - jsonSerializerContext) as global::AssemblyAI.CustomFormattingResponseCustomFormatting; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.CustomFormattingResponseCustomFormatting? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.CustomFormattingResponseCustomFormatting), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.CustomFormattingResponseCustomFormatting; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.g.cs deleted file mode 100644 index f237289..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class CustomFormattingResponseCustomFormatting - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mapping")] - public global::System.Collections.Generic.Dictionary? Mapping { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("formatted_text")] - public string? FormattedText { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CustomFormattingResponseCustomFormatting( - global::System.Collections.Generic.Dictionary? mapping, - string? formattedText) - { - this.Mapping = mapping; - this.FormattedText = formattedText; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomFormattingResponseCustomFormatting() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.Json.g.cs deleted file mode 100644 index db71a25..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class CustomFormattingResponseCustomFormattingMapping - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.CustomFormattingResponseCustomFormattingMapping? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.CustomFormattingResponseCustomFormattingMapping), - jsonSerializerContext) as global::AssemblyAI.CustomFormattingResponseCustomFormattingMapping; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.CustomFormattingResponseCustomFormattingMapping? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.CustomFormattingResponseCustomFormattingMapping), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.CustomFormattingResponseCustomFormattingMapping; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.g.cs deleted file mode 100644 index e3311a6..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class CustomFormattingResponseCustomFormattingMapping - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse.Json.g.cs deleted file mode 100644 index 59238ac..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class DeleteResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.DeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.DeleteResponse), - jsonSerializerContext) as global::AssemblyAI.DeleteResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.DeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.DeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.DeleteResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse.g.cs deleted file mode 100644 index b8c1d43..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class DeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse2.Json.g.cs deleted file mode 100644 index d0c635f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class DeleteResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.DeleteResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.DeleteResponse2), - jsonSerializerContext) as global::AssemblyAI.DeleteResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.DeleteResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.DeleteResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.DeleteResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse2.g.cs deleted file mode 100644 index db3ee61..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.DeleteResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class DeleteResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Entity.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Entity.Json.g.cs deleted file mode 100644 index bbc3756..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Entity.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class Entity - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.Entity? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.Entity), - jsonSerializerContext) as global::AssemblyAI.Entity; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.Entity? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.Entity), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Entity; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Entity.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Entity.g.cs deleted file mode 100644 index 7a6ac90..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Entity.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A detected entity - /// - public sealed partial class Entity - { - /// - /// The type of entity for the detected entity - /// - [global::System.Text.Json.Serialization.JsonPropertyName("entity_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.EntityTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.EntityType EntityType { get; set; } - - /// - /// The text for the detected entity - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// The starting time, in milliseconds, at which the detected entity appears in the audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } - - /// - /// The ending time, in milliseconds, for the detected entity in the audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The type of entity for the detected entity - /// - /// - /// The text for the detected entity - /// - /// - /// The starting time, in milliseconds, at which the detected entity appears in the audio file - /// - /// - /// The ending time, in milliseconds, for the detected entity in the audio file - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Entity( - global::AssemblyAI.EntityType entityType, - string text, - int start, - int end) - { - this.EntityType = entityType; - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Start = start; - this.End = end; - } - - /// - /// Initializes a new instance of the class. - /// - public Entity() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.EntityType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.EntityType.g.cs deleted file mode 100644 index 2b7fdd4..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.EntityType.g.cs +++ /dev/null @@ -1,363 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The type of entity for the detected entity - /// - public enum EntityType - { - /// - /// - /// - AccountNumber, - /// - /// - /// - BankingInformation, - /// - /// - /// - BloodType, - /// - /// - /// - CreditCardCvv, - /// - /// - /// - CreditCardExpiration, - /// - /// - /// - CreditCardNumber, - /// - /// - /// - Date, - /// - /// - /// - DateInterval, - /// - /// - /// - DateOfBirth, - /// - /// - /// - DriversLicense, - /// - /// - /// - Drug, - /// - /// - /// - Duration, - /// - /// - /// - EmailAddress, - /// - /// - /// - Event, - /// - /// - /// - Filename, - /// - /// - /// - Gender, - /// - /// - /// - GenderSexuality, - /// - /// - /// - HealthcareNumber, - /// - /// - /// - Injury, - /// - /// - /// - IpAddress, - /// - /// - /// - Language, - /// - /// - /// - Location, - /// - /// - /// - LocationAddress, - /// - /// - /// - LocationAddressStreet, - /// - /// - /// - LocationCity, - /// - /// - /// - LocationCoordinate, - /// - /// - /// - LocationCountry, - /// - /// - /// - LocationState, - /// - /// - /// - LocationZip, - /// - /// - /// - MaritalStatus, - /// - /// - /// - MedicalCondition, - /// - /// - /// - MedicalProcess, - /// - /// - /// - MoneyAmount, - /// - /// - /// - Nationality, - /// - /// - /// - NumberSequence, - /// - /// - /// - Occupation, - /// - /// - /// - Organization, - /// - /// - /// - OrganizationMedicalFacility, - /// - /// - /// - PassportNumber, - /// - /// - /// - Password, - /// - /// - /// - PersonAge, - /// - /// - /// - PersonName, - /// - /// - /// - PhoneNumber, - /// - /// - /// - PhysicalAttribute, - /// - /// - /// - PoliticalAffiliation, - /// - /// - /// - Religion, - /// - /// - /// - Sexuality, - /// - /// - /// - Statistics, - /// - /// - /// - Time, - /// - /// - /// - Url, - /// - /// - /// - UsSocialSecurityNumber, - /// - /// - /// - Username, - /// - /// - /// - VehicleId, - /// - /// - /// - ZodiacSign, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class EntityTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this EntityType value) - { - return value switch - { - EntityType.AccountNumber => "account_number", - EntityType.BankingInformation => "banking_information", - EntityType.BloodType => "blood_type", - EntityType.CreditCardCvv => "credit_card_cvv", - EntityType.CreditCardExpiration => "credit_card_expiration", - EntityType.CreditCardNumber => "credit_card_number", - EntityType.Date => "date", - EntityType.DateInterval => "date_interval", - EntityType.DateOfBirth => "date_of_birth", - EntityType.DriversLicense => "drivers_license", - EntityType.Drug => "drug", - EntityType.Duration => "duration", - EntityType.EmailAddress => "email_address", - EntityType.Event => "event", - EntityType.Filename => "filename", - EntityType.Gender => "gender", - EntityType.GenderSexuality => "gender_sexuality", - EntityType.HealthcareNumber => "healthcare_number", - EntityType.Injury => "injury", - EntityType.IpAddress => "ip_address", - EntityType.Language => "language", - EntityType.Location => "location", - EntityType.LocationAddress => "location_address", - EntityType.LocationAddressStreet => "location_address_street", - EntityType.LocationCity => "location_city", - EntityType.LocationCoordinate => "location_coordinate", - EntityType.LocationCountry => "location_country", - EntityType.LocationState => "location_state", - EntityType.LocationZip => "location_zip", - EntityType.MaritalStatus => "marital_status", - EntityType.MedicalCondition => "medical_condition", - EntityType.MedicalProcess => "medical_process", - EntityType.MoneyAmount => "money_amount", - EntityType.Nationality => "nationality", - EntityType.NumberSequence => "number_sequence", - EntityType.Occupation => "occupation", - EntityType.Organization => "organization", - EntityType.OrganizationMedicalFacility => "organization_medical_facility", - EntityType.PassportNumber => "passport_number", - EntityType.Password => "password", - EntityType.PersonAge => "person_age", - EntityType.PersonName => "person_name", - EntityType.PhoneNumber => "phone_number", - EntityType.PhysicalAttribute => "physical_attribute", - EntityType.PoliticalAffiliation => "political_affiliation", - EntityType.Religion => "religion", - EntityType.Sexuality => "sexuality", - EntityType.Statistics => "statistics", - EntityType.Time => "time", - EntityType.Url => "url", - EntityType.UsSocialSecurityNumber => "us_social_security_number", - EntityType.Username => "username", - EntityType.VehicleId => "vehicle_id", - EntityType.ZodiacSign => "zodiac_sign", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static EntityType? ToEnum(string value) - { - return value switch - { - "account_number" => EntityType.AccountNumber, - "banking_information" => EntityType.BankingInformation, - "blood_type" => EntityType.BloodType, - "credit_card_cvv" => EntityType.CreditCardCvv, - "credit_card_expiration" => EntityType.CreditCardExpiration, - "credit_card_number" => EntityType.CreditCardNumber, - "date" => EntityType.Date, - "date_interval" => EntityType.DateInterval, - "date_of_birth" => EntityType.DateOfBirth, - "drivers_license" => EntityType.DriversLicense, - "drug" => EntityType.Drug, - "duration" => EntityType.Duration, - "email_address" => EntityType.EmailAddress, - "event" => EntityType.Event, - "filename" => EntityType.Filename, - "gender" => EntityType.Gender, - "gender_sexuality" => EntityType.GenderSexuality, - "healthcare_number" => EntityType.HealthcareNumber, - "injury" => EntityType.Injury, - "ip_address" => EntityType.IpAddress, - "language" => EntityType.Language, - "location" => EntityType.Location, - "location_address" => EntityType.LocationAddress, - "location_address_street" => EntityType.LocationAddressStreet, - "location_city" => EntityType.LocationCity, - "location_coordinate" => EntityType.LocationCoordinate, - "location_country" => EntityType.LocationCountry, - "location_state" => EntityType.LocationState, - "location_zip" => EntityType.LocationZip, - "marital_status" => EntityType.MaritalStatus, - "medical_condition" => EntityType.MedicalCondition, - "medical_process" => EntityType.MedicalProcess, - "money_amount" => EntityType.MoneyAmount, - "nationality" => EntityType.Nationality, - "number_sequence" => EntityType.NumberSequence, - "occupation" => EntityType.Occupation, - "organization" => EntityType.Organization, - "organization_medical_facility" => EntityType.OrganizationMedicalFacility, - "passport_number" => EntityType.PassportNumber, - "password" => EntityType.Password, - "person_age" => EntityType.PersonAge, - "person_name" => EntityType.PersonName, - "phone_number" => EntityType.PhoneNumber, - "physical_attribute" => EntityType.PhysicalAttribute, - "political_affiliation" => EntityType.PoliticalAffiliation, - "religion" => EntityType.Religion, - "sexuality" => EntityType.Sexuality, - "statistics" => EntityType.Statistics, - "time" => EntityType.Time, - "url" => EntityType.Url, - "us_social_security_number" => EntityType.UsSocialSecurityNumber, - "username" => EntityType.Username, - "vehicle_id" => EntityType.VehicleId, - "zodiac_sign" => EntityType.ZodiacSign, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Error.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Error.g.cs index 838e392..f0ff649 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Error.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Error.g.cs @@ -9,23 +9,18 @@ namespace AssemblyAI public sealed partial class Error { /// - /// Error message describing what went wrong + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Error1 { get; set; } + public required int Error1 { get; set; } /// - /// Error code for programmatic handling + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } - - /// - /// Additional error details if available - /// - [global::System.Text.Json.Serialization.JsonPropertyName("details")] - public global::AssemblyAI.ErrorDetails? Details { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -36,26 +31,17 @@ public sealed partial class Error /// /// Initializes a new instance of the class. /// - /// - /// Error message describing what went wrong - /// - /// - /// Error code for programmatic handling - /// - /// - /// Additional error details if available - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Error( - string error1, - string? code, - global::AssemblyAI.ErrorDetails? details) + int error1, + string message) { - this.Error1 = error1 ?? throw new global::System.ArgumentNullException(nameof(error1)); - this.Code = code; - this.Details = details; + this.Error1 = error1; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorDetails.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorDetails.Json.g.cs deleted file mode 100644 index 6d7203f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorDetails.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ErrorDetails - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ErrorDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ErrorDetails), - jsonSerializerContext) as global::AssemblyAI.ErrorDetails; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ErrorDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ErrorDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ErrorDetails; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorDetails.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorDetails.g.cs deleted file mode 100644 index 3b8d701..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorDetails.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Additional error details if available - /// - public sealed partial class ErrorDetails - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackConfig.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackConfig.Json.g.cs deleted file mode 100644 index 1c9756f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackConfig.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class FallbackConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.FallbackConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.FallbackConfig), - jsonSerializerContext) as global::AssemblyAI.FallbackConfig; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.FallbackConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.FallbackConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.FallbackConfig; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackConfig.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackConfig.g.cs deleted file mode 100644 index 7c8db36..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackConfig.g.cs +++ /dev/null @@ -1,61 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Configuration for fallback behavior. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details. - /// - public sealed partial class FallbackConfig - { - /// - /// Whether to automatically retry the request once after 500ms on failure. Defaults to `true`.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("retry")] - public bool? Retry { get; set; } - - /// - /// The maximum number of fallbacks to traverse. Defaults to `1`, with a maximum of `2`.
- /// Default Value: 1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("depth")] - public int? Depth { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Whether to automatically retry the request once after 500ms on failure. Defaults to `true`.
- /// Default Value: true - /// - /// - /// The maximum number of fallbacks to traverse. Defaults to `1`, with a maximum of `2`.
- /// Default Value: 1 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FallbackConfig( - bool? retry, - int? depth) - { - this.Retry = retry; - this.Depth = depth; - } - - /// - /// Initializes a new instance of the class. - /// - public FallbackConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackObject.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackObject.Json.g.cs deleted file mode 100644 index e818cec..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackObject.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class FallbackObject - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.FallbackObject? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.FallbackObject), - jsonSerializerContext) as global::AssemblyAI.FallbackObject; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.FallbackObject? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.FallbackObject), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.FallbackObject; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackObject.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackObject.g.cs deleted file mode 100644 index f195ecf..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FallbackObject.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A fallback model configuration. Each object must include a `model` and can optionally override any field from the original request. Fields not specified in the fallback inherit the values from the original request. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details. - /// - public sealed partial class FallbackObject - { - /// - /// The fallback model to use. See [LLM Gateway Overview](https://www.assemblyai.com/docs/llm-gateway/overview#available-models) for available models. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Model { get; set; } - - /// - /// Override the messages for the fallback request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messages")] - public global::System.Collections.Generic.IList? Messages { get; set; } - - /// - /// Override the maximum number of tokens to generate in the fallback completion. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_tokens")] - public int? MaxTokens { get; set; } - - /// - /// Override the temperature for the fallback request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The fallback model to use. See [LLM Gateway Overview](https://www.assemblyai.com/docs/llm-gateway/overview#available-models) for available models. - /// - /// - /// Override the messages for the fallback request. - /// - /// - /// Override the maximum number of tokens to generate in the fallback completion. - /// - /// - /// Override the temperature for the fallback request. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FallbackObject( - string model, - global::System.Collections.Generic.IList? messages, - int? maxTokens, - double? temperature) - { - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); - this.Messages = messages; - this.MaxTokens = maxTokens; - this.Temperature = temperature; - } - - /// - /// Initializes a new instance of the class. - /// - public FallbackObject() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionCall.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionCall.Json.g.cs deleted file mode 100644 index 66d6e12..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionCall.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class FunctionCall - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.FunctionCall? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.FunctionCall), - jsonSerializerContext) as global::AssemblyAI.FunctionCall; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.FunctionCall? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.FunctionCall), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.FunctionCall; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescription.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescription.Json.g.cs deleted file mode 100644 index bc7d44d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescription.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class FunctionDescription - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.FunctionDescription? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.FunctionDescription), - jsonSerializerContext) as global::AssemblyAI.FunctionDescription; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.FunctionDescription? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.FunctionDescription), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.FunctionDescription; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescription.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescription.g.cs deleted file mode 100644 index e40f654..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescription.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class FunctionDescription - { - /// - /// The name of the function to be called. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// A description of what the function does. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// A JSON Schema object describing the parameters the function accepts. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Parameters { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The name of the function to be called. - /// - /// - /// A JSON Schema object describing the parameters the function accepts. - /// - /// - /// A description of what the function does. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FunctionDescription( - string name, - object parameters, - string? description) - { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Description = description; - this.Parameters = parameters ?? throw new global::System.ArgumentNullException(nameof(parameters)); - } - - /// - /// Initializes a new instance of the class. - /// - public FunctionDescription() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters.Json.g.cs deleted file mode 100644 index 66caf72..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class FunctionDescriptionParameters - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.FunctionDescriptionParameters? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.FunctionDescriptionParameters), - jsonSerializerContext) as global::AssemblyAI.FunctionDescriptionParameters; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.FunctionDescriptionParameters? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.FunctionDescriptionParameters), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.FunctionDescriptionParameters; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters.g.cs deleted file mode 100644 index d6a68d5..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A JSON Schema object describing the parameters the function accepts. - /// - public sealed partial class FunctionDescriptionParameters - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters2.Json.g.cs deleted file mode 100644 index 83f3e32..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class FunctionDescriptionParameters2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.FunctionDescriptionParameters2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.FunctionDescriptionParameters2), - jsonSerializerContext) as global::AssemblyAI.FunctionDescriptionParameters2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.FunctionDescriptionParameters2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.FunctionDescriptionParameters2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.FunctionDescriptionParameters2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters2.g.cs deleted file mode 100644 index 32849bf..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionDescriptionParameters2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class FunctionDescriptionParameters2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionToolCall.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionToolCall.g.cs deleted file mode 100644 index 8be7d80..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionToolCall.g.cs +++ /dev/null @@ -1,65 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class FunctionToolCall - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.FunctionToolCallTypeJsonConverter))] - public global::AssemblyAI.FunctionToolCallType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("function")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.FunctionCall Function { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FunctionToolCall( - string id, - global::AssemblyAI.FunctionCall function, - global::AssemblyAI.FunctionToolCallType type) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Type = type; - this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function)); - } - - /// - /// Initializes a new instance of the class. - /// - public FunctionToolCall() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionToolCallType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionToolCallType.g.cs deleted file mode 100644 index 3c80a87..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionToolCallType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public enum FunctionToolCallType - { - /// - /// - /// - Function, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class FunctionToolCallTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this FunctionToolCallType value) - { - return value switch - { - FunctionToolCallType.Function => "function", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static FunctionToolCallType? ToEnum(string value) - { - return value switch - { - "function" => FunctionToolCallType.Function, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse.Json.g.cs deleted file mode 100644 index bc0b226..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetParagraphsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetParagraphsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetParagraphsResponse), - jsonSerializerContext) as global::AssemblyAI.GetParagraphsResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetParagraphsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetParagraphsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetParagraphsResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse.g.cs deleted file mode 100644 index 61e60f6..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetParagraphsResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse2.Json.g.cs deleted file mode 100644 index e7d3908..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetParagraphsResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetParagraphsResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetParagraphsResponse2), - jsonSerializerContext) as global::AssemblyAI.GetParagraphsResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetParagraphsResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetParagraphsResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetParagraphsResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse2.g.cs deleted file mode 100644 index a6b6d14..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetParagraphsResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetParagraphsResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse.Json.g.cs deleted file mode 100644 index 9ee56d0..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetRedactedAudioResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetRedactedAudioResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetRedactedAudioResponse), - jsonSerializerContext) as global::AssemblyAI.GetRedactedAudioResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetRedactedAudioResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetRedactedAudioResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetRedactedAudioResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse.g.cs deleted file mode 100644 index 1c14e32..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetRedactedAudioResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse2.Json.g.cs deleted file mode 100644 index 7b02778..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetRedactedAudioResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetRedactedAudioResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetRedactedAudioResponse2), - jsonSerializerContext) as global::AssemblyAI.GetRedactedAudioResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetRedactedAudioResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetRedactedAudioResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetRedactedAudioResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse2.g.cs deleted file mode 100644 index c2612fe..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetRedactedAudioResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetRedactedAudioResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse.Json.g.cs deleted file mode 100644 index 7147e5a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetResponse), - jsonSerializerContext) as global::AssemblyAI.GetResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse.g.cs deleted file mode 100644 index 1e9863e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse2.Json.g.cs deleted file mode 100644 index 1624062..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetResponse2), - jsonSerializerContext) as global::AssemblyAI.GetResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse2.g.cs deleted file mode 100644 index 05f8636..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse.Json.g.cs deleted file mode 100644 index 45ae6ed..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetSentencesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetSentencesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetSentencesResponse), - jsonSerializerContext) as global::AssemblyAI.GetSentencesResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetSentencesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetSentencesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetSentencesResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse.g.cs deleted file mode 100644 index 1565e0c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetSentencesResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse2.Json.g.cs deleted file mode 100644 index 204aced..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetSentencesResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetSentencesResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetSentencesResponse2), - jsonSerializerContext) as global::AssemblyAI.GetSentencesResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetSentencesResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetSentencesResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetSentencesResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse2.g.cs deleted file mode 100644 index 66b0b23..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSentencesResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetSentencesResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse.Json.g.cs deleted file mode 100644 index 80b9839..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetSubtitlesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetSubtitlesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetSubtitlesResponse), - jsonSerializerContext) as global::AssemblyAI.GetSubtitlesResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetSubtitlesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetSubtitlesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetSubtitlesResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse.g.cs deleted file mode 100644 index bcd94d6..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class GetSubtitlesResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse2.Json.g.cs deleted file mode 100644 index b3186b7..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetSubtitlesResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetSubtitlesResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetSubtitlesResponse2), - jsonSerializerContext) as global::AssemblyAI.GetSubtitlesResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetSubtitlesResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetSubtitlesResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetSubtitlesResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse2.g.cs deleted file mode 100644 index afe3a1a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetSubtitlesResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse3.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse3.Json.g.cs deleted file mode 100644 index cf9e639..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse3.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class GetSubtitlesResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.GetSubtitlesResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.GetSubtitlesResponse3), - jsonSerializerContext) as global::AssemblyAI.GetSubtitlesResponse3; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.GetSubtitlesResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.GetSubtitlesResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.GetSubtitlesResponse3; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse3.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse3.g.cs deleted file mode 100644 index 1a45807..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.GetSubtitlesResponse3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class GetSubtitlesResponse3 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfig.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfig.Json.g.cs deleted file mode 100644 index 62545b8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfig.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class JsonSchemaConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.JsonSchemaConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.JsonSchemaConfig), - jsonSerializerContext) as global::AssemblyAI.JsonSchemaConfig; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.JsonSchemaConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.JsonSchemaConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.JsonSchemaConfig; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfig.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfig.g.cs deleted file mode 100644 index 85e4caf..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfig.g.cs +++ /dev/null @@ -1,72 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Configuration for JSON schema-based structured outputs. - /// - public sealed partial class JsonSchemaConfig - { - /// - /// A name for the schema. Used for identification purposes. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// A valid JSON Schema object that defines the structure of the expected response. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("schema")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Schema { get; set; } - - /// - /// When `true`, the model will strictly adhere to the schema. Recommended for reliable parsing.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("strict")] - public bool? Strict { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A name for the schema. Used for identification purposes. - /// - /// - /// A valid JSON Schema object that defines the structure of the expected response. - /// - /// - /// When `true`, the model will strictly adhere to the schema. Recommended for reliable parsing.
- /// Default Value: false - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public JsonSchemaConfig( - string name, - object schema, - bool? strict) - { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Schema = schema ?? throw new global::System.ArgumentNullException(nameof(schema)); - this.Strict = strict; - } - - /// - /// Initializes a new instance of the class. - /// - public JsonSchemaConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema.Json.g.cs deleted file mode 100644 index bf3b408..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class JsonSchemaConfigSchema - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.JsonSchemaConfigSchema? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.JsonSchemaConfigSchema), - jsonSerializerContext) as global::AssemblyAI.JsonSchemaConfigSchema; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.JsonSchemaConfigSchema? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.JsonSchemaConfigSchema), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.JsonSchemaConfigSchema; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema.g.cs deleted file mode 100644 index 6e920c7..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A valid JSON Schema object that defines the structure of the expected response. - /// - public sealed partial class JsonSchemaConfigSchema - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema2.Json.g.cs deleted file mode 100644 index 0185970..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class JsonSchemaConfigSchema2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.JsonSchemaConfigSchema2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.JsonSchemaConfigSchema2), - jsonSerializerContext) as global::AssemblyAI.JsonSchemaConfigSchema2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.JsonSchemaConfigSchema2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.JsonSchemaConfigSchema2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.JsonSchemaConfigSchema2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema2.g.cs deleted file mode 100644 index 8a26f7b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.JsonSchemaConfigSchema2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class JsonSchemaConfigSchema2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayCustomFormattingResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayCustomFormattingResponse.Json.g.cs deleted file mode 100644 index 9ea0549..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayCustomFormattingResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LLMGatewayCustomFormattingResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LLMGatewayCustomFormattingResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse), - jsonSerializerContext) as global::AssemblyAI.LLMGatewayCustomFormattingResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LLMGatewayCustomFormattingResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LLMGatewayCustomFormattingResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LLMGatewayCustomFormattingResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayCustomFormattingResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayCustomFormattingResponse.g.cs deleted file mode 100644 index fc09484..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayCustomFormattingResponse.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LLMGatewayCustomFormattingResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_understanding")] - public global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding? SpeechUnderstanding { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("utterances")] - public global::System.Collections.Generic.IList? Utterances { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LLMGatewayCustomFormattingResponse( - global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding? speechUnderstanding, - global::System.Collections.Generic.IList? utterances) - { - this.SpeechUnderstanding = speechUnderstanding; - this.Utterances = utterances; - } - - /// - /// Initializes a new instance of the class. - /// - public LLMGatewayCustomFormattingResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayRequest.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayRequest.Json.g.cs deleted file mode 100644 index b7e9c0d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LLMGatewayRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LLMGatewayRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LLMGatewayRequest), - jsonSerializerContext) as global::AssemblyAI.LLMGatewayRequest; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LLMGatewayRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LLMGatewayRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LLMGatewayRequest; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayRequest.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayRequest.g.cs deleted file mode 100644 index 490cd83..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayRequest.g.cs +++ /dev/null @@ -1,195 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The main request body for the chat completions endpoint. - /// - public sealed partial class LLMGatewayRequest - { - /// - /// A list of messages comprising the conversation so far. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messages")] - public global::System.Collections.Generic.IList? Messages { get; set; } - - /// - /// A simple string prompt. The API will automatically convert this into a user message. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - public string? Prompt { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("transcript_id")] - public string? TranscriptId { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Model { get; set; } - - /// - /// The maximum number of tokens to generate in the completion. Default is 1000.
- /// Default Value: 1000 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("max_tokens")] - public int? MaxTokens { get; set; } - - /// - /// Controls randomness. Lower values produce more deterministic results. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - - /// - /// When true, responses are streamed as server-sent events (SSE). Supported on OpenAI models only.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("stream")] - public bool? Stream { get; set; } - - /// - /// A list of tools the model may call. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } - - /// - /// Controls which (if any) function is called by the model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.ToolChoiceJsonConverter))] - public global::AssemblyAI.ToolChoice? ToolChoice { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - public global::AssemblyAI.ResponseFormat? ResponseFormat { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fallbacks")] - public global::System.Collections.Generic.IList? Fallbacks { get; set; } - - /// - /// Configuration for fallback behavior, including retry and depth settings. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fallback_config")] - public global::AssemblyAI.FallbackConfig? FallbackConfig { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reasoning")] - public global::AssemblyAI.Reasoning? Reasoning { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("post_processing_steps")] - public global::System.Collections.Generic.IList? PostProcessingSteps { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// 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. - /// - /// - /// 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 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. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LLMGatewayRequest( - string model, - global::System.Collections.Generic.IList? messages, - string? prompt, - string? transcriptId, - int? maxTokens, - double? temperature, - bool? stream, - global::System.Collections.Generic.IList? tools, - global::AssemblyAI.ToolChoice? toolChoice, - global::AssemblyAI.ResponseFormat? responseFormat, - global::System.Collections.Generic.IList? fallbacks, - global::AssemblyAI.FallbackConfig? fallbackConfig, - global::AssemblyAI.Reasoning? reasoning, - global::System.Collections.Generic.IList? postProcessingSteps) - { - this.Messages = messages; - this.Prompt = prompt; - this.TranscriptId = transcriptId; - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); - this.MaxTokens = maxTokens; - this.Temperature = temperature; - this.Stream = stream; - this.Tools = tools; - this.ToolChoice = toolChoice; - this.ResponseFormat = responseFormat; - this.Fallbacks = fallbacks; - this.FallbackConfig = fallbackConfig; - this.Reasoning = reasoning; - this.PostProcessingSteps = postProcessingSteps; - } - - /// - /// Initializes a new instance of the class. - /// - public LLMGatewayRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewaySpeakerIdentificationResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewaySpeakerIdentificationResponse.Json.g.cs deleted file mode 100644 index 5a32221..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewaySpeakerIdentificationResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LLMGatewaySpeakerIdentificationResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse), - jsonSerializerContext) as global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LLMGatewaySpeakerIdentificationResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewaySpeakerIdentificationResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewaySpeakerIdentificationResponse.g.cs deleted file mode 100644 index 6e7f8be..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewaySpeakerIdentificationResponse.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LLMGatewaySpeakerIdentificationResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_understanding")] - public global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding? SpeechUnderstanding { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("utterances")] - public global::System.Collections.Generic.IList? Utterances { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("words")] - public global::System.Collections.Generic.IList? Words { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LLMGatewaySpeakerIdentificationResponse( - global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding? speechUnderstanding, - global::System.Collections.Generic.IList? utterances, - global::System.Collections.Generic.IList? words) - { - this.SpeechUnderstanding = speechUnderstanding; - this.Utterances = utterances; - this.Words = words; - } - - /// - /// Initializes a new instance of the class. - /// - public LLMGatewaySpeakerIdentificationResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponse.Json.g.cs deleted file mode 100644 index 918c142..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LLMGatewayTranslationResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LLMGatewayTranslationResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LLMGatewayTranslationResponse), - jsonSerializerContext) as global::AssemblyAI.LLMGatewayTranslationResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LLMGatewayTranslationResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LLMGatewayTranslationResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LLMGatewayTranslationResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponse.g.cs deleted file mode 100644 index 33e1215..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponse.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LLMGatewayTranslationResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_understanding")] - public global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding? SpeechUnderstanding { get; set; } - - /// - /// Translated text keyed by language code (e.g., `{"es": "Texto traducido"}`) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("translated_texts")] - public global::System.Collections.Generic.Dictionary? TranslatedTexts { get; set; } - - /// - /// Array of utterances with translations (when `match_original_utterance` is true) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("utterances")] - public global::System.Collections.Generic.IList? Utterances { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("words")] - public global::System.Collections.Generic.IList? Words { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Translated text keyed by language code (e.g., `{"es": "Texto traducido"}`) - /// - /// - /// Array of utterances with translations (when `match_original_utterance` is true) - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LLMGatewayTranslationResponse( - global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding? speechUnderstanding, - global::System.Collections.Generic.Dictionary? translatedTexts, - global::System.Collections.Generic.IList? utterances, - global::System.Collections.Generic.IList? words) - { - this.SpeechUnderstanding = speechUnderstanding; - this.TranslatedTexts = translatedTexts; - this.Utterances = utterances; - this.Words = words; - } - - /// - /// Initializes a new instance of the class. - /// - public LLMGatewayTranslationResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponseTranslatedTexts.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponseTranslatedTexts.Json.g.cs deleted file mode 100644 index 17ece6f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponseTranslatedTexts.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LLMGatewayTranslationResponseTranslatedTexts - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LLMGatewayTranslationResponseTranslatedTexts? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LLMGatewayTranslationResponseTranslatedTexts), - jsonSerializerContext) as global::AssemblyAI.LLMGatewayTranslationResponseTranslatedTexts; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LLMGatewayTranslationResponseTranslatedTexts? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LLMGatewayTranslationResponseTranslatedTexts), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LLMGatewayTranslationResponseTranslatedTexts; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponseTranslatedTexts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponseTranslatedTexts.g.cs deleted file mode 100644 index 7d5426f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LLMGatewayTranslationResponseTranslatedTexts.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Translated text keyed by language code (e.g., `{"es": "Texto traducido"}`) - /// - public sealed partial class LLMGatewayTranslationResponseTranslatedTexts - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse.Json.g.cs deleted file mode 100644 index dbd2d67..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ListResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ListResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ListResponse), - jsonSerializerContext) as global::AssemblyAI.ListResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ListResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ListResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ListResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse.g.cs deleted file mode 100644 index 22cb77b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class ListResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse2.Json.g.cs deleted file mode 100644 index 93b3a2c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ListResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ListResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ListResponse2), - jsonSerializerContext) as global::AssemblyAI.ListResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ListResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ListResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ListResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse2.g.cs deleted file mode 100644 index 3fc9e74..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class ListResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstanding.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstanding.Json.g.cs deleted file mode 100644 index bb3af88..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstanding.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstanding - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstanding; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstanding.g.cs deleted file mode 100644 index 27e0119..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstanding.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstanding - { - /// - /// Request body for [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request")] - public global::AssemblyAI.CustomFormattingRequestBody? Request { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse? Response { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Request body for [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewayCustomFormattingResponseSpeechUnderstanding( - global::AssemblyAI.CustomFormattingRequestBody? request, - global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse? response) - { - this.Request = request; - this.Response = response; - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewayCustomFormattingResponseSpeechUnderstanding() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse.Json.g.cs deleted file mode 100644 index fb13c49..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse.g.cs deleted file mode 100644 index 07e816e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_formatting")] - public global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting? CustomFormatting { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse( - global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting? customFormatting) - { - this.CustomFormatting = customFormatting; - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting.Json.g.cs deleted file mode 100644 index 938f978..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting.g.cs deleted file mode 100644 index 5c07f1b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mapping")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.Dictionary Mapping { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("formatted_text")] - public string? FormattedText { get; set; } - - /// - /// Array of formatted utterances. Only included when utterances exist and formatting was applied. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("formatted_utterances")] - public global::System.Collections.Generic.IList? FormattedUtterances { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// Array of formatted utterances. Only included when utterances exist and formatting was applied. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting( - global::System.Collections.Generic.Dictionary mapping, - string status, - string? formattedText, - global::System.Collections.Generic.IList? formattedUtterances) - { - this.Mapping = mapping ?? throw new global::System.ArgumentNullException(nameof(mapping)); - this.FormattedText = formattedText; - this.FormattedUtterances = formattedUtterances; - this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems.Json.g.cs deleted file mode 100644 index 3bd2bee..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems.g.cs deleted file mode 100644 index a1c53dc..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping.Json.g.cs deleted file mode 100644 index 2065ff1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping.g.cs deleted file mode 100644 index a33d558..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingMapping - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseUtterancesItems.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseUtterancesItems.Json.g.cs deleted file mode 100644 index 9585b06..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseUtterancesItems.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayCustomFormattingResponseUtterancesItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseUtterancesItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseUtterancesItems), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayCustomFormattingResponseUtterancesItems; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayCustomFormattingResponseUtterancesItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayCustomFormattingResponseUtterancesItems), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayCustomFormattingResponseUtterancesItems; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseUtterancesItems.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseUtterancesItems.g.cs deleted file mode 100644 index 9ea2d38..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayCustomFormattingResponseUtterancesItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayCustomFormattingResponseUtterancesItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding.Json.g.cs deleted file mode 100644 index e28b991..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding), - jsonSerializerContext) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding.g.cs deleted file mode 100644 index 3d3ae87..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding - { - /// - /// Request body for [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request")] - public global::AssemblyAI.SpeakerIdentificationRequestBody? Request { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse? Response { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Request body for [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification). - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding( - global::AssemblyAI.SpeakerIdentificationRequestBody? request, - global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse? response) - { - this.Request = request; - this.Response = response; - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse.Json.g.cs deleted file mode 100644 index 778827d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse), - jsonSerializerContext) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse.g.cs deleted file mode 100644 index d2cdfb7..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker_identification")] - public global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification? SpeakerIdentification { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse( - global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification? speakerIdentification) - { - this.SpeakerIdentification = speakerIdentification; - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification.Json.g.cs deleted file mode 100644 index 62b9743..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification), - jsonSerializerContext) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification.g.cs deleted file mode 100644 index fa3ab1b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification.g.cs +++ /dev/null @@ -1,56 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification - { - /// - /// A mapping of the original generic speaker labels (e.g., "A", "B") to the identified speaker names or roles. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mapping")] - public global::System.Collections.Generic.Dictionary? Mapping { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// A mapping of the original generic speaker labels (e.g., "A", "B") to the identified speaker names or roles. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification( - string status, - global::System.Collections.Generic.Dictionary? mapping) - { - this.Mapping = mapping; - this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping.Json.g.cs deleted file mode 100644 index d6ac2e8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping), - jsonSerializerContext) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping.g.cs deleted file mode 100644 index dcd84b0..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A mapping of the original generic speaker labels (e.g., "A", "B") to the identified speaker names or roles. - /// - public sealed partial class LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentificationMapping - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseUtterancesItems.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseUtterancesItems.Json.g.cs deleted file mode 100644 index bca8f03..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseUtterancesItems.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewaySpeakerIdentificationResponseUtterancesItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseUtterancesItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseUtterancesItems), - jsonSerializerContext) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseUtterancesItems; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseUtterancesItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseUtterancesItems), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseUtterancesItems; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseUtterancesItems.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseUtterancesItems.g.cs deleted file mode 100644 index a8733c2..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseUtterancesItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewaySpeakerIdentificationResponseUtterancesItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseWordsItems.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseWordsItems.Json.g.cs deleted file mode 100644 index 0705865..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseWordsItems.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewaySpeakerIdentificationResponseWordsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseWordsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseWordsItems), - jsonSerializerContext) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseWordsItems; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseWordsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseWordsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewaySpeakerIdentificationResponseWordsItems; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseWordsItems.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseWordsItems.g.cs deleted file mode 100644 index ff843ad..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewaySpeakerIdentificationResponseWordsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewaySpeakerIdentificationResponseWordsItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstanding.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstanding.Json.g.cs deleted file mode 100644 index dfc67b8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstanding.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayTranslationResponseSpeechUnderstanding - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstanding; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstanding.g.cs deleted file mode 100644 index a20e44c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstanding.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayTranslationResponseSpeechUnderstanding - { - /// - /// Request body for [Translation](https://www.assemblyai.com/docs/speech-understanding/translation). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request")] - public global::AssemblyAI.TranslationRequestBody? Request { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse? Response { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Request body for [Translation](https://www.assemblyai.com/docs/speech-understanding/translation). - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewayTranslationResponseSpeechUnderstanding( - global::AssemblyAI.TranslationRequestBody? request, - global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse? response) - { - this.Request = request; - this.Response = response; - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewayTranslationResponseSpeechUnderstanding() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponse.Json.g.cs deleted file mode 100644 index 1fdf631..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayTranslationResponseSpeechUnderstandingResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponse.g.cs deleted file mode 100644 index 3d1d272..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayTranslationResponseSpeechUnderstandingResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("translation")] - public global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation? Translation { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewayTranslationResponseSpeechUnderstandingResponse( - global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation? translation) - { - this.Translation = translation; - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewayTranslationResponseSpeechUnderstandingResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation.Json.g.cs deleted file mode 100644 index e0ae0d2..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation.g.cs deleted file mode 100644 index 9cd1f9f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public string? Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation( - string? status) - { - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItems.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItems.Json.g.cs deleted file mode 100644 index b5f3a98..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItems.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayTranslationResponseUtterancesItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItems), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItems; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItems), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItems; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItems.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItems.g.cs deleted file mode 100644 index 14f638f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItems.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayTranslationResponseUtterancesItems - { - /// - /// Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("translated_texts")] - public global::System.Collections.Generic.Dictionary? TranslatedTexts { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LlmGatewayTranslationResponseUtterancesItems( - global::System.Collections.Generic.Dictionary? translatedTexts) - { - this.TranslatedTexts = translatedTexts; - } - - /// - /// Initializes a new instance of the class. - /// - public LlmGatewayTranslationResponseUtterancesItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts.Json.g.cs deleted file mode 100644 index 7e5b4bf..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts.g.cs deleted file mode 100644 index 67ec4f9..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled. - /// - public sealed partial class LlmGatewayTranslationResponseUtterancesItemsTranslatedTexts - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseWordsItems.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseWordsItems.Json.g.cs deleted file mode 100644 index 38e8acd..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseWordsItems.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class LlmGatewayTranslationResponseWordsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.LlmGatewayTranslationResponseWordsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseWordsItems), - jsonSerializerContext) as global::AssemblyAI.LlmGatewayTranslationResponseWordsItems; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.LlmGatewayTranslationResponseWordsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.LlmGatewayTranslationResponseWordsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.LlmGatewayTranslationResponseWordsItems; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseWordsItems.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseWordsItems.g.cs deleted file mode 100644 index 2387b44..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LlmGatewayTranslationResponseWordsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class LlmGatewayTranslationResponseWordsItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Message.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Message.g.cs deleted file mode 100644 index 9e1bdd8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Message.g.cs +++ /dev/null @@ -1,461 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public readonly partial struct Message : global::System.IEquatable - { - /// - /// user variant - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.MessageVariant1? MessageVariant1 { get; init; } -#else - public global::AssemblyAI.MessageVariant1? MessageVariant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageVariant1))] -#endif - public bool IsMessageVariant1 => MessageVariant1 != null; - - /// - /// - /// - public bool TryPickMessageVariant1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.MessageVariant1? value) - { - value = MessageVariant1; - return IsMessageVariant1; - } - - /// - /// - /// - public global::AssemblyAI.MessageVariant1 PickMessageVariant1() => IsMessageVariant1 - ? MessageVariant1! - : throw new global::System.InvalidOperationException($"Expected union variant 'MessageVariant1' but the value was {ToString()}."); - - /// - /// assistant variant - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.MessageVariant2? MessageVariant2 { get; init; } -#else - public global::AssemblyAI.MessageVariant2? MessageVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageVariant2))] -#endif - public bool IsMessageVariant2 => MessageVariant2 != null; - - /// - /// - /// - public bool TryPickMessageVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.MessageVariant2? value) - { - value = MessageVariant2; - return IsMessageVariant2; - } - - /// - /// - /// - public global::AssemblyAI.MessageVariant2 PickMessageVariant2() => IsMessageVariant2 - ? MessageVariant2! - : throw new global::System.InvalidOperationException($"Expected union variant 'MessageVariant2' but the value was {ToString()}."); - - /// - /// system variant - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.MessageVariant3? MessageVariant3 { get; init; } -#else - public global::AssemblyAI.MessageVariant3? MessageVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageVariant3))] -#endif - public bool IsMessageVariant3 => MessageVariant3 != null; - - /// - /// - /// - public bool TryPickMessageVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.MessageVariant3? value) - { - value = MessageVariant3; - return IsMessageVariant3; - } - - /// - /// - /// - public global::AssemblyAI.MessageVariant3 PickMessageVariant3() => IsMessageVariant3 - ? MessageVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'MessageVariant3' but the value was {ToString()}."); - - /// - /// tool variant - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.MessageVariant4? Tool { get; init; } -#else - public global::AssemblyAI.MessageVariant4? Tool { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Tool))] -#endif - public bool IsTool => Tool != null; - - /// - /// - /// - public bool TryPickTool( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.MessageVariant4? value) - { - value = Tool; - return IsTool; - } - - /// - /// - /// - public global::AssemblyAI.MessageVariant4 PickTool() => IsTool - ? Tool! - : throw new global::System.InvalidOperationException($"Expected union variant 'Tool' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator Message(global::AssemblyAI.MessageVariant1 value) => new Message((global::AssemblyAI.MessageVariant1?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.MessageVariant1?(Message @this) => @this.MessageVariant1; - - /// - /// - /// - public Message(global::AssemblyAI.MessageVariant1? value) - { - MessageVariant1 = value; - } - - /// - /// - /// - public static Message FromMessageVariant1(global::AssemblyAI.MessageVariant1? value) => new Message(value); - - /// - /// - /// - public static implicit operator Message(global::AssemblyAI.MessageVariant2 value) => new Message((global::AssemblyAI.MessageVariant2?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.MessageVariant2?(Message @this) => @this.MessageVariant2; - - /// - /// - /// - public Message(global::AssemblyAI.MessageVariant2? value) - { - MessageVariant2 = value; - } - - /// - /// - /// - public static Message FromMessageVariant2(global::AssemblyAI.MessageVariant2? value) => new Message(value); - - /// - /// - /// - public static implicit operator Message(global::AssemblyAI.MessageVariant3 value) => new Message((global::AssemblyAI.MessageVariant3?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.MessageVariant3?(Message @this) => @this.MessageVariant3; - - /// - /// - /// - public Message(global::AssemblyAI.MessageVariant3? value) - { - MessageVariant3 = value; - } - - /// - /// - /// - public static Message FromMessageVariant3(global::AssemblyAI.MessageVariant3? value) => new Message(value); - - /// - /// - /// - public static implicit operator Message(global::AssemblyAI.MessageVariant4 value) => new Message((global::AssemblyAI.MessageVariant4?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.MessageVariant4?(Message @this) => @this.Tool; - - /// - /// - /// - public Message(global::AssemblyAI.MessageVariant4? value) - { - Tool = value; - } - - /// - /// - /// - public static Message FromTool(global::AssemblyAI.MessageVariant4? value) => new Message(value); - - /// - /// - /// - public Message( - global::AssemblyAI.MessageVariant1? messageVariant1, - global::AssemblyAI.MessageVariant2? messageVariant2, - global::AssemblyAI.MessageVariant3? messageVariant3, - global::AssemblyAI.MessageVariant4? tool - ) - { - MessageVariant1 = messageVariant1; - MessageVariant2 = messageVariant2; - MessageVariant3 = messageVariant3; - Tool = tool; - } - - /// - /// - /// - public object? Object => - Tool as object ?? - MessageVariant3 as object ?? - MessageVariant2 as object ?? - MessageVariant1 as object - ; - - /// - /// - /// - public override string? ToString() => - MessageVariant1?.ToString() ?? - MessageVariant2?.ToString() ?? - MessageVariant3?.ToString() ?? - Tool?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsMessageVariant1 && !IsMessageVariant2 && !IsMessageVariant3 && !IsTool || !IsMessageVariant1 && IsMessageVariant2 && !IsMessageVariant3 && !IsTool || !IsMessageVariant1 && !IsMessageVariant2 && IsMessageVariant3 && !IsTool || !IsMessageVariant1 && !IsMessageVariant2 && !IsMessageVariant3 && IsTool; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? messageVariant1 = null, - global::System.Func? messageVariant2 = null, - global::System.Func? messageVariant3 = null, - global::System.Func? tool = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsMessageVariant1 && messageVariant1 != null) - { - return messageVariant1(MessageVariant1!); - } - else if (IsMessageVariant2 && messageVariant2 != null) - { - return messageVariant2(MessageVariant2!); - } - else if (IsMessageVariant3 && messageVariant3 != null) - { - return messageVariant3(MessageVariant3!); - } - else if (IsTool && tool != null) - { - return tool(Tool!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? messageVariant1 = null, - - global::System.Action? messageVariant2 = null, - - global::System.Action? messageVariant3 = null, - - global::System.Action? tool = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsMessageVariant1) - { - messageVariant1?.Invoke(MessageVariant1!); - } - else if (IsMessageVariant2) - { - messageVariant2?.Invoke(MessageVariant2!); - } - else if (IsMessageVariant3) - { - messageVariant3?.Invoke(MessageVariant3!); - } - else if (IsTool) - { - tool?.Invoke(Tool!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? messageVariant1 = null, - global::System.Action? messageVariant2 = null, - global::System.Action? messageVariant3 = null, - global::System.Action? tool = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsMessageVariant1) - { - messageVariant1?.Invoke(MessageVariant1!); - } - else if (IsMessageVariant2) - { - messageVariant2?.Invoke(MessageVariant2!); - } - else if (IsMessageVariant3) - { - messageVariant3?.Invoke(MessageVariant3!); - } - else if (IsTool) - { - tool?.Invoke(Tool!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - MessageVariant1, - typeof(global::AssemblyAI.MessageVariant1), - MessageVariant2, - typeof(global::AssemblyAI.MessageVariant2), - MessageVariant3, - typeof(global::AssemblyAI.MessageVariant3), - Tool, - typeof(global::AssemblyAI.MessageVariant4), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(Message other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageVariant1, other.MessageVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageVariant2, other.MessageVariant2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageVariant3, other.MessageVariant3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Tool, other.Tool) - ; - } - - /// - /// - /// - public static bool operator ==(Message obj1, Message obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(Message obj1, Message obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is Message o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageDiscriminator.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageDiscriminator.Json.g.cs deleted file mode 100644 index e1d262f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageDiscriminator.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class MessageDiscriminator - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.MessageDiscriminator? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.MessageDiscriminator), - jsonSerializerContext) as global::AssemblyAI.MessageDiscriminator; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.MessageDiscriminator? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.MessageDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.MessageDiscriminator; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageDiscriminator.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageDiscriminator.g.cs deleted file mode 100644 index be74a88..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageDiscriminator.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class MessageDiscriminator - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.MessageDiscriminatorRoleJsonConverter))] - public global::AssemblyAI.MessageDiscriminatorRole? Role { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public MessageDiscriminator( - global::AssemblyAI.MessageDiscriminatorRole? role) - { - this.Role = role; - } - - /// - /// Initializes a new instance of the class. - /// - public MessageDiscriminator() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageDiscriminatorRole.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageDiscriminatorRole.g.cs deleted file mode 100644 index b21fd70..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageDiscriminatorRole.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public enum MessageDiscriminatorRole - { - /// - /// - /// - Tool, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class MessageDiscriminatorRoleExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this MessageDiscriminatorRole value) - { - return value switch - { - MessageDiscriminatorRole.Tool => "tool", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static MessageDiscriminatorRole? ToEnum(string value) - { - return value switch - { - "tool" => MessageDiscriminatorRole.Tool, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant1.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant1.Json.g.cs deleted file mode 100644 index ce8205c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant1.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class MessageVariant1 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.MessageVariant1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.MessageVariant1), - jsonSerializerContext) as global::AssemblyAI.MessageVariant1; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.MessageVariant1? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.MessageVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.MessageVariant1; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant1.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant1.g.cs deleted file mode 100644 index 1ad13f4..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant1.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// user variant - /// - public sealed partial class MessageVariant1 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.UserAssistantSystemMessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.UserAssistantSystemMessageRole Role { get; set; } - - /// - /// The content of the message. Can be a string or an array of content parts (for user messages). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.UserAssistantSystemMessageContentJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.UserAssistantSystemMessageContent Content { get; set; } - - /// - /// An optional name for the participant. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// The content of the message. Can be a string or an array of content parts (for user messages). - /// - /// - /// An optional name for the participant. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public MessageVariant1( - global::AssemblyAI.UserAssistantSystemMessageRole role, - global::AssemblyAI.UserAssistantSystemMessageContent content, - string? name) - { - this.Role = role; - this.Content = content; - this.Name = name; - } - - /// - /// Initializes a new instance of the class. - /// - public MessageVariant1() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant2.Json.g.cs deleted file mode 100644 index daffdb3..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class MessageVariant2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.MessageVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.MessageVariant2), - jsonSerializerContext) as global::AssemblyAI.MessageVariant2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.MessageVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.MessageVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.MessageVariant2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant2.g.cs deleted file mode 100644 index 6b7f831..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant2.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// assistant variant - /// - public sealed partial class MessageVariant2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.UserAssistantSystemMessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.UserAssistantSystemMessageRole Role { get; set; } - - /// - /// The content of the message. Can be a string or an array of content parts (for user messages). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.UserAssistantSystemMessageContentJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.UserAssistantSystemMessageContent Content { get; set; } - - /// - /// An optional name for the participant. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// The content of the message. Can be a string or an array of content parts (for user messages). - /// - /// - /// An optional name for the participant. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public MessageVariant2( - global::AssemblyAI.UserAssistantSystemMessageRole role, - global::AssemblyAI.UserAssistantSystemMessageContent content, - string? name) - { - this.Role = role; - this.Content = content; - this.Name = name; - } - - /// - /// Initializes a new instance of the class. - /// - public MessageVariant2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant3.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant3.Json.g.cs deleted file mode 100644 index 6443673..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant3.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class MessageVariant3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.MessageVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.MessageVariant3), - jsonSerializerContext) as global::AssemblyAI.MessageVariant3; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.MessageVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.MessageVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.MessageVariant3; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant3.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant3.g.cs deleted file mode 100644 index 4ede13f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant3.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// system variant - /// - public sealed partial class MessageVariant3 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.UserAssistantSystemMessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.UserAssistantSystemMessageRole Role { get; set; } - - /// - /// The content of the message. Can be a string or an array of content parts (for user messages). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.UserAssistantSystemMessageContentJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.UserAssistantSystemMessageContent Content { get; set; } - - /// - /// An optional name for the participant. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// The content of the message. Can be a string or an array of content parts (for user messages). - /// - /// - /// An optional name for the participant. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public MessageVariant3( - global::AssemblyAI.UserAssistantSystemMessageRole role, - global::AssemblyAI.UserAssistantSystemMessageContent content, - string? name) - { - this.Role = role; - this.Content = content; - this.Name = name; - } - - /// - /// Initializes a new instance of the class. - /// - public MessageVariant3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant4.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant4.Json.g.cs deleted file mode 100644 index 43e0070..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant4.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class MessageVariant4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.MessageVariant4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.MessageVariant4), - jsonSerializerContext) as global::AssemblyAI.MessageVariant4; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.MessageVariant4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.MessageVariant4), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.MessageVariant4; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant4.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant4.g.cs deleted file mode 100644 index e93a7f4..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.MessageVariant4.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// tool variant - /// - public sealed partial class MessageVariant4 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.ToolMessageRoleJsonConverter))] - public global::AssemblyAI.ToolMessageRole Role { get; set; } - - /// - /// The result of the tool call. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Content { get; set; } - - /// - /// The ID of the tool call that this message is responding to. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ToolCallId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The result of the tool call. - /// - /// - /// The ID of the tool call that this message is responding to. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public MessageVariant4( - string content, - string toolCallId, - global::AssemblyAI.ToolMessageRole role) - { - this.Role = role; - this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); - this.ToolCallId = toolCallId ?? throw new global::System.ArgumentNullException(nameof(toolCallId)); - } - - /// - /// Initializes a new instance of the class. - /// - public MessageVariant4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Message.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlant.Json.g.cs similarity index 88% rename from src/libs/AssemblyAI/Generated/AssemblyAI.Models.Message.Json.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlant.Json.g.cs index a030070..730fe92 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Message.Json.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlant.Json.g.cs @@ -2,7 +2,7 @@ namespace AssemblyAI { - public readonly partial struct Message + public readonly partial struct NewPlant { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AssemblyAI.Message? FromJson( + public static global::AssemblyAI.NewPlant? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AssemblyAI.Message), - jsonSerializerContext) as global::AssemblyAI.Message?; + typeof(global::AssemblyAI.NewPlant), + jsonSerializerContext) as global::AssemblyAI.NewPlant?; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::AssemblyAI.Message? FromJson( + public static global::AssemblyAI.NewPlant? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::AssemblyAI.Message), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Message?; + typeof(global::AssemblyAI.NewPlant), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.NewPlant?; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlant.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlant.g.cs new file mode 100644 index 0000000..abb9592 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlant.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public readonly partial struct NewPlant : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::AssemblyAI.Plant? Plant { get; init; } +#else + public global::AssemblyAI.Plant? Plant { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Plant))] +#endif + public bool IsPlant => Plant != null; + + /// + /// + /// + public bool TryPickPlant( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::AssemblyAI.Plant? value) + { + value = Plant; + return IsPlant; + } + + /// + /// + /// + public global::AssemblyAI.Plant PickPlant() => IsPlant + ? Plant! + : throw new global::System.InvalidOperationException($"Expected union variant 'Plant' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::AssemblyAI.NewPlantVariant2? NewPlantVariant2 { get; init; } +#else + public global::AssemblyAI.NewPlantVariant2? NewPlantVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NewPlantVariant2))] +#endif + public bool IsNewPlantVariant2 => NewPlantVariant2 != null; + + /// + /// + /// + public bool TryPickNewPlantVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::AssemblyAI.NewPlantVariant2? value) + { + value = NewPlantVariant2; + return IsNewPlantVariant2; + } + + /// + /// + /// + public global::AssemblyAI.NewPlantVariant2 PickNewPlantVariant2() => IsNewPlantVariant2 + ? NewPlantVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'NewPlantVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator NewPlant(global::AssemblyAI.Plant value) => new NewPlant((global::AssemblyAI.Plant?)value); + + /// + /// + /// + public static implicit operator global::AssemblyAI.Plant?(NewPlant @this) => @this.Plant; + + /// + /// + /// + public NewPlant(global::AssemblyAI.Plant? value) + { + Plant = value; + } + + /// + /// + /// + public static NewPlant FromPlant(global::AssemblyAI.Plant? value) => new NewPlant(value); + + /// + /// + /// + public static implicit operator NewPlant(global::AssemblyAI.NewPlantVariant2 value) => new NewPlant((global::AssemblyAI.NewPlantVariant2?)value); + + /// + /// + /// + public static implicit operator global::AssemblyAI.NewPlantVariant2?(NewPlant @this) => @this.NewPlantVariant2; + + /// + /// + /// + public NewPlant(global::AssemblyAI.NewPlantVariant2? value) + { + NewPlantVariant2 = value; + } + + /// + /// + /// + public static NewPlant FromNewPlantVariant2(global::AssemblyAI.NewPlantVariant2? value) => new NewPlant(value); + + /// + /// + /// + public NewPlant( + global::AssemblyAI.Plant? plant, + global::AssemblyAI.NewPlantVariant2? newPlantVariant2 + ) + { + Plant = plant; + NewPlantVariant2 = newPlantVariant2; + } + + /// + /// + /// + public object? Object => + NewPlantVariant2 as object ?? + Plant as object + ; + + /// + /// + /// + public override string? ToString() => + Plant?.ToString() ?? + NewPlantVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsPlant && IsNewPlantVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? plant = null, + global::System.Func? newPlantVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsPlant && plant != null) + { + return plant(Plant!); + } + else if (IsNewPlantVariant2 && newPlantVariant2 != null) + { + return newPlantVariant2(NewPlantVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? plant = null, + + global::System.Action? newPlantVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsPlant) + { + plant?.Invoke(Plant!); + } + else if (IsNewPlantVariant2) + { + newPlantVariant2?.Invoke(NewPlantVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? plant = null, + global::System.Action? newPlantVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsPlant) + { + plant?.Invoke(Plant!); + } + else if (IsNewPlantVariant2) + { + newPlantVariant2?.Invoke(NewPlantVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Plant, + typeof(global::AssemblyAI.Plant), + NewPlantVariant2, + typeof(global::AssemblyAI.NewPlantVariant2), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(NewPlant other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Plant, other.Plant) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NewPlantVariant2, other.NewPlantVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(NewPlant obj1, NewPlant obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(NewPlant obj1, NewPlant obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is NewPlant o && Equals(o); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionToolCall.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlantVariant2.Json.g.cs similarity index 87% rename from src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionToolCall.Json.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlantVariant2.Json.g.cs index a6c0ee1..a19102a 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionToolCall.Json.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlantVariant2.Json.g.cs @@ -2,7 +2,7 @@ namespace AssemblyAI { - public sealed partial class FunctionToolCall + public sealed partial class NewPlantVariant2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AssemblyAI.FunctionToolCall? FromJson( + public static global::AssemblyAI.NewPlantVariant2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AssemblyAI.FunctionToolCall), - jsonSerializerContext) as global::AssemblyAI.FunctionToolCall; + typeof(global::AssemblyAI.NewPlantVariant2), + jsonSerializerContext) as global::AssemblyAI.NewPlantVariant2; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::AssemblyAI.FunctionToolCall? FromJson( + public static global::AssemblyAI.NewPlantVariant2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::AssemblyAI.FunctionToolCall), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.FunctionToolCall; + typeof(global::AssemblyAI.NewPlantVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.NewPlantVariant2; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoiceOneOf1Function.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlantVariant2.g.cs similarity index 61% rename from src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoiceOneOf1Function.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlantVariant2.g.cs index d49c0fc..1d3fc81 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoiceOneOf1Function.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.NewPlantVariant2.g.cs @@ -6,14 +6,14 @@ namespace AssemblyAI /// /// /// - public sealed partial class ToolChoiceOneOf1Function + public sealed partial class NewPlantVariant2 { /// - /// + /// Identification number of the plant /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } + public required long Id { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +22,24 @@ public sealed partial class ToolChoiceOneOf1Function public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// + /// + /// Identification number of the plant + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ToolChoiceOneOf1Function( - string name) + public NewPlantVariant2( + long id) { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Id = id; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ToolChoiceOneOf1Function() + public NewPlantVariant2() { } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.Json.g.cs deleted file mode 100644 index d54dd1e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class PageDetails - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.PageDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.PageDetails), - jsonSerializerContext) as global::AssemblyAI.PageDetails; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.PageDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.PageDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.PageDetails; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs deleted file mode 100644 index 69ca159..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs +++ /dev/null @@ -1,93 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts. - /// - public sealed partial class PageDetails - { - /// - /// The number of results this page is limited to - /// - [global::System.Text.Json.Serialization.JsonPropertyName("limit")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Limit { get; set; } - - /// - /// The actual number of results in the page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("result_count")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int ResultCount { get; set; } - - /// - /// The URL used to retrieve the current page of transcripts - /// - [global::System.Text.Json.Serialization.JsonPropertyName("current_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string CurrentUrl { get; set; } - - /// - /// The URL to the next page of transcripts. The previous URL always points to a page with older transcripts. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prev_url")] - public string? PrevUrl { get; set; } - - /// - /// The URL to the next page of transcripts. The next URL always points to a page with newer transcripts. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("next_url")] - public string? NextUrl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The number of results this page is limited to - /// - /// - /// The actual number of results in the page - /// - /// - /// The URL used to retrieve the current page of transcripts - /// - /// - /// The URL to the next page of transcripts. The previous URL always points to a page with older transcripts. - /// - /// - /// The URL to the next page of transcripts. The next URL always points to a page with newer transcripts. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PageDetails( - int limit, - int resultCount, - string currentUrl, - string? prevUrl, - string? nextUrl) - { - this.Limit = limit; - this.ResultCount = resultCount; - this.CurrentUrl = currentUrl ?? throw new global::System.ArgumentNullException(nameof(currentUrl)); - this.PrevUrl = prevUrl; - this.NextUrl = nextUrl; - } - - /// - /// Initializes a new instance of the class. - /// - public PageDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.Json.g.cs deleted file mode 100644 index 1ecd9ae..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ParagraphsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ParagraphsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ParagraphsResponse), - jsonSerializerContext) as global::AssemblyAI.ParagraphsResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ParagraphsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ParagraphsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ParagraphsResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.g.cs deleted file mode 100644 index 3ed0be7..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.g.cs +++ /dev/null @@ -1,83 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class ParagraphsResponse - { - /// - /// The unique identifier of your transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } - - /// - /// The confidence score for the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } - - /// - /// The duration of the audio file in seconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_duration")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double AudioDuration { get; set; } - - /// - /// An array of paragraphs in the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("paragraphs")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Paragraphs { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The unique identifier of your transcript - /// - /// - /// The confidence score for the transcript - /// - /// - /// The duration of the audio file in seconds - /// - /// - /// An array of paragraphs in the transcript - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ParagraphsResponse( - global::System.Guid id, - double confidence, - double audioDuration, - global::System.Collections.Generic.IList paragraphs) - { - this.Id = id; - this.Confidence = confidence; - this.AudioDuration = audioDuration; - this.Paragraphs = paragraphs ?? throw new global::System.ArgumentNullException(nameof(paragraphs)); - } - - /// - /// Initializes a new instance of the class. - /// - public ParagraphsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PiiPolicy.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PiiPolicy.g.cs deleted file mode 100644 index e78fc3e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PiiPolicy.g.cs +++ /dev/null @@ -1,363 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The type of PII to redact. See [PII redaction](https://www.assemblyai.com/docs/streaming/pii-redaction) for the full list of policies and their descriptions. - /// - public enum PiiPolicy - { - /// - /// - /// - AccountNumber, - /// - /// - /// - BankingInformation, - /// - /// - /// - BloodType, - /// - /// - /// - CreditCardCvv, - /// - /// - /// - CreditCardExpiration, - /// - /// - /// - CreditCardNumber, - /// - /// - /// - Date, - /// - /// - /// - DateInterval, - /// - /// - /// - DateOfBirth, - /// - /// - /// - DriversLicense, - /// - /// - /// - Drug, - /// - /// - /// - Duration, - /// - /// - /// - EmailAddress, - /// - /// - /// - Event, - /// - /// - /// - Filename, - /// - /// - /// - Gender, - /// - /// - /// - GenderSexuality, - /// - /// - /// - HealthcareNumber, - /// - /// - /// - Injury, - /// - /// - /// - IpAddress, - /// - /// - /// - Language, - /// - /// - /// - Location, - /// - /// - /// - LocationAddress, - /// - /// - /// - LocationAddressStreet, - /// - /// - /// - LocationCity, - /// - /// - /// - LocationCoordinate, - /// - /// - /// - LocationCountry, - /// - /// - /// - LocationState, - /// - /// - /// - LocationZip, - /// - /// - /// - MaritalStatus, - /// - /// - /// - MedicalCondition, - /// - /// - /// - MedicalProcess, - /// - /// - /// - MoneyAmount, - /// - /// - /// - Nationality, - /// - /// - /// - NumberSequence, - /// - /// - /// - Occupation, - /// - /// - /// - Organization, - /// - /// - /// - OrganizationMedicalFacility, - /// - /// - /// - PassportNumber, - /// - /// - /// - Password, - /// - /// - /// - PersonAge, - /// - /// - /// - PersonName, - /// - /// - /// - PhoneNumber, - /// - /// - /// - PhysicalAttribute, - /// - /// - /// - PoliticalAffiliation, - /// - /// - /// - Religion, - /// - /// - /// - Sexuality, - /// - /// - /// - Statistics, - /// - /// - /// - Time, - /// - /// - /// - Url, - /// - /// - /// - UsSocialSecurityNumber, - /// - /// - /// - Username, - /// - /// - /// - VehicleId, - /// - /// - /// - ZodiacSign, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PiiPolicyExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PiiPolicy value) - { - return value switch - { - PiiPolicy.AccountNumber => "account_number", - PiiPolicy.BankingInformation => "banking_information", - PiiPolicy.BloodType => "blood_type", - PiiPolicy.CreditCardCvv => "credit_card_cvv", - PiiPolicy.CreditCardExpiration => "credit_card_expiration", - PiiPolicy.CreditCardNumber => "credit_card_number", - PiiPolicy.Date => "date", - PiiPolicy.DateInterval => "date_interval", - PiiPolicy.DateOfBirth => "date_of_birth", - PiiPolicy.DriversLicense => "drivers_license", - PiiPolicy.Drug => "drug", - PiiPolicy.Duration => "duration", - PiiPolicy.EmailAddress => "email_address", - PiiPolicy.Event => "event", - PiiPolicy.Filename => "filename", - PiiPolicy.Gender => "gender", - PiiPolicy.GenderSexuality => "gender_sexuality", - PiiPolicy.HealthcareNumber => "healthcare_number", - PiiPolicy.Injury => "injury", - PiiPolicy.IpAddress => "ip_address", - PiiPolicy.Language => "language", - PiiPolicy.Location => "location", - PiiPolicy.LocationAddress => "location_address", - PiiPolicy.LocationAddressStreet => "location_address_street", - PiiPolicy.LocationCity => "location_city", - PiiPolicy.LocationCoordinate => "location_coordinate", - PiiPolicy.LocationCountry => "location_country", - PiiPolicy.LocationState => "location_state", - PiiPolicy.LocationZip => "location_zip", - PiiPolicy.MaritalStatus => "marital_status", - PiiPolicy.MedicalCondition => "medical_condition", - PiiPolicy.MedicalProcess => "medical_process", - PiiPolicy.MoneyAmount => "money_amount", - PiiPolicy.Nationality => "nationality", - PiiPolicy.NumberSequence => "number_sequence", - PiiPolicy.Occupation => "occupation", - PiiPolicy.Organization => "organization", - PiiPolicy.OrganizationMedicalFacility => "organization_medical_facility", - PiiPolicy.PassportNumber => "passport_number", - PiiPolicy.Password => "password", - PiiPolicy.PersonAge => "person_age", - PiiPolicy.PersonName => "person_name", - PiiPolicy.PhoneNumber => "phone_number", - PiiPolicy.PhysicalAttribute => "physical_attribute", - PiiPolicy.PoliticalAffiliation => "political_affiliation", - PiiPolicy.Religion => "religion", - PiiPolicy.Sexuality => "sexuality", - PiiPolicy.Statistics => "statistics", - PiiPolicy.Time => "time", - PiiPolicy.Url => "url", - PiiPolicy.UsSocialSecurityNumber => "us_social_security_number", - PiiPolicy.Username => "username", - PiiPolicy.VehicleId => "vehicle_id", - PiiPolicy.ZodiacSign => "zodiac_sign", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PiiPolicy? ToEnum(string value) - { - return value switch - { - "account_number" => PiiPolicy.AccountNumber, - "banking_information" => PiiPolicy.BankingInformation, - "blood_type" => PiiPolicy.BloodType, - "credit_card_cvv" => PiiPolicy.CreditCardCvv, - "credit_card_expiration" => PiiPolicy.CreditCardExpiration, - "credit_card_number" => PiiPolicy.CreditCardNumber, - "date" => PiiPolicy.Date, - "date_interval" => PiiPolicy.DateInterval, - "date_of_birth" => PiiPolicy.DateOfBirth, - "drivers_license" => PiiPolicy.DriversLicense, - "drug" => PiiPolicy.Drug, - "duration" => PiiPolicy.Duration, - "email_address" => PiiPolicy.EmailAddress, - "event" => PiiPolicy.Event, - "filename" => PiiPolicy.Filename, - "gender" => PiiPolicy.Gender, - "gender_sexuality" => PiiPolicy.GenderSexuality, - "healthcare_number" => PiiPolicy.HealthcareNumber, - "injury" => PiiPolicy.Injury, - "ip_address" => PiiPolicy.IpAddress, - "language" => PiiPolicy.Language, - "location" => PiiPolicy.Location, - "location_address" => PiiPolicy.LocationAddress, - "location_address_street" => PiiPolicy.LocationAddressStreet, - "location_city" => PiiPolicy.LocationCity, - "location_coordinate" => PiiPolicy.LocationCoordinate, - "location_country" => PiiPolicy.LocationCountry, - "location_state" => PiiPolicy.LocationState, - "location_zip" => PiiPolicy.LocationZip, - "marital_status" => PiiPolicy.MaritalStatus, - "medical_condition" => PiiPolicy.MedicalCondition, - "medical_process" => PiiPolicy.MedicalProcess, - "money_amount" => PiiPolicy.MoneyAmount, - "nationality" => PiiPolicy.Nationality, - "number_sequence" => PiiPolicy.NumberSequence, - "occupation" => PiiPolicy.Occupation, - "organization" => PiiPolicy.Organization, - "organization_medical_facility" => PiiPolicy.OrganizationMedicalFacility, - "passport_number" => PiiPolicy.PassportNumber, - "password" => PiiPolicy.Password, - "person_age" => PiiPolicy.PersonAge, - "person_name" => PiiPolicy.PersonName, - "phone_number" => PiiPolicy.PhoneNumber, - "physical_attribute" => PiiPolicy.PhysicalAttribute, - "political_affiliation" => PiiPolicy.PoliticalAffiliation, - "religion" => PiiPolicy.Religion, - "sexuality" => PiiPolicy.Sexuality, - "statistics" => PiiPolicy.Statistics, - "time" => PiiPolicy.Time, - "url" => PiiPolicy.Url, - "us_social_security_number" => PiiPolicy.UsSocialSecurityNumber, - "username" => PiiPolicy.Username, - "vehicle_id" => PiiPolicy.VehicleId, - "zodiac_sign" => PiiPolicy.ZodiacSign, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Tool.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Plant.Json.g.cs similarity index 89% rename from src/libs/AssemblyAI/Generated/AssemblyAI.Models.Tool.Json.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.Models.Plant.Json.g.cs index 3980d21..13bc012 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Tool.Json.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Plant.Json.g.cs @@ -2,7 +2,7 @@ namespace AssemblyAI { - public sealed partial class Tool + public sealed partial class Plant { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AssemblyAI.Tool? FromJson( + public static global::AssemblyAI.Plant? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AssemblyAI.Tool), - jsonSerializerContext) as global::AssemblyAI.Tool; + typeof(global::AssemblyAI.Plant), + jsonSerializerContext) as global::AssemblyAI.Plant; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::AssemblyAI.Tool? FromJson( + public static global::AssemblyAI.Plant? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::AssemblyAI.Tool), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Tool; + typeof(global::AssemblyAI.Plant), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Plant; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionCall.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Plant.g.cs similarity index 60% rename from src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionCall.g.cs rename to src/libs/AssemblyAI/Generated/AssemblyAI.Models.Plant.g.cs index e76b5d8..0499e06 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.FunctionCall.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Plant.g.cs @@ -6,21 +6,20 @@ namespace AssemblyAI /// /// /// - public sealed partial class FunctionCall + public sealed partial class Plant { /// - /// + /// The name of the plant /// [global::System.Text.Json.Serialization.JsonPropertyName("name")] [global::System.Text.Json.Serialization.JsonRequired] public required string Name { get; set; } /// - /// The arguments to call the function with, as a JSON-formatted string. + /// Tag to specify the type /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Arguments { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tag")] + public string? Tag { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,27 +28,29 @@ public sealed partial class FunctionCall public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// - /// The arguments to call the function with, as a JSON-formatted string. + /// + /// The name of the plant + /// + /// + /// Tag to specify the type /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public FunctionCall( + public Plant( string name, - string arguments) + string? tag) { this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); + this.Tag = tag; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public FunctionCall() + public Plant() { } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PostProcessingStep.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PostProcessingStep.Json.g.cs deleted file mode 100644 index c0e5db9..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PostProcessingStep.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class PostProcessingStep - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.PostProcessingStep? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.PostProcessingStep), - jsonSerializerContext) as global::AssemblyAI.PostProcessingStep; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.PostProcessingStep? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.PostProcessingStep), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.PostProcessingStep; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PostProcessingStep.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PostProcessingStep.g.cs deleted file mode 100644 index 4993d02..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PostProcessingStep.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A single post-processing operation to apply to the model's response. - /// - public sealed partial class PostProcessingStep - { - /// - /// The type of post-processing to apply. Currently `json-repair` is supported. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.PostProcessingStepTypeJsonConverter))] - public global::AssemblyAI.PostProcessingStepType Type { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The type of post-processing to apply. Currently `json-repair` is supported. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PostProcessingStep( - global::AssemblyAI.PostProcessingStepType type) - { - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public PostProcessingStep() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PostProcessingStepType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PostProcessingStepType.g.cs deleted file mode 100644 index 81b57a4..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PostProcessingStepType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The type of post-processing to apply. Currently `json-repair` is supported. - /// - public enum PostProcessingStepType - { - /// - /// - /// - JsonRepair, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PostProcessingStepTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PostProcessingStepType value) - { - return value switch - { - PostProcessingStepType.JsonRepair => "json-repair", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PostProcessingStepType? ToEnum(string value) - { - return value switch - { - "json-repair" => PostProcessingStepType.JsonRepair, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Reasoning.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Reasoning.Json.g.cs deleted file mode 100644 index 1c021b0..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Reasoning.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class Reasoning - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.Reasoning? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.Reasoning), - jsonSerializerContext) as global::AssemblyAI.Reasoning; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.Reasoning? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.Reasoning), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Reasoning; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Reasoning.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Reasoning.g.cs deleted file mode 100644 index 105f737..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Reasoning.g.cs +++ /dev/null @@ -1,58 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Controls reasoning behavior for supported models. Supported on OpenAI-compatible models, Gemini 3+ models, and Anthropic models. - /// - public sealed partial class Reasoning - { - /// - /// The reasoning effort level. Most models support this parameter. Valid values are `low`, `medium`, and `high`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("effort")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.ReasoningEffortJsonConverter))] - public global::AssemblyAI.ReasoningEffort? Effort { get; set; } - - /// - /// The maximum number of tokens the model can use for internal reasoning. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_tokens")] - public int? MaxTokens { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The reasoning effort level. Most models support this parameter. Valid values are `low`, `medium`, and `high`. - /// - /// - /// The maximum number of tokens the model can use for internal reasoning. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Reasoning( - global::AssemblyAI.ReasoningEffort? effort, - int? maxTokens) - { - this.Effort = effort; - this.MaxTokens = maxTokens; - } - - /// - /// Initializes a new instance of the class. - /// - public Reasoning() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ReasoningEffort.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ReasoningEffort.g.cs deleted file mode 100644 index c456d2a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ReasoningEffort.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The reasoning effort level. Most models support this parameter. Valid values are `low`, `medium`, and `high`. - /// - public enum ReasoningEffort - { - /// - /// - /// - High, - /// - /// - /// - Low, - /// - /// - /// - Medium, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ReasoningEffortExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ReasoningEffort value) - { - return value switch - { - ReasoningEffort.High => "high", - ReasoningEffort.Low => "low", - ReasoningEffort.Medium => "medium", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ReasoningEffort? ToEnum(string value) - { - return value switch - { - "high" => ReasoningEffort.High, - "low" => ReasoningEffort.Low, - "medium" => ReasoningEffort.Medium, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactPiiAudioQuality.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactPiiAudioQuality.g.cs deleted file mode 100644 index 72df6d8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactPiiAudioQuality.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// 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. - /// - public enum RedactPiiAudioQuality - { - /// - /// //www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details. - /// - Mp3, - /// - /// //www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details. - /// - Wav, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RedactPiiAudioQualityExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RedactPiiAudioQuality value) - { - return value switch - { - RedactPiiAudioQuality.Mp3 => "mp3", - RedactPiiAudioQuality.Wav => "wav", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RedactPiiAudioQuality? ToEnum(string value) - { - return value switch - { - "mp3" => RedactPiiAudioQuality.Mp3, - "wav" => RedactPiiAudioQuality.Wav, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.Json.g.cs deleted file mode 100644 index 2818717..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class RedactedAudioResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.RedactedAudioResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.RedactedAudioResponse), - jsonSerializerContext) as global::AssemblyAI.RedactedAudioResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.RedactedAudioResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.RedactedAudioResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.RedactedAudioResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.g.cs deleted file mode 100644 index ffac03b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class RedactedAudioResponse - { - /// - /// The status of the redacted audio - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.RedactedAudioStatusJsonConverter))] - public global::AssemblyAI.RedactedAudioStatus Status { get; set; } - - /// - /// The URL of the redacted audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("redacted_audio_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string RedactedAudioUrl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The URL of the redacted audio file - /// - /// - /// The status of the redacted audio - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RedactedAudioResponse( - string redactedAudioUrl, - global::AssemblyAI.RedactedAudioStatus status) - { - this.Status = status; - this.RedactedAudioUrl = redactedAudioUrl ?? throw new global::System.ArgumentNullException(nameof(redactedAudioUrl)); - } - - /// - /// Initializes a new instance of the class. - /// - public RedactedAudioResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioStatus.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioStatus.g.cs deleted file mode 100644 index dc27e99..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioStatus.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The status of the redacted audio - /// - public enum RedactedAudioStatus - { - /// - /// - /// - RedactedAudioReady, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RedactedAudioStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RedactedAudioStatus value) - { - return value switch - { - RedactedAudioStatus.RedactedAudioReady => "redacted_audio_ready", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RedactedAudioStatus? ToEnum(string value) - { - return value switch - { - "redacted_audio_ready" => RedactedAudioStatus.RedactedAudioReady, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Response.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Response.Json.g.cs deleted file mode 100644 index ada980c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Response.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class Response - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.Response? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.Response), - jsonSerializerContext) as global::AssemblyAI.Response; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.Response? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.Response), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Response; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Response.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Response.g.cs deleted file mode 100644 index 771ef32..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Response.g.cs +++ /dev/null @@ -1,106 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class Response - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request_id")] - public global::System.Guid? RequestId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("choices")] - public global::System.Collections.Generic.IList? Choices { get; set; } - - /// - /// A copy of the original request, excluding `prompt` and `messages`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request")] - public global::AssemblyAI.ResponseRequest? Request { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("usage")] - public global::AssemblyAI.Usage? Usage { get; set; } - - /// - /// The HTTP status code of the response - /// - [global::System.Text.Json.Serialization.JsonPropertyName("http_status_code")] - public int? HttpStatusCode { get; set; } - - /// - /// The response time in nanoseconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response_time")] - public long? ResponseTime { get; set; } - - /// - /// The status code from the LLM provider - /// - [global::System.Text.Json.Serialization.JsonPropertyName("llm_status_code")] - public int? LlmStatusCode { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// A copy of the original request, excluding `prompt` and `messages`. - /// - /// - /// - /// The HTTP status code of the response - /// - /// - /// The response time in nanoseconds - /// - /// - /// The status code from the LLM provider - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Response( - global::System.Guid? requestId, - global::System.Collections.Generic.IList? choices, - global::AssemblyAI.ResponseRequest? request, - global::AssemblyAI.Usage? usage, - int? httpStatusCode, - long? responseTime, - int? llmStatusCode) - { - this.RequestId = requestId; - this.Choices = choices; - this.Request = request; - this.Usage = usage; - this.HttpStatusCode = httpStatusCode; - this.ResponseTime = responseTime; - this.LlmStatusCode = llmStatusCode; - } - - /// - /// Initializes a new instance of the class. - /// - public Response() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseFormat.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseFormat.Json.g.cs deleted file mode 100644 index 309b408..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseFormat.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ResponseFormat - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ResponseFormat? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ResponseFormat), - jsonSerializerContext) as global::AssemblyAI.ResponseFormat; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ResponseFormat? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ResponseFormat), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ResponseFormat; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseFormat.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseFormat.g.cs deleted file mode 100644 index 444b36e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseFormat.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Specifies the format of the model's response. Use `json_schema` type to constrain the model to output valid JSON matching a schema. - /// - public sealed partial class ResponseFormat - { - /// - /// The type of response format. Use `json_schema` for structured outputs. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.ResponseFormatTypeJsonConverter))] - public global::AssemblyAI.ResponseFormatType Type { get; set; } - - /// - /// The JSON schema configuration object. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("json_schema")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.JsonSchemaConfig JsonSchema { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The JSON schema configuration object. - /// - /// - /// The type of response format. Use `json_schema` for structured outputs. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ResponseFormat( - global::AssemblyAI.JsonSchemaConfig jsonSchema, - global::AssemblyAI.ResponseFormatType type) - { - this.Type = type; - this.JsonSchema = jsonSchema ?? throw new global::System.ArgumentNullException(nameof(jsonSchema)); - } - - /// - /// Initializes a new instance of the class. - /// - public ResponseFormat() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseFormatType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseFormatType.g.cs deleted file mode 100644 index 03e274d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseFormatType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The type of response format. Use `json_schema` for structured outputs. - /// - public enum ResponseFormatType - { - /// - /// - /// - JsonSchema, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ResponseFormatTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ResponseFormatType value) - { - return value switch - { - ResponseFormatType.JsonSchema => "json_schema", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ResponseFormatType? ToEnum(string value) - { - return value switch - { - "json_schema" => ResponseFormatType.JsonSchema, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseMessage.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseMessage.Json.g.cs deleted file mode 100644 index 5961d80..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseMessage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ResponseMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ResponseMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ResponseMessage), - jsonSerializerContext) as global::AssemblyAI.ResponseMessage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ResponseMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ResponseMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ResponseMessage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseMessage.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseMessage.g.cs deleted file mode 100644 index 44a671a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseMessage.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class ResponseMessage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - public string? Role { get; set; } - - /// - /// The text content of the model's response. Null or empty when the model is only emitting tool_calls. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")] - public global::System.Collections.Generic.IList? ToolCalls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// The text content of the model's response. Null or empty when the model is only emitting tool_calls. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ResponseMessage( - string? role, - string? content, - global::System.Collections.Generic.IList? toolCalls) - { - this.Role = role; - this.Content = content; - this.ToolCalls = toolCalls; - } - - /// - /// Initializes a new instance of the class. - /// - public ResponseMessage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseRequest.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseRequest.Json.g.cs deleted file mode 100644 index dc81b9e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ResponseRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ResponseRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ResponseRequest), - jsonSerializerContext) as global::AssemblyAI.ResponseRequest; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ResponseRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ResponseRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ResponseRequest; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseRequest.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseRequest.g.cs deleted file mode 100644 index 0a9c538..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ResponseRequest.g.cs +++ /dev/null @@ -1,83 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A copy of the original request, excluding `prompt` and `messages`. - /// - public sealed partial class ResponseRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_tokens")] - public int? MaxTokens { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } - - /// - /// Controls which (if any) function is called by the model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.ToolChoiceJsonConverter))] - public global::AssemblyAI.ToolChoice? ToolChoice { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// Controls which (if any) function is called by the model. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ResponseRequest( - string? model, - int? maxTokens, - double? temperature, - global::System.Collections.Generic.IList? tools, - global::AssemblyAI.ToolChoice? toolChoice) - { - this.Model = model; - this.MaxTokens = maxTokens; - this.Temperature = temperature; - this.Tools = tools; - this.ToolChoice = toolChoice; - } - - /// - /// Initializes a new instance of the class. - /// - public ResponseRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.Json.g.cs deleted file mode 100644 index c923963..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SentencesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SentencesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SentencesResponse), - jsonSerializerContext) as global::AssemblyAI.SentencesResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SentencesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SentencesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SentencesResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.g.cs deleted file mode 100644 index 79ed80b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.g.cs +++ /dev/null @@ -1,83 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class SentencesResponse - { - /// - /// The unique identifier for the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } - - /// - /// The confidence score for the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } - - /// - /// The duration of the audio file in seconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_duration")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double AudioDuration { get; set; } - - /// - /// An array of sentences in the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sentences")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Sentences { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The unique identifier for the transcript - /// - /// - /// The confidence score for the transcript - /// - /// - /// The duration of the audio file in seconds - /// - /// - /// An array of sentences in the transcript - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SentencesResponse( - global::System.Guid id, - double confidence, - double audioDuration, - global::System.Collections.Generic.IList sentences) - { - this.Id = id; - this.Confidence = confidence; - this.AudioDuration = audioDuration; - this.Sentences = sentences ?? throw new global::System.ArgumentNullException(nameof(sentences)); - } - - /// - /// Initializes a new instance of the class. - /// - public SentencesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Sentiment.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Sentiment.g.cs deleted file mode 100644 index ee13709..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Sentiment.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public enum Sentiment - { - /// - /// - /// - Negative, - /// - /// - /// - Neutral, - /// - /// - /// - Positive, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SentimentExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this Sentiment value) - { - return value switch - { - Sentiment.Negative => "NEGATIVE", - Sentiment.Neutral => "NEUTRAL", - Sentiment.Positive => "POSITIVE", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static Sentiment? ToEnum(string value) - { - return value switch - { - "NEGATIVE" => Sentiment.Negative, - "NEUTRAL" => Sentiment.Neutral, - "POSITIVE" => Sentiment.Positive, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.Json.g.cs deleted file mode 100644 index c3ea7e8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SentimentAnalysisResult - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SentimentAnalysisResult? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SentimentAnalysisResult), - jsonSerializerContext) as global::AssemblyAI.SentimentAnalysisResult; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SentimentAnalysisResult? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SentimentAnalysisResult), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SentimentAnalysisResult; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs deleted file mode 100644 index c72d511..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs +++ /dev/null @@ -1,118 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The result of the Sentiment Analysis model - /// - public sealed partial class SentimentAnalysisResult - { - /// - /// The transcript of the sentence - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// The starting time, in milliseconds, of the sentence - /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } - - /// - /// The ending time, in milliseconds, of the sentence - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } - - /// - /// The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sentiment")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SentimentJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.Sentiment Sentiment { get; set; } - - /// - /// The confidence score for the detected sentiment of the sentence, from 0 to 1 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } - - /// - /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("channel")] - public string? Channel { get; set; } - - /// - /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] - public string? Speaker { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The transcript of the sentence - /// - /// - /// The starting time, in milliseconds, of the sentence - /// - /// - /// The ending time, in milliseconds, of the sentence - /// - /// - /// The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE - /// - /// - /// The confidence score for the detected sentiment of the sentence, from 0 to 1 - /// - /// - /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - /// - /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SentimentAnalysisResult( - string text, - int start, - int end, - global::AssemblyAI.Sentiment sentiment, - double confidence, - string? channel, - string? speaker) - { - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Start = start; - this.End = end; - this.Sentiment = sentiment; - this.Confidence = confidence; - this.Channel = channel; - this.Speaker = speaker; - } - - /// - /// Initializes a new instance of the class. - /// - public SentimentAnalysisResult() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.Json.g.cs deleted file mode 100644 index 97e7600..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SeverityScoreSummary - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SeverityScoreSummary? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SeverityScoreSummary), - jsonSerializerContext) as global::AssemblyAI.SeverityScoreSummary; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SeverityScoreSummary? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SeverityScoreSummary), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SeverityScoreSummary; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs deleted file mode 100644 index 6ba1f15..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs +++ /dev/null @@ -1,65 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class SeverityScoreSummary - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("low")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Low { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("medium")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Medium { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("high")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double High { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SeverityScoreSummary( - double low, - double medium, - double high) - { - this.Low = low; - this.Medium = medium; - this.High = high; - } - - /// - /// Initializes a new instance of the class. - /// - public SeverityScoreSummary() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.Json.g.cs deleted file mode 100644 index 8e99dfc..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SpeakerIdentificationRequestBody - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SpeakerIdentificationRequestBody? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), - jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationRequestBody; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SpeakerIdentificationRequestBody? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationRequestBody; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.g.cs deleted file mode 100644 index c2d6358..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Request body for [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification). - /// - public sealed partial class SpeakerIdentificationRequestBody - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker_identification")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification SpeakerIdentification { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SpeakerIdentificationRequestBody( - global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification speakerIdentification) - { - this.SpeakerIdentification = speakerIdentification ?? throw new global::System.ArgumentNullException(nameof(speakerIdentification)); - } - - /// - /// Initializes a new instance of the class. - /// - public SpeakerIdentificationRequestBody() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.Json.g.cs deleted file mode 100644 index 5883ba9..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SpeakerIdentificationRequestBodySpeakerIdentification - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification), - jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.g.cs deleted file mode 100644 index a893c47..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class SpeakerIdentificationRequestBodySpeakerIdentification - { - /// - /// Type of speaker identification. See [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) for details on each type. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType SpeakerType { get; set; } - - /// - /// Required if speaker_type is "role". Each value must be 35 characters or less. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("known_values")] - public global::System.Collections.Generic.IList? KnownValues { get; set; } - - /// - /// An array of speaker objects with metadata to improve identification accuracy. Each object should include a `role` or `name` (depending on `speaker_type`) and an optional `description` to help the model identify the speaker. You can also include any additional custom properties (e.g., `company`, `title`) to provide more context. Use this as an alternative to `known_values` when you want to provide additional context about each speaker. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speakers")] - public global::System.Collections.Generic.IList? Speakers { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Type of speaker identification. See [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) for details on each type. - /// - /// - /// Required if speaker_type is "role". Each value must be 35 characters or less. - /// - /// - /// An array of speaker objects with metadata to improve identification accuracy. Each object should include a `role` or `name` (depending on `speaker_type`) and an optional `description` to help the model identify the speaker. You can also include any additional custom properties (e.g., `company`, `title`) to provide more context. Use this as an alternative to `known_values` when you want to provide additional context about each speaker. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SpeakerIdentificationRequestBodySpeakerIdentification( - global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType speakerType, - global::System.Collections.Generic.IList? knownValues, - global::System.Collections.Generic.IList? speakers) - { - this.SpeakerType = speakerType; - this.KnownValues = knownValues; - this.Speakers = speakers; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeakerIdentificationRequestBodySpeakerIdentification() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs deleted file mode 100644 index 81a0c2d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Type of speaker identification. See [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) for details on each type. - /// - public enum SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType - { - /// - /// - /// - Name, - /// - /// - /// - Role, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType value) - { - return value switch - { - SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.Name => "name", - SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.Role => "role", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? ToEnum(string value) - { - return value switch - { - "name" => SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.Name, - "role" => SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.Role, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems.Json.g.cs deleted file mode 100644 index 3f8bc62..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems), - jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems.g.cs deleted file mode 100644 index 23c866a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems - { - /// - /// The role of the speaker. Required when `speaker_type` is "role". - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - public string? Role { get; set; } - - /// - /// The name of the speaker. Required when `speaker_type` is "name". - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// A description of the speaker to help the model identify them based on conversational context. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The role of the speaker. Required when `speaker_type` is "role". - /// - /// - /// The name of the speaker. Required when `speaker_type` is "name". - /// - /// - /// A description of the speaker to help the model identify them based on conversational context. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems( - string? role, - string? name, - string? description) - { - this.Role = role; - this.Name = name; - this.Description = description; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.Json.g.cs deleted file mode 100644 index 293e562..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SpeakerIdentificationResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SpeakerIdentificationResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SpeakerIdentificationResponse), - jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SpeakerIdentificationResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SpeakerIdentificationResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.g.cs deleted file mode 100644 index c53ca37..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class SpeakerIdentificationResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker_identification")] - public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? SpeakerIdentification { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SpeakerIdentificationResponse( - global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? speakerIdentification) - { - this.SpeakerIdentification = speakerIdentification; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeakerIdentificationResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.Json.g.cs deleted file mode 100644 index fab580b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SpeakerIdentificationResponseSpeakerIdentification - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification), - jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.g.cs deleted file mode 100644 index bddacd5..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class SpeakerIdentificationResponseSpeakerIdentification - { - /// - /// A mapping of the original generic speaker labels (e.g., "A", "B") to the identified speaker names or roles. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mapping")] - public global::System.Collections.Generic.Dictionary? Mapping { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public string? Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A mapping of the original generic speaker labels (e.g., "A", "B") to the identified speaker names or roles. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SpeakerIdentificationResponseSpeakerIdentification( - global::System.Collections.Generic.Dictionary? mapping, - string? status) - { - this.Mapping = mapping; - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeakerIdentificationResponseSpeakerIdentification() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentificationMapping.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentificationMapping.Json.g.cs deleted file mode 100644 index d787ec5..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentificationMapping.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SpeakerIdentificationResponseSpeakerIdentificationMapping - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentificationMapping? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentificationMapping), - jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentificationMapping; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentificationMapping? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentificationMapping), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentificationMapping; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentificationMapping.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentificationMapping.g.cs deleted file mode 100644 index 164a6bf..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentificationMapping.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A mapping of the original generic speaker labels (e.g., "A", "B") to the identified speaker names or roles. - /// - public sealed partial class SpeakerIdentificationResponseSpeakerIdentificationMapping - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.StreamingAPIGenerateStreamingTokenResponse200.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.StreamingAPIGenerateStreamingTokenResponse200.Json.g.cs deleted file mode 100644 index 489e3d0..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.StreamingAPIGenerateStreamingTokenResponse200.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class StreamingAPIGenerateStreamingTokenResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200), - jsonSerializerContext) as global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.StreamingAPIGenerateStreamingTokenResponse200; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.StreamingAPIGenerateStreamingTokenResponse200.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.StreamingAPIGenerateStreamingTokenResponse200.g.cs deleted file mode 100644 index c6c8d05..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.StreamingAPIGenerateStreamingTokenResponse200.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class StreamingAPIGenerateStreamingTokenResponse200 - { - /// - /// The temporary authentication token - /// - [global::System.Text.Json.Serialization.JsonPropertyName("token")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Token { get; set; } - - /// - /// The token redemption window in seconds — the time the client has to use this token to open a WebSocket before it expires unused. This is not the session duration; see `max_session_duration_seconds` for that. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("expires_in_seconds")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int ExpiresInSeconds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The temporary authentication token - /// - /// - /// The token redemption window in seconds — the time the client has to use this token to open a WebSocket before it expires unused. This is not the session duration; see `max_session_duration_seconds` for that. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public StreamingAPIGenerateStreamingTokenResponse200( - string token, - int expiresInSeconds) - { - this.Token = token ?? throw new global::System.ArgumentNullException(nameof(token)); - this.ExpiresInSeconds = expiresInSeconds; - } - - /// - /// Initializes a new instance of the class. - /// - public StreamingAPIGenerateStreamingTokenResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse.Json.g.cs deleted file mode 100644 index 3d751a3..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SubmitResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SubmitResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SubmitResponse), - jsonSerializerContext) as global::AssemblyAI.SubmitResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SubmitResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SubmitResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SubmitResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse.g.cs deleted file mode 100644 index ff7c7dc..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class SubmitResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse2.Json.g.cs deleted file mode 100644 index 75ecf27..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class SubmitResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.SubmitResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.SubmitResponse2), - jsonSerializerContext) as global::AssemblyAI.SubmitResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.SubmitResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.SubmitResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SubmitResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse2.g.cs deleted file mode 100644 index 361147d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubmitResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class SubmitResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubstitutionPolicy.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubstitutionPolicy.g.cs deleted file mode 100644 index ea0bbc6..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubstitutionPolicy.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/streaming/pii-redaction) for more details. - /// - public enum SubstitutionPolicy - { - /// - /// //www.assemblyai.com/docs/streaming/pii-redaction) for more details. - /// - EntityName, - /// - /// //www.assemblyai.com/docs/streaming/pii-redaction) for more details. - /// - Hash, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SubstitutionPolicyExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SubstitutionPolicy value) - { - return value switch - { - SubstitutionPolicy.EntityName => "entity_name", - SubstitutionPolicy.Hash => "hash", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SubstitutionPolicy? ToEnum(string value) - { - return value switch - { - "entity_name" => SubstitutionPolicy.EntityName, - "hash" => SubstitutionPolicy.Hash, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubtitleFormat.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubtitleFormat.g.cs deleted file mode 100644 index 94713df..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SubtitleFormat.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Format of the subtitles - /// - public enum SubtitleFormat - { - /// - /// - /// - Srt, - /// - /// - /// - Vtt, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SubtitleFormatExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SubtitleFormat value) - { - return value switch - { - SubtitleFormat.Srt => "srt", - SubtitleFormat.Vtt => "vtt", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SubtitleFormat? ToEnum(string value) - { - return value switch - { - "srt" => SubtitleFormat.Srt, - "vtt" => SubtitleFormat.Vtt, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummaryModel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummaryModel.g.cs deleted file mode 100644 index 6c93809..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummaryModel.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The model to summarize the transcript - /// - public enum SummaryModel - { - /// - /// - /// - Catchy, - /// - /// - /// - Conversational, - /// - /// - /// - Informative, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SummaryModelExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SummaryModel value) - { - return value switch - { - SummaryModel.Catchy => "catchy", - SummaryModel.Conversational => "conversational", - SummaryModel.Informative => "informative", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SummaryModel? ToEnum(string value) - { - return value switch - { - "catchy" => SummaryModel.Catchy, - "conversational" => SummaryModel.Conversational, - "informative" => SummaryModel.Informative, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummaryType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummaryType.g.cs deleted file mode 100644 index 2c577b8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SummaryType.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The type of summary - /// - public enum SummaryType - { - /// - /// - /// - Bullets, - /// - /// - /// - BulletsVerbose, - /// - /// - /// - Gist, - /// - /// - /// - Headline, - /// - /// - /// - Paragraph, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SummaryTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SummaryType value) - { - return value switch - { - SummaryType.Bullets => "bullets", - SummaryType.BulletsVerbose => "bullets_verbose", - SummaryType.Gist => "gist", - SummaryType.Headline => "headline", - SummaryType.Paragraph => "paragraph", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SummaryType? ToEnum(string value) - { - return value switch - { - "bullets" => SummaryType.Bullets, - "bullets_verbose" => SummaryType.BulletsVerbose, - "gist" => SummaryType.Gist, - "headline" => SummaryType.Headline, - "paragraph" => SummaryType.Paragraph, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.Json.g.cs deleted file mode 100644 index 382965c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class Timestamp - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.Timestamp? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.Timestamp), - jsonSerializerContext) as global::AssemblyAI.Timestamp; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.Timestamp? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.Timestamp), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Timestamp; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.g.cs deleted file mode 100644 index d344e50..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Timestamp containing a start and end property in milliseconds - /// - public sealed partial class Timestamp - { - /// - /// The start time in milliseconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } - - /// - /// The end time in milliseconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The start time in milliseconds - /// - /// - /// The end time in milliseconds - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Timestamp( - int start, - int end) - { - this.Start = start; - this.End = end; - } - - /// - /// Initializes a new instance of the class. - /// - public Timestamp() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Tool.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Tool.g.cs deleted file mode 100644 index 6f0e105..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Tool.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class Tool - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.ToolTypeJsonConverter))] - public global::AssemblyAI.ToolType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("function")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.FunctionDescription Function { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Tool( - global::AssemblyAI.FunctionDescription function, - global::AssemblyAI.ToolType type) - { - this.Type = type; - this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function)); - } - - /// - /// Initializes a new instance of the class. - /// - public Tool() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice.Json.g.cs deleted file mode 100644 index f937f1b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public readonly partial struct ToolChoice - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ToolChoice? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ToolChoice), - jsonSerializerContext) as global::AssemblyAI.ToolChoice?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ToolChoice? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ToolChoice), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ToolChoice?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice.g.cs deleted file mode 100644 index 28129f1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Controls which (if any) function is called by the model. - /// - public readonly partial struct ToolChoice : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.ToolChoice0? ToolChoice0 { get; init; } -#else - public global::AssemblyAI.ToolChoice0? ToolChoice0 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolChoice0))] -#endif - public bool IsToolChoice0 => ToolChoice0 != null; - - /// - /// - /// - public bool TryPickToolChoice0( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.ToolChoice0? value) - { - value = ToolChoice0; - return IsToolChoice0; - } - - /// - /// - /// - public global::AssemblyAI.ToolChoice0 PickToolChoice0() => IsToolChoice0 - ? ToolChoice0!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolChoice0' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.ToolChoice1? ToolChoice1 { get; init; } -#else - public global::AssemblyAI.ToolChoice1? ToolChoice1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolChoice1))] -#endif - public bool IsToolChoice1 => ToolChoice1 != null; - - /// - /// - /// - public bool TryPickToolChoice1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.ToolChoice1? value) - { - value = ToolChoice1; - return IsToolChoice1; - } - - /// - /// - /// - public global::AssemblyAI.ToolChoice1 PickToolChoice1() => IsToolChoice1 - ? ToolChoice1! - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolChoice1' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ToolChoice(global::AssemblyAI.ToolChoice0 value) => new ToolChoice((global::AssemblyAI.ToolChoice0?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.ToolChoice0?(ToolChoice @this) => @this.ToolChoice0; - - /// - /// - /// - public ToolChoice(global::AssemblyAI.ToolChoice0? value) - { - ToolChoice0 = value; - } - - /// - /// - /// - public static ToolChoice FromToolChoice0(global::AssemblyAI.ToolChoice0? value) => new ToolChoice(value); - - /// - /// - /// - public static implicit operator ToolChoice(global::AssemblyAI.ToolChoice1 value) => new ToolChoice((global::AssemblyAI.ToolChoice1?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.ToolChoice1?(ToolChoice @this) => @this.ToolChoice1; - - /// - /// - /// - public ToolChoice(global::AssemblyAI.ToolChoice1? value) - { - ToolChoice1 = value; - } - - /// - /// - /// - public static ToolChoice FromToolChoice1(global::AssemblyAI.ToolChoice1? value) => new ToolChoice(value); - - /// - /// - /// - public ToolChoice( - global::AssemblyAI.ToolChoice0? toolChoice0, - global::AssemblyAI.ToolChoice1? toolChoice1 - ) - { - ToolChoice0 = toolChoice0; - ToolChoice1 = toolChoice1; - } - - /// - /// - /// - public object? Object => - ToolChoice1 as object ?? - ToolChoice0 as object - ; - - /// - /// - /// - public override string? ToString() => - ToolChoice0?.ToValueString() ?? - ToolChoice1?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsToolChoice0 && !IsToolChoice1 || !IsToolChoice0 && IsToolChoice1; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? toolChoice0 = null, - global::System.Func? toolChoice1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsToolChoice0 && toolChoice0 != null) - { - return toolChoice0(ToolChoice0!); - } - else if (IsToolChoice1 && toolChoice1 != null) - { - return toolChoice1(ToolChoice1!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? toolChoice0 = null, - - global::System.Action? toolChoice1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsToolChoice0) - { - toolChoice0?.Invoke(ToolChoice0!); - } - else if (IsToolChoice1) - { - toolChoice1?.Invoke(ToolChoice1!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? toolChoice0 = null, - global::System.Action? toolChoice1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsToolChoice0) - { - toolChoice0?.Invoke(ToolChoice0!); - } - else if (IsToolChoice1) - { - toolChoice1?.Invoke(ToolChoice1!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - ToolChoice0, - typeof(global::AssemblyAI.ToolChoice0), - ToolChoice1, - typeof(global::AssemblyAI.ToolChoice1), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(ToolChoice other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolChoice0, other.ToolChoice0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolChoice1, other.ToolChoice1) - ; - } - - /// - /// - /// - public static bool operator ==(ToolChoice obj1, ToolChoice obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ToolChoice obj1, ToolChoice obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ToolChoice o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice0.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice0.g.cs deleted file mode 100644 index 26ff2e1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice0.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public enum ToolChoice0 - { - /// - /// - /// - Auto, - /// - /// - /// - None, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ToolChoice0Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ToolChoice0 value) - { - return value switch - { - ToolChoice0.Auto => "auto", - ToolChoice0.None => "none", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ToolChoice0? ToEnum(string value) - { - return value switch - { - "auto" => ToolChoice0.Auto, - "none" => ToolChoice0.None, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice1.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice1.Json.g.cs deleted file mode 100644 index 16588fa..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice1.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ToolChoice1 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ToolChoice1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ToolChoice1), - jsonSerializerContext) as global::AssemblyAI.ToolChoice1; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ToolChoice1? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ToolChoice1), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ToolChoice1; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice1.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice1.g.cs deleted file mode 100644 index c5bb67e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoice1.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class ToolChoice1 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.ToolChoiceOneOf1TypeJsonConverter))] - public global::AssemblyAI.ToolChoiceOneOf1Type Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("function")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.ToolChoiceOneOf1Function Function { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ToolChoice1( - global::AssemblyAI.ToolChoiceOneOf1Function function, - global::AssemblyAI.ToolChoiceOneOf1Type type) - { - this.Type = type; - this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function)); - } - - /// - /// Initializes a new instance of the class. - /// - public ToolChoice1() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoiceOneOf1Function.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoiceOneOf1Function.Json.g.cs deleted file mode 100644 index eef8cdb..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoiceOneOf1Function.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class ToolChoiceOneOf1Function - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.ToolChoiceOneOf1Function? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.ToolChoiceOneOf1Function), - jsonSerializerContext) as global::AssemblyAI.ToolChoiceOneOf1Function; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.ToolChoiceOneOf1Function? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.ToolChoiceOneOf1Function), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.ToolChoiceOneOf1Function; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoiceOneOf1Type.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoiceOneOf1Type.g.cs deleted file mode 100644 index 0a60a75..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolChoiceOneOf1Type.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public enum ToolChoiceOneOf1Type - { - /// - /// - /// - Function, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ToolChoiceOneOf1TypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ToolChoiceOneOf1Type value) - { - return value switch - { - ToolChoiceOneOf1Type.Function => "function", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ToolChoiceOneOf1Type? ToEnum(string value) - { - return value switch - { - "function" => ToolChoiceOneOf1Type.Function, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolMessageRole.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolMessageRole.g.cs deleted file mode 100644 index 3c8b43b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolMessageRole.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public enum ToolMessageRole - { - /// - /// - /// - Tool, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ToolMessageRoleExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ToolMessageRole value) - { - return value switch - { - ToolMessageRole.Tool => "tool", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ToolMessageRole? ToEnum(string value) - { - return value switch - { - "tool" => ToolMessageRole.Tool, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolType.g.cs deleted file mode 100644 index b4b2d02..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ToolType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public enum ToolType - { - /// - /// - /// - Function, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ToolTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ToolType value) - { - return value switch - { - ToolType.Function => "function", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ToolType? ToEnum(string value) - { - return value switch - { - "function" => ToolType.Function, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.Json.g.cs deleted file mode 100644 index 5710f13..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TopicDetectionModelResult - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TopicDetectionModelResult? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TopicDetectionModelResult), - jsonSerializerContext) as global::AssemblyAI.TopicDetectionModelResult; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TopicDetectionModelResult? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TopicDetectionModelResult), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TopicDetectionModelResult; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs deleted file mode 100644 index 1dc1f34..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs +++ /dev/null @@ -1,73 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The result of the Topic Detection model, if it is enabled.
- /// See [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics) for more information. - ///
- public sealed partial class TopicDetectionModelResult - { - /// - /// The status of the Topic Detection model. Either success, or unavailable in the rare case that the model failed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.AudioIntelligenceModelStatus Status { get; set; } - - /// - /// An array of results for the Topic Detection model - /// - [global::System.Text.Json.Serialization.JsonPropertyName("results")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Results { get; set; } - - /// - /// The overall relevance of topic to the entire audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.Dictionary Summary { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The status of the Topic Detection model. Either success, or unavailable in the rare case that the model failed. - /// - /// - /// An array of results for the Topic Detection model - /// - /// - /// The overall relevance of topic to the entire audio file - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TopicDetectionModelResult( - global::AssemblyAI.AudioIntelligenceModelStatus status, - global::System.Collections.Generic.IList results, - global::System.Collections.Generic.Dictionary summary) - { - this.Status = status; - this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); - this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); - } - - /// - /// Initializes a new instance of the class. - /// - public TopicDetectionModelResult() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResultSummary.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResultSummary.Json.g.cs deleted file mode 100644 index a22f19d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResultSummary.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TopicDetectionModelResultSummary - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TopicDetectionModelResultSummary? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TopicDetectionModelResultSummary), - jsonSerializerContext) as global::AssemblyAI.TopicDetectionModelResultSummary; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TopicDetectionModelResultSummary? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TopicDetectionModelResultSummary), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TopicDetectionModelResultSummary; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResultSummary.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResultSummary.g.cs deleted file mode 100644 index 659eca3..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResultSummary.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The overall relevance of topic to the entire audio file - /// - public sealed partial class TopicDetectionModelResultSummary - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.Json.g.cs deleted file mode 100644 index b9268d3..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TopicDetectionResult - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TopicDetectionResult? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TopicDetectionResult), - jsonSerializerContext) as global::AssemblyAI.TopicDetectionResult; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TopicDetectionResult? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TopicDetectionResult), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TopicDetectionResult; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.g.cs deleted file mode 100644 index 3704061..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The result of the topic detection model - /// - public sealed partial class TopicDetectionResult - { - /// - /// The text in the transcript in which a detected topic occurs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// An array of detected topics in the text - /// - [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - public global::System.Collections.Generic.IList? Labels { get; set; } - - /// - /// Timestamp containing a start and end property in milliseconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")] - public global::AssemblyAI.Timestamp? Timestamp { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The text in the transcript in which a detected topic occurs - /// - /// - /// An array of detected topics in the text - /// - /// - /// Timestamp containing a start and end property in milliseconds - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TopicDetectionResult( - string text, - global::System.Collections.Generic.IList? labels, - global::AssemblyAI.Timestamp? timestamp) - { - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Labels = labels; - this.Timestamp = timestamp; - } - - /// - /// Initializes a new instance of the class. - /// - public TopicDetectionResult() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabelsItems.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabelsItems.Json.g.cs deleted file mode 100644 index 61c6b7f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabelsItems.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TopicDetectionResultLabelsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TopicDetectionResultLabelsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TopicDetectionResultLabelsItems), - jsonSerializerContext) as global::AssemblyAI.TopicDetectionResultLabelsItems; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TopicDetectionResultLabelsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TopicDetectionResultLabelsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TopicDetectionResultLabelsItems; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabelsItems.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabelsItems.g.cs deleted file mode 100644 index 019ab1c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabelsItems.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class TopicDetectionResultLabelsItems - { - /// - /// How relevant the detected topic is of a detected topic - /// - [global::System.Text.Json.Serialization.JsonPropertyName("relevance")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Relevance { get; set; } - - /// - /// The IAB taxonomical label for the label of the detected topic, where > denotes supertopic/subtopic relationship - /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Label { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// How relevant the detected topic is of a detected topic - /// - /// - /// The IAB taxonomical label for the label of the detected topic, where > denotes supertopic/subtopic relationship - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TopicDetectionResultLabelsItems( - double relevance, - string label) - { - this.Relevance = relevance; - this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); - } - - /// - /// Initializes a new instance of the class. - /// - public TopicDetectionResultLabelsItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.Json.g.cs deleted file mode 100644 index 93d8dd5..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class Transcript - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.Transcript? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.Transcript), - jsonSerializerContext) as global::AssemblyAI.Transcript; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.Transcript? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.Transcript), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Transcript; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs deleted file mode 100644 index 3ab3045..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ /dev/null @@ -1,913 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A transcript object - /// - public sealed partial class Transcript - { - /// - /// The number of audio channels in the audio file. This is only present when [multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) is enabled. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_channels")] - public int? AudioChannels { get; set; } - - /// - /// The duration of this transcript object's media file, in seconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_duration")] - public int? AudioDuration { get; set; } - - /// - /// The point in time, in milliseconds, in the file at which the transcription was terminated. 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_end_at")] - public int? AudioEndAt { get; set; } - - /// - /// The point in time, in milliseconds, in the file at which the transcription was started. 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_start_from")] - public int? AudioStartFrom { get; set; } - - /// - /// The URL of the media that was transcribed - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AudioUrl { get; set; } - - /// - /// Whether [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/create-summarized-chapters) is enabled, 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("auto_chapters")] - public bool? AutoChapters { get; set; } - - /// - /// Whether [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights) is enabled, either true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("auto_highlights")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool AutoHighlights { get; set; } - - /// - /// An array of results for the Key Phrases model, if it is enabled.
- /// See [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("auto_highlights_result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? AutoHighlightsResult { get; set; } - - /// - /// An array of temporally sequential chapters for the audio file. See [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/create-summarized-chapters) for more information. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chapters")] - public global::System.Collections.Generic.IList? Chapters { get; set; } - - /// - /// The confidence score for the transcript, between 0.0 (low confidence) and 1.0 (high confidence) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] - public double? Confidence { get; set; } - - /// - /// Whether [Content Moderation](https://www.assemblyai.com/docs/content-moderation) is enabled, can be true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content_safety")] - public bool? ContentSafety { get; set; } - - /// - /// An array of results for the Content Moderation model, if it is enabled.
- /// See [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("content_safety_labels")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? ContentSafetyLabels { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_spelling")] - public global::System.Collections.Generic.IList? CustomSpelling { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("disfluencies")] - public bool? Disfluencies { get; set; } - - /// - /// The domain-specific model applied to the transcript. When set to `"medical-v1"`, [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) was used to improve accuracy for medical terminology. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("domain")] - public string? Domain { get; set; } - - /// - /// An array of results for the Entity Detection model, if it is enabled.
- /// See [Entity detection](https://www.assemblyai.com/docs/speech-understanding/detect-entities-in-transcript) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("entities")] - public global::System.Collections.Generic.IList? Entities { get; set; } - - /// - /// Whether [Entity Detection](https://www.assemblyai.com/docs/speech-understanding/detect-entities-in-transcript) is enabled, can be true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("entity_detection")] - public bool? EntityDetection { get; set; } - - /// - /// Error message of why the transcript failed - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public string? Error { get; set; } - - /// - /// Whether [Profanity Filtering](https://www.assemblyai.com/docs/profanity-filtering) is enabled, either true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filter_profanity")] - public bool? FilterProfanity { get; set; } - - /// - /// Whether [Text Formatting](https://www.assemblyai.com/docs/pre-recorded-audio) is enabled, either true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("format_text")] - public bool? FormatText { get; set; } - - /// - /// Whether [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics) is enabled, can be true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("iab_categories")] - public bool? IabCategories { get; set; } - - /// - /// The result of the Topic Detection model, if it is enabled.
- /// See [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("iab_categories_result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? IabCategoriesResult { get; set; } - - /// - /// The unique identifier of your transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("keyterms_prompt")] - public global::System.Collections.Generic.IList? KeytermsPrompt { get; set; } - - /// - /// 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'. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeJsonConverter))] - public global::AssemblyAI.TranscriptLanguageCode? LanguageCode { get; set; } - - /// - /// 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`. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language_codes")] - public global::System.Collections.Generic.IList? LanguageCodes { get; set; } - - /// - /// The confidence score for the detected language, between 0.0 (low confidence) and 1.0 (high confidence). See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language_confidence")] - public double? LanguageConfidence { get; set; } - - /// - /// The confidence threshold for the automatically detected language.
- /// An error will be returned if the language confidence is below this threshold.
- /// See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language_confidence_threshold")] - public double? LanguageConfidenceThreshold { get; set; } - - /// - /// Whether [Automatic language detection](/docs/pre-recorded-audio/automatic-language-detection) is enabled, either true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language_detection")] - public bool? LanguageDetection { get; set; } - - /// - /// Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language_detection_options")] - public global::AssemblyAI.TranscriptLanguageDetectionOptions? LanguageDetectionOptions { get; set; } - - /// - /// Additional metadata about the transcription, including any warnings emitted while processing the request. Only present when there is information to report; if no fields would be populated, `metadata` is omitted from the response entirely. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? Metadata { get; set; } - - /// - /// Whether [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) was enabled in the transcription request, either true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("multichannel")] - public bool? Multichannel { get; set; } - - /// - /// 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - public string? Prompt { get; set; } - - /// - /// Whether [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio) is enabled, either true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("punctuate")] - public bool? Punctuate { get; set; } - - /// - /// Whether [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) is enabled, either true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool RedactPii { get; set; } - - /// - /// Whether a redacted version of the audio file was generated,
- /// either true or false. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio")] - public bool? RedactPiiAudio { get; set; } - - /// - /// The options for PII-redacted audio, if redact_pii_audio is enabled.
- /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_options")] - public global::AssemblyAI.TranscriptRedactPiiAudioOptions? RedactPiiAudioOptions { get; set; } - - /// - /// The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled.
- /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_quality")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? RedactPiiAudioQuality { get; set; } - - /// - /// The list of PII Redaction policies that were enabled, if PII Redaction is enabled.
- /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_policies")] - public global::System.Collections.Generic.IList? RedactPiiPolicies { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_sub")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SubstitutionPolicyJsonConverter))] - public global::AssemblyAI.SubstitutionPolicy? RedactPiiSub { get; set; } - - /// - /// Whether the original unredacted transcript was also returned alongside the redacted one. When `true`, the response includes `unredacted_text`, `unredacted_words`, and `unredacted_utterances`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_return_unredacted")] - public bool? RedactPiiReturnUnredacted { get; set; } - - /// - /// Whether [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/analyze-sentiment-of-speech) is enabled, can be true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sentiment_analysis")] - public bool? SentimentAnalysis { get; set; } - - /// - /// An array of results for the Sentiment Analysis model, if it is enabled.
- /// See [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/analyze-sentiment-of-speech) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sentiment_analysis_results")] - public global::System.Collections.Generic.IList? SentimentAnalysisResults { get; set; } - - /// - /// Whether [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, can be true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker_labels")] - public bool? SpeakerLabels { get; set; } - - /// - /// Tell 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speakers_expected")] - public int? SpeakersExpected { get; set; } - - /// - /// The speech model that was actually used for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_model_used")] - public string? SpeechModelUsed { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_models")] - public global::System.Collections.Generic.IList? SpeechModels { get; set; } - - /// - /// Defaults to null. 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("speech_threshold")] - public double? SpeechThreshold { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_understanding")] - public global::AssemblyAI.TranscriptSpeechUnderstanding? SpeechUnderstanding { get; set; } - - /// - /// The status of your transcript. Possible values are queued, processing, completed, or error. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.TranscriptStatus Status { get; set; } - - /// - /// Whether [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled, either 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("summarization")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Summarization { get; set; } - - /// - /// The generated summary of the media file, if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled. 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary")] - public string? Summary { get; set; } - - /// - /// The Summarization model used to generate the summary,
- /// if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled. 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("summary_model")] - public string? SummaryModel { get; set; } - - /// - /// The type of summary generated, if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled. 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary_type")] - public string? SummaryType { get; set; } - - /// - /// 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? RemoveAudioTags { get; set; } - - /// - /// The temperature that was used for 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - - /// - /// The textual transcript of your media file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } - - /// - /// The original textual transcript of your media file before PII redaction was applied. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `text` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("unredacted_text")] - public string? UnredactedText { get; set; } - - /// - /// True while a request is throttled and false when a request is no longer throttled - /// - [global::System.Text.Json.Serialization.JsonPropertyName("throttled")] - public bool? Throttled { get; set; } - - /// - /// When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
- /// See [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) and [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) for more information. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("utterances")] - public global::System.Collections.Generic.IList? Utterances { get; set; } - - /// - /// The original turn-by-turn utterance objects before PII redaction was applied. Same shape as `utterances`. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `utterances` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("unredacted_utterances")] - public global::System.Collections.Generic.IList? UnredactedUtterances { get; set; } - - /// - /// Whether [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) authentication details were provided - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_auth")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool WebhookAuth { get; set; } - - /// - /// 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 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_auth_header_name")] - public string? WebhookAuthHeaderName { get; set; } - - /// - /// The status code we received from your server when delivering the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) request, if a webhook URL was provided - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_status_code")] - public int? WebhookStatusCode { get; set; } - - /// - /// The URL to which we send [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_url")] - public string? WebhookUrl { get; set; } - - /// - /// An array of temporally-sequential word objects, one for each word in the transcript. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("words")] - public global::System.Collections.Generic.IList? Words { get; set; } - - /// - /// The original temporally-sequential word objects before PII redaction was applied. Same shape as `words`. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `words` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("unredacted_words")] - public global::System.Collections.Generic.IList? UnredactedWords { get; set; } - - /// - /// This parameter does not currently have any functionality attached to it. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("acoustic_model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AcousticModel { get; set; } - - /// - /// This parameter does not currently have any functionality attached to it. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_topics")] - public bool? CustomTopics { get; set; } - - /// - /// This parameter does not currently have any functionality attached to it. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language_model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string LanguageModel { get; set; } - - /// - /// 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). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.OneOf SpeechModel { get; set; } - - /// - /// This parameter does not currently have any functionality attached to it. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speed_boost")] - public bool? SpeedBoost { get; set; } - - /// - /// This parameter does not currently have any functionality attached to it. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("topics")] - public global::System.Collections.Generic.IList? Topics { get; set; } - - /// - /// Translated text keyed by language code. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("translated_texts")] - public global::AssemblyAI.TranscriptTranslatedTexts? TranslatedTexts { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The URL of the media that was transcribed - /// - /// - /// Whether [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights) is enabled, either true or false - /// - /// - /// The unique identifier of your transcript - /// - /// - /// Whether [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) is enabled, either true or false - /// - /// - /// The status of your transcript. Possible values are queued, processing, completed, or error. - /// - /// - /// Whether [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled, either 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. - /// - /// - /// Whether [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) authentication details were provided - /// - /// - /// This parameter does not currently have any functionality attached to it. - /// - /// - /// This parameter does not currently have any functionality attached to it. - /// - /// - /// 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). - /// - /// - /// The number of audio channels in the audio file. This is only present when [multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) is enabled. - /// - /// - /// The duration of this transcript object's media file, in seconds - /// - /// - /// The point in time, in milliseconds, in the file at which the transcription was terminated. 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, in the file at which the transcription was started. 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. - /// - /// - /// Whether [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/create-summarized-chapters) is enabled, 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. - /// - /// - /// An array of results for the Key Phrases model, if it is enabled.
- /// See [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights) for more information. - /// - /// - /// An array of temporally sequential chapters for the audio file. See [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/create-summarized-chapters) for more information. - /// - /// - /// The confidence score for the transcript, between 0.0 (low confidence) and 1.0 (high confidence) - /// - /// - /// Whether [Content Moderation](https://www.assemblyai.com/docs/content-moderation) is enabled, can be true or false - /// - /// - /// An array of results for the Content Moderation model, if it is enabled.
- /// See [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information. - /// - /// - /// 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. - /// - /// - /// The domain-specific model applied to the transcript. When set to `"medical-v1"`, [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) was used to improve accuracy for medical terminology. - /// - /// - /// An array of results for the Entity Detection model, if it is enabled.
- /// See [Entity detection](https://www.assemblyai.com/docs/speech-understanding/detect-entities-in-transcript) for more information. - /// - /// - /// Whether [Entity Detection](https://www.assemblyai.com/docs/speech-understanding/detect-entities-in-transcript) is enabled, can be true or false - /// - /// - /// Error message of why the transcript failed - /// - /// - /// Whether [Profanity Filtering](https://www.assemblyai.com/docs/profanity-filtering) is enabled, either true or false - /// - /// - /// Whether [Text Formatting](https://www.assemblyai.com/docs/pre-recorded-audio) is enabled, either true or false - /// - /// - /// Whether [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics) is enabled, can be true or false - /// - /// - /// The result of the Topic Detection model, if it is enabled.
- /// See [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics) for more information. - /// - /// - /// 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 score for the detected language, between 0.0 (low confidence) and 1.0 (high confidence). See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. - /// - /// - /// The confidence threshold for the automatically detected language.
- /// An error will be returned if the language confidence is below this threshold.
- /// See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. - /// - /// - /// Whether [Automatic language detection](/docs/pre-recorded-audio/automatic-language-detection) is enabled, either true or false - /// - /// - /// Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). - /// - /// - /// Additional metadata about the transcription, including any warnings emitted while processing the request. Only present when there is information to report; if no fields would be populated, `metadata` is omitted from the response entirely. - /// - /// - /// Whether [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) was enabled in the transcription request, either true or 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. - /// - /// - /// Whether [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio) is enabled, either true or false - /// - /// - /// Whether a redacted version of the audio file was generated,
- /// either true or false. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. - /// - /// - /// The options for PII-redacted audio, if redact_pii_audio is enabled.
- /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. - /// - /// - /// The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled.
- /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. - /// - /// - /// The list of PII Redaction policies that were enabled, if PII Redaction is enabled.
- /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - /// - /// - /// 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. - /// - /// - /// Whether the original unredacted transcript was also returned alongside the redacted one. When `true`, the response includes `unredacted_text`, `unredacted_words`, and `unredacted_utterances`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - /// - /// - /// Whether [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/analyze-sentiment-of-speech) is enabled, can be true or false - /// - /// - /// An array of results for the Sentiment Analysis model, if it is enabled.
- /// See [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/analyze-sentiment-of-speech) for more information. - /// - /// - /// Whether [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, can be true or false - /// - /// - /// Tell 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. - /// - /// - /// The speech model that was actually used for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. - /// - /// - /// 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. - /// - /// - /// Defaults to null. 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. - /// - /// - /// 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. - /// - /// - /// The generated summary of the media file, if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled. 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 Summarization model used to generate the summary,
- /// if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled. 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 generated, if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled. 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. - /// - /// - /// The temperature that was used for 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. - /// - /// - /// The textual transcript of your media file - /// - /// - /// The original textual transcript of your media file before PII redaction was applied. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `text` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - /// - /// - /// True while a request is throttled and false when a request is no longer throttled - /// - /// - /// When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
- /// See [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) and [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) for more information. - /// - /// - /// The original turn-by-turn utterance objects before PII redaction was applied. Same shape as `utterances`. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `utterances` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - /// - /// - /// 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 status code we received from your server when delivering the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) request, if a webhook URL was provided - /// - /// - /// The URL to which we send [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. - /// - /// - /// An array of temporally-sequential word objects, one for each word in the transcript. - /// - /// - /// The original temporally-sequential word objects before PII redaction was applied. Same shape as `words`. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `words` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. - /// - /// - /// This parameter does not currently have any functionality attached to it. - /// - /// - /// This parameter does not currently have any functionality attached to it. - /// - /// - /// This parameter does not currently have any functionality attached to it. - /// - /// - /// Translated text keyed by language code. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Transcript( - string audioUrl, - bool autoHighlights, - global::System.Guid id, - bool redactPii, - global::AssemblyAI.TranscriptStatus status, - bool summarization, - bool webhookAuth, - string acousticModel, - string languageModel, - global::AssemblyAI.OneOf speechModel, - int? audioChannels, - int? audioDuration, - int? audioEndAt, - int? audioStartFrom, - bool? autoChapters, - global::AssemblyAI.OneOf? autoHighlightsResult, - global::System.Collections.Generic.IList? chapters, - double? confidence, - bool? contentSafety, - global::AssemblyAI.OneOf? contentSafetyLabels, - global::System.Collections.Generic.IList? customSpelling, - bool? disfluencies, - string? domain, - global::System.Collections.Generic.IList? entities, - bool? entityDetection, - string? error, - bool? filterProfanity, - bool? formatText, - bool? iabCategories, - global::AssemblyAI.OneOf? iabCategoriesResult, - global::System.Collections.Generic.IList? keytermsPrompt, - global::AssemblyAI.TranscriptLanguageCode? languageCode, - global::System.Collections.Generic.IList? languageCodes, - double? languageConfidence, - double? languageConfidenceThreshold, - bool? languageDetection, - global::AssemblyAI.TranscriptLanguageDetectionOptions? languageDetectionOptions, - global::AssemblyAI.OneOf? metadata, - bool? multichannel, - string? prompt, - bool? punctuate, - bool? redactPiiAudio, - global::AssemblyAI.TranscriptRedactPiiAudioOptions? redactPiiAudioOptions, - global::AssemblyAI.OneOf? redactPiiAudioQuality, - global::System.Collections.Generic.IList? redactPiiPolicies, - global::AssemblyAI.SubstitutionPolicy? redactPiiSub, - bool? redactPiiReturnUnredacted, - bool? sentimentAnalysis, - global::System.Collections.Generic.IList? sentimentAnalysisResults, - bool? speakerLabels, - int? speakersExpected, - string? speechModelUsed, - global::System.Collections.Generic.IList? speechModels, - double? speechThreshold, - global::AssemblyAI.TranscriptSpeechUnderstanding? speechUnderstanding, - string? summary, - string? summaryModel, - string? summaryType, - global::AssemblyAI.OneOf? removeAudioTags, - double? temperature, - string? text, - string? unredactedText, - bool? throttled, - global::System.Collections.Generic.IList? utterances, - global::System.Collections.Generic.IList? unredactedUtterances, - string? webhookAuthHeaderName, - int? webhookStatusCode, - string? webhookUrl, - global::System.Collections.Generic.IList? words, - global::System.Collections.Generic.IList? unredactedWords, - bool? customTopics, - bool? speedBoost, - global::System.Collections.Generic.IList? topics, - global::AssemblyAI.TranscriptTranslatedTexts? translatedTexts) - { - this.AudioChannels = audioChannels; - this.AudioDuration = audioDuration; - this.AudioEndAt = audioEndAt; - this.AudioStartFrom = audioStartFrom; - this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); - this.AutoChapters = autoChapters; - this.AutoHighlights = autoHighlights; - this.AutoHighlightsResult = autoHighlightsResult; - this.Chapters = chapters; - this.Confidence = confidence; - this.ContentSafety = contentSafety; - this.ContentSafetyLabels = contentSafetyLabels; - this.CustomSpelling = customSpelling; - this.Disfluencies = disfluencies; - this.Domain = domain; - this.Entities = entities; - this.EntityDetection = entityDetection; - this.Error = error; - this.FilterProfanity = filterProfanity; - this.FormatText = formatText; - this.IabCategories = iabCategories; - this.IabCategoriesResult = iabCategoriesResult; - this.Id = id; - this.KeytermsPrompt = keytermsPrompt; - this.LanguageCode = languageCode; - this.LanguageCodes = languageCodes; - this.LanguageConfidence = languageConfidence; - this.LanguageConfidenceThreshold = languageConfidenceThreshold; - this.LanguageDetection = languageDetection; - this.LanguageDetectionOptions = languageDetectionOptions; - this.Metadata = metadata; - this.Multichannel = multichannel; - this.Prompt = prompt; - this.Punctuate = punctuate; - this.RedactPii = redactPii; - this.RedactPiiAudio = redactPiiAudio; - this.RedactPiiAudioOptions = redactPiiAudioOptions; - this.RedactPiiAudioQuality = redactPiiAudioQuality; - this.RedactPiiPolicies = redactPiiPolicies; - this.RedactPiiSub = redactPiiSub; - this.RedactPiiReturnUnredacted = redactPiiReturnUnredacted; - this.SentimentAnalysis = sentimentAnalysis; - this.SentimentAnalysisResults = sentimentAnalysisResults; - this.SpeakerLabels = speakerLabels; - this.SpeakersExpected = speakersExpected; - this.SpeechModelUsed = speechModelUsed; - this.SpeechModels = speechModels; - this.SpeechThreshold = speechThreshold; - this.SpeechUnderstanding = speechUnderstanding; - this.Status = status; - this.Summarization = summarization; - this.Summary = summary; - this.SummaryModel = summaryModel; - this.SummaryType = summaryType; - this.RemoveAudioTags = removeAudioTags; - this.Temperature = temperature; - this.Text = text; - this.UnredactedText = unredactedText; - this.Throttled = throttled; - this.Utterances = utterances; - this.UnredactedUtterances = unredactedUtterances; - this.WebhookAuth = webhookAuth; - this.WebhookAuthHeaderName = webhookAuthHeaderName; - this.WebhookStatusCode = webhookStatusCode; - this.WebhookUrl = webhookUrl; - this.Words = words; - this.UnredactedWords = unredactedWords; - this.AcousticModel = acousticModel ?? throw new global::System.ArgumentNullException(nameof(acousticModel)); - this.CustomTopics = customTopics; - this.LanguageModel = languageModel ?? throw new global::System.ArgumentNullException(nameof(languageModel)); - this.SpeechModel = speechModel; - this.SpeedBoost = speedBoost; - this.Topics = topics; - this.TranslatedTexts = translatedTexts; - } - - /// - /// Initializes a new instance of the class. - /// - public Transcript() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.Json.g.cs deleted file mode 100644 index e284dc7..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptCustomSpelling - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptCustomSpelling? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptCustomSpelling), - jsonSerializerContext) as global::AssemblyAI.TranscriptCustomSpelling; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptCustomSpelling? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptCustomSpelling), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptCustomSpelling; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.g.cs deleted file mode 100644 index c12e8cf..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Object containing words or phrases to replace, and the word or phrase to replace with - /// - public sealed partial class TranscriptCustomSpelling - { - /// - /// Words or phrases to replace - /// - [global::System.Text.Json.Serialization.JsonPropertyName("from")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList From { get; set; } - - /// - /// Word to replace with - /// - [global::System.Text.Json.Serialization.JsonPropertyName("to")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string To { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Words or phrases to replace - /// - /// - /// Word to replace with - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptCustomSpelling( - global::System.Collections.Generic.IList from, - string to) - { - this.From = from ?? throw new global::System.ArgumentNullException(nameof(from)); - this.To = to ?? throw new global::System.ArgumentNullException(nameof(to)); - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptCustomSpelling() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageCode.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageCode.g.cs deleted file mode 100644 index e88aa95..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageCode.g.cs +++ /dev/null @@ -1,652 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// 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'. - ///
- public enum TranscriptLanguageCode - { - /// - /// - /// - Af, - /// - /// - /// - Am, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Ar, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - As, - /// - /// - /// - Az, - /// - /// - /// - Ba, - /// - /// - /// - Be, - /// - /// - /// - Bg, - /// - /// - /// - Bn, - /// - /// - /// - Bo, - /// - /// - /// - Br, - /// - /// - /// - Bs, - /// - /// - /// - Ca, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Cs, - /// - /// - /// - Cy, - /// - /// - /// - Da, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - De, - /// - /// - /// - El, - /// - /// - /// - En, - /// - /// - /// - EnAu, - /// - /// - /// - EnUk, - /// - /// - /// - EnUs, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Es, - /// - /// - /// - Et, - /// - /// - /// - Eu, - /// - /// - /// - Fa, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Fi, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Fo, - /// - /// - /// - Fr, - /// - /// - /// - Gl, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Gu, - /// - /// - /// - Ha, - /// - /// - /// - Haw, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - He, - /// - /// - /// - Hi, - /// - /// - /// - Hr, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Ht, - /// - /// - /// - Hu, - /// - /// - /// - Hy, - /// - /// - /// - Id, - /// - /// - /// - Is, - /// - /// - /// - It, - /// - /// - /// - Ja, - /// - /// - /// - Jw, - /// - /// - /// - Ka, - /// - /// - /// - Kk, - /// - /// - /// - Km, - /// - /// - /// - Kn, - /// - /// - /// - Ko, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - La, - /// - /// - /// - Lb, - /// - /// - /// - Ln, - /// - /// - /// - Lo, - /// - /// - /// - Lt, - /// - /// - /// - Lv, - /// - /// - /// - Mg, - /// - /// - /// - Mi, - /// - /// - /// - Mk, - /// - /// - /// - Ml, - /// - /// - /// - Mn, - /// - /// - /// - Mr, - /// - /// - /// - Ms, - /// - /// - /// - Mt, - /// - /// - /// - My, - /// - /// - /// - Ne, - /// - /// - /// - Nl, - /// - /// - /// - Nn, - /// - /// - /// - No, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Oc, - /// - /// - /// - Pa, - /// - /// - /// - Pl, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Ps, - /// - /// - /// - Pt, - /// - /// - /// - Ro, - /// - /// - /// - Ru, - /// - /// - /// - Sa, - /// - /// - /// - Sd, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Si, - /// - /// - /// - Sk, - /// - /// - /// - Sl, - /// - /// - /// - Sn, - /// - /// - /// - So, - /// - /// - /// - Sq, - /// - /// - /// - Sr, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Su, - /// - /// - /// - Sv, - /// - /// - /// - Sw, - /// - /// - /// - Ta, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Te, - /// - /// - /// - Tg, - /// - /// - /// - Th, - /// - /// - /// - Tk, - /// - /// - /// - Tl, - /// - /// - /// - Tr, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Tt, - /// - /// - /// - Uk, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Ur, - /// - /// - /// - Uz, - /// - /// - /// - Vi, - /// - /// - /// - Yi, - /// - /// //www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - /// - Yo, - /// - /// - /// - Zh, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class TranscriptLanguageCodeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this TranscriptLanguageCode value) - { - return value switch - { - TranscriptLanguageCode.Af => "af", - TranscriptLanguageCode.Am => "am", - TranscriptLanguageCode.Ar => "ar", - TranscriptLanguageCode.As => "as", - TranscriptLanguageCode.Az => "az", - TranscriptLanguageCode.Ba => "ba", - TranscriptLanguageCode.Be => "be", - TranscriptLanguageCode.Bg => "bg", - TranscriptLanguageCode.Bn => "bn", - TranscriptLanguageCode.Bo => "bo", - TranscriptLanguageCode.Br => "br", - TranscriptLanguageCode.Bs => "bs", - TranscriptLanguageCode.Ca => "ca", - TranscriptLanguageCode.Cs => "cs", - TranscriptLanguageCode.Cy => "cy", - TranscriptLanguageCode.Da => "da", - TranscriptLanguageCode.De => "de", - TranscriptLanguageCode.El => "el", - TranscriptLanguageCode.En => "en", - TranscriptLanguageCode.EnAu => "en_au", - TranscriptLanguageCode.EnUk => "en_uk", - TranscriptLanguageCode.EnUs => "en_us", - TranscriptLanguageCode.Es => "es", - TranscriptLanguageCode.Et => "et", - TranscriptLanguageCode.Eu => "eu", - TranscriptLanguageCode.Fa => "fa", - TranscriptLanguageCode.Fi => "fi", - TranscriptLanguageCode.Fo => "fo", - TranscriptLanguageCode.Fr => "fr", - TranscriptLanguageCode.Gl => "gl", - TranscriptLanguageCode.Gu => "gu", - TranscriptLanguageCode.Ha => "ha", - TranscriptLanguageCode.Haw => "haw", - TranscriptLanguageCode.He => "he", - TranscriptLanguageCode.Hi => "hi", - TranscriptLanguageCode.Hr => "hr", - TranscriptLanguageCode.Ht => "ht", - TranscriptLanguageCode.Hu => "hu", - TranscriptLanguageCode.Hy => "hy", - TranscriptLanguageCode.Id => "id", - TranscriptLanguageCode.Is => "is", - TranscriptLanguageCode.It => "it", - TranscriptLanguageCode.Ja => "ja", - TranscriptLanguageCode.Jw => "jw", - TranscriptLanguageCode.Ka => "ka", - TranscriptLanguageCode.Kk => "kk", - TranscriptLanguageCode.Km => "km", - TranscriptLanguageCode.Kn => "kn", - TranscriptLanguageCode.Ko => "ko", - TranscriptLanguageCode.La => "la", - TranscriptLanguageCode.Lb => "lb", - TranscriptLanguageCode.Ln => "ln", - TranscriptLanguageCode.Lo => "lo", - TranscriptLanguageCode.Lt => "lt", - TranscriptLanguageCode.Lv => "lv", - TranscriptLanguageCode.Mg => "mg", - TranscriptLanguageCode.Mi => "mi", - TranscriptLanguageCode.Mk => "mk", - TranscriptLanguageCode.Ml => "ml", - TranscriptLanguageCode.Mn => "mn", - TranscriptLanguageCode.Mr => "mr", - TranscriptLanguageCode.Ms => "ms", - TranscriptLanguageCode.Mt => "mt", - TranscriptLanguageCode.My => "my", - TranscriptLanguageCode.Ne => "ne", - TranscriptLanguageCode.Nl => "nl", - TranscriptLanguageCode.Nn => "nn", - TranscriptLanguageCode.No => "no", - TranscriptLanguageCode.Oc => "oc", - TranscriptLanguageCode.Pa => "pa", - TranscriptLanguageCode.Pl => "pl", - TranscriptLanguageCode.Ps => "ps", - TranscriptLanguageCode.Pt => "pt", - TranscriptLanguageCode.Ro => "ro", - TranscriptLanguageCode.Ru => "ru", - TranscriptLanguageCode.Sa => "sa", - TranscriptLanguageCode.Sd => "sd", - TranscriptLanguageCode.Si => "si", - TranscriptLanguageCode.Sk => "sk", - TranscriptLanguageCode.Sl => "sl", - TranscriptLanguageCode.Sn => "sn", - TranscriptLanguageCode.So => "so", - TranscriptLanguageCode.Sq => "sq", - TranscriptLanguageCode.Sr => "sr", - TranscriptLanguageCode.Su => "su", - TranscriptLanguageCode.Sv => "sv", - TranscriptLanguageCode.Sw => "sw", - TranscriptLanguageCode.Ta => "ta", - TranscriptLanguageCode.Te => "te", - TranscriptLanguageCode.Tg => "tg", - TranscriptLanguageCode.Th => "th", - TranscriptLanguageCode.Tk => "tk", - TranscriptLanguageCode.Tl => "tl", - TranscriptLanguageCode.Tr => "tr", - TranscriptLanguageCode.Tt => "tt", - TranscriptLanguageCode.Uk => "uk", - TranscriptLanguageCode.Ur => "ur", - TranscriptLanguageCode.Uz => "uz", - TranscriptLanguageCode.Vi => "vi", - TranscriptLanguageCode.Yi => "yi", - TranscriptLanguageCode.Yo => "yo", - TranscriptLanguageCode.Zh => "zh", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static TranscriptLanguageCode? ToEnum(string value) - { - return value switch - { - "af" => TranscriptLanguageCode.Af, - "am" => TranscriptLanguageCode.Am, - "ar" => TranscriptLanguageCode.Ar, - "as" => TranscriptLanguageCode.As, - "az" => TranscriptLanguageCode.Az, - "ba" => TranscriptLanguageCode.Ba, - "be" => TranscriptLanguageCode.Be, - "bg" => TranscriptLanguageCode.Bg, - "bn" => TranscriptLanguageCode.Bn, - "bo" => TranscriptLanguageCode.Bo, - "br" => TranscriptLanguageCode.Br, - "bs" => TranscriptLanguageCode.Bs, - "ca" => TranscriptLanguageCode.Ca, - "cs" => TranscriptLanguageCode.Cs, - "cy" => TranscriptLanguageCode.Cy, - "da" => TranscriptLanguageCode.Da, - "de" => TranscriptLanguageCode.De, - "el" => TranscriptLanguageCode.El, - "en" => TranscriptLanguageCode.En, - "en_au" => TranscriptLanguageCode.EnAu, - "en_uk" => TranscriptLanguageCode.EnUk, - "en_us" => TranscriptLanguageCode.EnUs, - "es" => TranscriptLanguageCode.Es, - "et" => TranscriptLanguageCode.Et, - "eu" => TranscriptLanguageCode.Eu, - "fa" => TranscriptLanguageCode.Fa, - "fi" => TranscriptLanguageCode.Fi, - "fo" => TranscriptLanguageCode.Fo, - "fr" => TranscriptLanguageCode.Fr, - "gl" => TranscriptLanguageCode.Gl, - "gu" => TranscriptLanguageCode.Gu, - "ha" => TranscriptLanguageCode.Ha, - "haw" => TranscriptLanguageCode.Haw, - "he" => TranscriptLanguageCode.He, - "hi" => TranscriptLanguageCode.Hi, - "hr" => TranscriptLanguageCode.Hr, - "ht" => TranscriptLanguageCode.Ht, - "hu" => TranscriptLanguageCode.Hu, - "hy" => TranscriptLanguageCode.Hy, - "id" => TranscriptLanguageCode.Id, - "is" => TranscriptLanguageCode.Is, - "it" => TranscriptLanguageCode.It, - "ja" => TranscriptLanguageCode.Ja, - "jw" => TranscriptLanguageCode.Jw, - "ka" => TranscriptLanguageCode.Ka, - "kk" => TranscriptLanguageCode.Kk, - "km" => TranscriptLanguageCode.Km, - "kn" => TranscriptLanguageCode.Kn, - "ko" => TranscriptLanguageCode.Ko, - "la" => TranscriptLanguageCode.La, - "lb" => TranscriptLanguageCode.Lb, - "ln" => TranscriptLanguageCode.Ln, - "lo" => TranscriptLanguageCode.Lo, - "lt" => TranscriptLanguageCode.Lt, - "lv" => TranscriptLanguageCode.Lv, - "mg" => TranscriptLanguageCode.Mg, - "mi" => TranscriptLanguageCode.Mi, - "mk" => TranscriptLanguageCode.Mk, - "ml" => TranscriptLanguageCode.Ml, - "mn" => TranscriptLanguageCode.Mn, - "mr" => TranscriptLanguageCode.Mr, - "ms" => TranscriptLanguageCode.Ms, - "mt" => TranscriptLanguageCode.Mt, - "my" => TranscriptLanguageCode.My, - "ne" => TranscriptLanguageCode.Ne, - "nl" => TranscriptLanguageCode.Nl, - "nn" => TranscriptLanguageCode.Nn, - "no" => TranscriptLanguageCode.No, - "oc" => TranscriptLanguageCode.Oc, - "pa" => TranscriptLanguageCode.Pa, - "pl" => TranscriptLanguageCode.Pl, - "ps" => TranscriptLanguageCode.Ps, - "pt" => TranscriptLanguageCode.Pt, - "ro" => TranscriptLanguageCode.Ro, - "ru" => TranscriptLanguageCode.Ru, - "sa" => TranscriptLanguageCode.Sa, - "sd" => TranscriptLanguageCode.Sd, - "si" => TranscriptLanguageCode.Si, - "sk" => TranscriptLanguageCode.Sk, - "sl" => TranscriptLanguageCode.Sl, - "sn" => TranscriptLanguageCode.Sn, - "so" => TranscriptLanguageCode.So, - "sq" => TranscriptLanguageCode.Sq, - "sr" => TranscriptLanguageCode.Sr, - "su" => TranscriptLanguageCode.Su, - "sv" => TranscriptLanguageCode.Sv, - "sw" => TranscriptLanguageCode.Sw, - "ta" => TranscriptLanguageCode.Ta, - "te" => TranscriptLanguageCode.Te, - "tg" => TranscriptLanguageCode.Tg, - "th" => TranscriptLanguageCode.Th, - "tk" => TranscriptLanguageCode.Tk, - "tl" => TranscriptLanguageCode.Tl, - "tr" => TranscriptLanguageCode.Tr, - "tt" => TranscriptLanguageCode.Tt, - "uk" => TranscriptLanguageCode.Uk, - "ur" => TranscriptLanguageCode.Ur, - "uz" => TranscriptLanguageCode.Uz, - "vi" => TranscriptLanguageCode.Vi, - "yi" => TranscriptLanguageCode.Yi, - "yo" => TranscriptLanguageCode.Yo, - "zh" => TranscriptLanguageCode.Zh, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.Json.g.cs deleted file mode 100644 index 00dab05..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptLanguageDetectionOptions - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptLanguageDetectionOptions? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptLanguageDetectionOptions), - jsonSerializerContext) as global::AssemblyAI.TranscriptLanguageDetectionOptions; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptLanguageDetectionOptions? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptLanguageDetectionOptions), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptLanguageDetectionOptions; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs deleted file mode 100644 index 9a1b784..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs +++ /dev/null @@ -1,85 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). - /// - public sealed partial class TranscriptLanguageDetectionOptions - { - /// - /// List of languages expected in the audio file. Defaults to `["all"]` when unspecified. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("expected_languages")] - public global::System.Collections.Generic.IList? ExpectedLanguages { get; set; } - - /// - /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
- /// Default Value: auto - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fallback_language")] - public string? FallbackLanguage { get; set; } - - /// - /// Whether [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) should be detected.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("code_switching")] - public bool? CodeSwitching { get; set; } - - /// - /// The confidence threshold for [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.
- /// Default Value: 0.3F - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("code_switching_confidence_threshold")] - public double? CodeSwitchingConfidenceThreshold { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// List of languages expected in the audio file. Defaults to `["all"]` when unspecified. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. - /// - /// - /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
- /// Default Value: auto - /// - /// - /// Whether [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) should be detected.
- /// Default Value: false - /// - /// - /// The confidence threshold for [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.
- /// Default Value: 0.3F - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptLanguageDetectionOptions( - global::System.Collections.Generic.IList? expectedLanguages, - string? fallbackLanguage, - bool? codeSwitching, - double? codeSwitchingConfidenceThreshold) - { - this.ExpectedLanguages = expectedLanguages; - this.FallbackLanguage = fallbackLanguage; - this.CodeSwitching = codeSwitching; - this.CodeSwitchingConfidenceThreshold = codeSwitchingConfidenceThreshold; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptLanguageDetectionOptions() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.Json.g.cs deleted file mode 100644 index 04c27cd..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptList - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptList? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptList), - jsonSerializerContext) as global::AssemblyAI.TranscriptList; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptList? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptList), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptList; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.g.cs deleted file mode 100644 index 68aa396..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A list of transcripts. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts. - /// - public sealed partial class TranscriptList - { - /// - /// Details of the transcript page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("page_details")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.PageDetails PageDetails { get; set; } - - /// - /// An array of transcripts - /// - [global::System.Text.Json.Serialization.JsonPropertyName("transcripts")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Transcripts { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Details of the transcript page - /// - /// - /// An array of transcripts - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptList( - global::AssemblyAI.PageDetails pageDetails, - global::System.Collections.Generic.IList transcripts) - { - this.PageDetails = pageDetails ?? throw new global::System.ArgumentNullException(nameof(pageDetails)); - this.Transcripts = transcripts ?? throw new global::System.ArgumentNullException(nameof(transcripts)); - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptList() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.Json.g.cs deleted file mode 100644 index 184acda..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptListItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptListItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptListItem), - jsonSerializerContext) as global::AssemblyAI.TranscriptListItem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptListItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptListItem), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptListItem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs deleted file mode 100644 index e695513..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs +++ /dev/null @@ -1,118 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class TranscriptListItem - { - /// - /// The unique identifier for the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } - - /// - /// The URL to retrieve the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("resource_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ResourceUrl { get; set; } - - /// - /// The status of the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.TranscriptStatus Status { get; set; } - - /// - /// The date and time the transcript was created - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTime Created { get; set; } - - /// - /// The date and time the transcript was completed - /// - [global::System.Text.Json.Serialization.JsonPropertyName("completed")] - public global::System.DateTime? Completed { get; set; } - - /// - /// The URL to the audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AudioUrl { get; set; } - - /// - /// Error message of why the transcript failed - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public string? Error { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The unique identifier for the transcript - /// - /// - /// The URL to retrieve the transcript - /// - /// - /// The status of the transcript - /// - /// - /// The date and time the transcript was created - /// - /// - /// The URL to the audio file - /// - /// - /// The date and time the transcript was completed - /// - /// - /// Error message of why the transcript failed - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptListItem( - global::System.Guid id, - string resourceUrl, - global::AssemblyAI.TranscriptStatus status, - global::System.DateTime created, - string audioUrl, - global::System.DateTime? completed, - string? error) - { - this.Id = id; - this.ResourceUrl = resourceUrl ?? throw new global::System.ArgumentNullException(nameof(resourceUrl)); - this.Status = status; - this.Created = created; - this.Completed = completed; - this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); - this.Error = error; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptListItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.Json.g.cs deleted file mode 100644 index 375be63..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptMetadata - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptMetadata? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptMetadata), - jsonSerializerContext) as global::AssemblyAI.TranscriptMetadata; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptMetadata? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptMetadata), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptMetadata; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.g.cs deleted file mode 100644 index 18eec59..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Additional metadata about the transcription returned on the `Transcript` object under `metadata`. Only present when there is information to report — when all of its fields would be empty, the `metadata` object is omitted from the response entirely. - /// - public sealed partial class TranscriptMetadata - { - /// - /// The domain-specific model that was applied to the transcription (for example, `"medical-v1"` when [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) was applied), or `null` if no domain-specific model was used. Always present when `metadata` is present. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("domain_used")] - public string? DomainUsed { get; set; } - - /// - /// Warning messages emitted while processing the request. Each warning is an object with a human-readable `message`. When there are no warnings to report, this field is omitted from the `metadata` object entirely. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("warnings")] - public global::System.Collections.Generic.IList? Warnings { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The domain-specific model that was applied to the transcription (for example, `"medical-v1"` when [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) was applied), or `null` if no domain-specific model was used. Always present when `metadata` is present. - /// - /// - /// Warning messages emitted while processing the request. Each warning is an object with a human-readable `message`. When there are no warnings to report, this field is omitted from the `metadata` object entirely. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptMetadata( - string? domainUsed, - global::System.Collections.Generic.IList? warnings) - { - this.DomainUsed = domainUsed; - this.Warnings = warnings; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptMetadata() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.Json.g.cs deleted file mode 100644 index c1302e1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions), - jsonSerializerContext) as global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs deleted file mode 100644 index 67367bd..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs +++ /dev/null @@ -1,85 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). - /// - public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions - { - /// - /// List of languages expected in the audio file. Defaults to `["all"]` when unspecified. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("expected_languages")] - public global::System.Collections.Generic.IList? ExpectedLanguages { get; set; } - - /// - /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
- /// Default Value: auto - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fallback_language")] - public string? FallbackLanguage { get; set; } - - /// - /// Whether [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) should be detected.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("code_switching")] - public bool? CodeSwitching { get; set; } - - /// - /// The confidence threshold for [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.
- /// Default Value: 0.3F - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("code_switching_confidence_threshold")] - public double? CodeSwitchingConfidenceThreshold { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// List of languages expected in the audio file. Defaults to `["all"]` when unspecified. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. - /// - /// - /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
- /// Default Value: auto - /// - /// - /// Whether [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) should be detected.
- /// Default Value: false - /// - /// - /// The confidence threshold for [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.
- /// Default Value: 0.3F - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptOptionalParamsLanguageDetectionOptions( - global::System.Collections.Generic.IList? expectedLanguages, - string? fallbackLanguage, - bool? codeSwitching, - double? codeSwitchingConfidenceThreshold) - { - this.ExpectedLanguages = expectedLanguages; - this.FallbackLanguage = fallbackLanguage; - this.CodeSwitching = codeSwitching; - this.CodeSwitchingConfidenceThreshold = codeSwitchingConfidenceThreshold; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptOptionalParamsLanguageDetectionOptions() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.Json.g.cs deleted file mode 100644 index 3ee6e6d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptOptionalParamsRedactPiiAudioOptions - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions), - jsonSerializerContext) as global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs deleted file mode 100644 index cf6c7c8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs +++ /dev/null @@ -1,60 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Specify options for [PII redacted audio](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) files. - /// - public sealed partial class TranscriptOptionalParamsRedactPiiAudioOptions - { - /// - /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("return_redacted_no_speech_audio")] - public bool? ReturnRedactedNoSpeechAudio { get; set; } - - /// - /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("override_audio_redaction_method")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter))] - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? OverrideAudioRedactionMethod { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
- /// Default Value: false - /// - /// - /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptOptionalParamsRedactPiiAudioOptions( - bool? returnRedactedNoSpeechAudio, - global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? overrideAudioRedactionMethod) - { - this.ReturnRedactedNoSpeechAudio = returnRedactedNoSpeechAudio; - this.OverrideAudioRedactionMethod = overrideAudioRedactionMethod; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptOptionalParamsRedactPiiAudioOptions() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs deleted file mode 100644 index 016aa2c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. - /// - public enum TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod - { - /// - /// - /// - Silence, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod value) - { - return value switch - { - TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.Silence => "silence", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? ToEnum(string value) - { - return value switch - { - "silence" => TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.Silence, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags.g.cs deleted file mode 100644 index 6dd5f56..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRemoveAudioTags.g.cs +++ /dev/null @@ -1,52 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// 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. - ///
- public enum TranscriptOptionalParamsRemoveAudioTags - { - /// - /// - /// - All, - /// - /// - /// - Speaker, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class TranscriptOptionalParamsRemoveAudioTagsExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this TranscriptOptionalParamsRemoveAudioTags value) - { - return value switch - { - TranscriptOptionalParamsRemoveAudioTags.All => "all", - TranscriptOptionalParamsRemoveAudioTags.Speaker => "speaker", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static TranscriptOptionalParamsRemoveAudioTags? ToEnum(string value) - { - return value switch - { - "all" => TranscriptOptionalParamsRemoveAudioTags.All, - "speaker" => TranscriptOptionalParamsRemoveAudioTags.Speaker, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.Json.g.cs deleted file mode 100644 index 6822f54..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptOptionalParamsSpeakerOptions - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions), - jsonSerializerContext) as global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs deleted file mode 100644 index 62c0dde..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs +++ /dev/null @@ -1,61 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// 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. - /// - public sealed partial class TranscriptOptionalParamsSpeakerOptions - { - /// - /// The minimum number of speakers expected in the audio file. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details.
- /// Default Value: 1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("min_speakers_expected")] - public int? MinSpeakersExpected { get; set; } - - /// - /// <Warning>Setting this parameter too high may hurt model accuracy</Warning>
- /// The maximum number of speakers expected in the audio file. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("max_speakers_expected")] - public int? MaxSpeakersExpected { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The minimum number of speakers expected in the audio file. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details.
- /// Default Value: 1 - /// - /// - /// <Warning>Setting this parameter too high may hurt model accuracy</Warning>
- /// The maximum number of speakers expected in the audio file. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptOptionalParamsSpeakerOptions( - int? minSpeakersExpected, - int? maxSpeakersExpected) - { - this.MinSpeakersExpected = minSpeakersExpected; - this.MaxSpeakersExpected = maxSpeakersExpected; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptOptionalParamsSpeakerOptions() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.Json.g.cs deleted file mode 100644 index d8cdda1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptOptionalParamsSpeechUnderstanding - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding), - jsonSerializerContext) as global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs deleted file mode 100644 index 9b78a20..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// 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. - /// - public sealed partial class TranscriptOptionalParamsSpeechUnderstanding - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsSpeechUnderstandingRequestJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest Request { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptOptionalParamsSpeechUnderstanding( - global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest request) - { - this.Request = request; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptOptionalParamsSpeechUnderstanding() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstandingRequest.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstandingRequest.Json.g.cs deleted file mode 100644 index 9624ce8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstandingRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public readonly partial struct TranscriptOptionalParamsSpeechUnderstandingRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest), - jsonSerializerContext) as global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstandingRequest?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstandingRequest.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstandingRequest.g.cs deleted file mode 100644 index 310ff16..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstandingRequest.g.cs +++ /dev/null @@ -1,378 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public readonly partial struct TranscriptOptionalParamsSpeechUnderstandingRequest : global::System.IEquatable - { - /// - /// Request body for [Translation](https://www.assemblyai.com/docs/speech-understanding/translation). - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.TranslationRequestBody? TranslationRequestBody { get; init; } -#else - public global::AssemblyAI.TranslationRequestBody? TranslationRequestBody { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TranslationRequestBody))] -#endif - public bool IsTranslationRequestBody => TranslationRequestBody != null; - - /// - /// - /// - public bool TryPickTranslationRequestBody( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.TranslationRequestBody? value) - { - value = TranslationRequestBody; - return IsTranslationRequestBody; - } - - /// - /// - /// - public global::AssemblyAI.TranslationRequestBody PickTranslationRequestBody() => IsTranslationRequestBody - ? TranslationRequestBody! - : throw new global::System.InvalidOperationException($"Expected union variant 'TranslationRequestBody' but the value was {ToString()}."); - - /// - /// Request body for [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification). - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.SpeakerIdentificationRequestBody? SpeakerIdentificationRequestBody { get; init; } -#else - public global::AssemblyAI.SpeakerIdentificationRequestBody? SpeakerIdentificationRequestBody { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SpeakerIdentificationRequestBody))] -#endif - public bool IsSpeakerIdentificationRequestBody => SpeakerIdentificationRequestBody != null; - - /// - /// - /// - public bool TryPickSpeakerIdentificationRequestBody( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.SpeakerIdentificationRequestBody? value) - { - value = SpeakerIdentificationRequestBody; - return IsSpeakerIdentificationRequestBody; - } - - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationRequestBody PickSpeakerIdentificationRequestBody() => IsSpeakerIdentificationRequestBody - ? SpeakerIdentificationRequestBody! - : throw new global::System.InvalidOperationException($"Expected union variant 'SpeakerIdentificationRequestBody' but the value was {ToString()}."); - - /// - /// Request body for [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.CustomFormattingRequestBody? CustomFormattingRequestBody { get; init; } -#else - public global::AssemblyAI.CustomFormattingRequestBody? CustomFormattingRequestBody { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomFormattingRequestBody))] -#endif - public bool IsCustomFormattingRequestBody => CustomFormattingRequestBody != null; - - /// - /// - /// - public bool TryPickCustomFormattingRequestBody( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.CustomFormattingRequestBody? value) - { - value = CustomFormattingRequestBody; - return IsCustomFormattingRequestBody; - } - - /// - /// - /// - public global::AssemblyAI.CustomFormattingRequestBody PickCustomFormattingRequestBody() => IsCustomFormattingRequestBody - ? CustomFormattingRequestBody! - : throw new global::System.InvalidOperationException($"Expected union variant 'CustomFormattingRequestBody' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator TranscriptOptionalParamsSpeechUnderstandingRequest(global::AssemblyAI.TranslationRequestBody value) => new TranscriptOptionalParamsSpeechUnderstandingRequest((global::AssemblyAI.TranslationRequestBody?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.TranslationRequestBody?(TranscriptOptionalParamsSpeechUnderstandingRequest @this) => @this.TranslationRequestBody; - - /// - /// - /// - public TranscriptOptionalParamsSpeechUnderstandingRequest(global::AssemblyAI.TranslationRequestBody? value) - { - TranslationRequestBody = value; - } - - /// - /// - /// - public static TranscriptOptionalParamsSpeechUnderstandingRequest FromTranslationRequestBody(global::AssemblyAI.TranslationRequestBody? value) => new TranscriptOptionalParamsSpeechUnderstandingRequest(value); - - /// - /// - /// - public static implicit operator TranscriptOptionalParamsSpeechUnderstandingRequest(global::AssemblyAI.SpeakerIdentificationRequestBody value) => new TranscriptOptionalParamsSpeechUnderstandingRequest((global::AssemblyAI.SpeakerIdentificationRequestBody?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.SpeakerIdentificationRequestBody?(TranscriptOptionalParamsSpeechUnderstandingRequest @this) => @this.SpeakerIdentificationRequestBody; - - /// - /// - /// - public TranscriptOptionalParamsSpeechUnderstandingRequest(global::AssemblyAI.SpeakerIdentificationRequestBody? value) - { - SpeakerIdentificationRequestBody = value; - } - - /// - /// - /// - public static TranscriptOptionalParamsSpeechUnderstandingRequest FromSpeakerIdentificationRequestBody(global::AssemblyAI.SpeakerIdentificationRequestBody? value) => new TranscriptOptionalParamsSpeechUnderstandingRequest(value); - - /// - /// - /// - public static implicit operator TranscriptOptionalParamsSpeechUnderstandingRequest(global::AssemblyAI.CustomFormattingRequestBody value) => new TranscriptOptionalParamsSpeechUnderstandingRequest((global::AssemblyAI.CustomFormattingRequestBody?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.CustomFormattingRequestBody?(TranscriptOptionalParamsSpeechUnderstandingRequest @this) => @this.CustomFormattingRequestBody; - - /// - /// - /// - public TranscriptOptionalParamsSpeechUnderstandingRequest(global::AssemblyAI.CustomFormattingRequestBody? value) - { - CustomFormattingRequestBody = value; - } - - /// - /// - /// - public static TranscriptOptionalParamsSpeechUnderstandingRequest FromCustomFormattingRequestBody(global::AssemblyAI.CustomFormattingRequestBody? value) => new TranscriptOptionalParamsSpeechUnderstandingRequest(value); - - /// - /// - /// - public TranscriptOptionalParamsSpeechUnderstandingRequest( - global::AssemblyAI.TranslationRequestBody? translationRequestBody, - global::AssemblyAI.SpeakerIdentificationRequestBody? speakerIdentificationRequestBody, - global::AssemblyAI.CustomFormattingRequestBody? customFormattingRequestBody - ) - { - TranslationRequestBody = translationRequestBody; - SpeakerIdentificationRequestBody = speakerIdentificationRequestBody; - CustomFormattingRequestBody = customFormattingRequestBody; - } - - /// - /// - /// - public object? Object => - CustomFormattingRequestBody as object ?? - SpeakerIdentificationRequestBody as object ?? - TranslationRequestBody as object - ; - - /// - /// - /// - public override string? ToString() => - TranslationRequestBody?.ToString() ?? - SpeakerIdentificationRequestBody?.ToString() ?? - CustomFormattingRequestBody?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsTranslationRequestBody && !IsSpeakerIdentificationRequestBody && !IsCustomFormattingRequestBody || !IsTranslationRequestBody && IsSpeakerIdentificationRequestBody && !IsCustomFormattingRequestBody || !IsTranslationRequestBody && !IsSpeakerIdentificationRequestBody && IsCustomFormattingRequestBody; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? translationRequestBody = null, - global::System.Func? speakerIdentificationRequestBody = null, - global::System.Func? customFormattingRequestBody = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationRequestBody && translationRequestBody != null) - { - return translationRequestBody(TranslationRequestBody!); - } - else if (IsSpeakerIdentificationRequestBody && speakerIdentificationRequestBody != null) - { - return speakerIdentificationRequestBody(SpeakerIdentificationRequestBody!); - } - else if (IsCustomFormattingRequestBody && customFormattingRequestBody != null) - { - return customFormattingRequestBody(CustomFormattingRequestBody!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? translationRequestBody = null, - - global::System.Action? speakerIdentificationRequestBody = null, - - global::System.Action? customFormattingRequestBody = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationRequestBody) - { - translationRequestBody?.Invoke(TranslationRequestBody!); - } - else if (IsSpeakerIdentificationRequestBody) - { - speakerIdentificationRequestBody?.Invoke(SpeakerIdentificationRequestBody!); - } - else if (IsCustomFormattingRequestBody) - { - customFormattingRequestBody?.Invoke(CustomFormattingRequestBody!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? translationRequestBody = null, - global::System.Action? speakerIdentificationRequestBody = null, - global::System.Action? customFormattingRequestBody = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationRequestBody) - { - translationRequestBody?.Invoke(TranslationRequestBody!); - } - else if (IsSpeakerIdentificationRequestBody) - { - speakerIdentificationRequestBody?.Invoke(SpeakerIdentificationRequestBody!); - } - else if (IsCustomFormattingRequestBody) - { - customFormattingRequestBody?.Invoke(CustomFormattingRequestBody!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - TranslationRequestBody, - typeof(global::AssemblyAI.TranslationRequestBody), - SpeakerIdentificationRequestBody, - typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), - CustomFormattingRequestBody, - typeof(global::AssemblyAI.CustomFormattingRequestBody), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(TranscriptOptionalParamsSpeechUnderstandingRequest other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(TranslationRequestBody, other.TranslationRequestBody) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(SpeakerIdentificationRequestBody, other.SpeakerIdentificationRequestBody) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomFormattingRequestBody, other.CustomFormattingRequestBody) - ; - } - - /// - /// - /// - public static bool operator ==(TranscriptOptionalParamsSpeechUnderstandingRequest obj1, TranscriptOptionalParamsSpeechUnderstandingRequest obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(TranscriptOptionalParamsSpeechUnderstandingRequest obj1, TranscriptOptionalParamsSpeechUnderstandingRequest obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is TranscriptOptionalParamsSpeechUnderstandingRequest o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.Json.g.cs deleted file mode 100644 index 3c72933..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptParagraph - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptParagraph? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptParagraph), - jsonSerializerContext) as global::AssemblyAI.TranscriptParagraph; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptParagraph? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptParagraph), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptParagraph; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.g.cs deleted file mode 100644 index 738e7b1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.g.cs +++ /dev/null @@ -1,95 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class TranscriptParagraph - { - /// - /// The transcript of the paragraph - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// The starting time, in milliseconds, of the paragraph - /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } - - /// - /// The ending time, in milliseconds, of the paragraph - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } - - /// - /// The confidence score for the transcript of this paragraph - /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } - - /// - /// An array of words in the paragraph - /// - [global::System.Text.Json.Serialization.JsonPropertyName("words")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Words { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The transcript of the paragraph - /// - /// - /// The starting time, in milliseconds, of the paragraph - /// - /// - /// The ending time, in milliseconds, of the paragraph - /// - /// - /// The confidence score for the transcript of this paragraph - /// - /// - /// An array of words in the paragraph - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptParagraph( - string text, - int start, - int end, - double confidence, - global::System.Collections.Generic.IList words) - { - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Start = start; - this.End = end; - this.Confidence = confidence; - this.Words = words ?? throw new global::System.ArgumentNullException(nameof(words)); - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptParagraph() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.Json.g.cs deleted file mode 100644 index eb8b935..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptParams - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptParams? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptParams), - jsonSerializerContext) as global::AssemblyAI.TranscriptParams; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptParams? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptParams), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptParams; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs deleted file mode 100644 index 5e1f313..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs +++ /dev/null @@ -1,636 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The parameters for creating a transcript - /// - public sealed partial class TranscriptParams - { - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_end_at")] - public int? AudioEndAt { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_start_from")] - public int? AudioStartFrom { get; set; } - - /// - /// 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 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("auto_chapters")] - public bool? AutoChapters { get; set; } - - /// - /// Enable [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights), either true or false
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("auto_highlights")] - public bool? AutoHighlights { get; set; } - - /// - /// Enable [Content Moderation](https://www.assemblyai.com/docs/content-moderation), can be true or false
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("content_safety")] - public bool? ContentSafety { get; set; } - - /// - /// 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 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("content_safety_confidence")] - public int? ContentSafetyConfidence { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_spelling")] - public global::System.Collections.Generic.IList? CustomSpelling { get; set; } - - /// - /// 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 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("disfluencies")] - public bool? Disfluencies { get; set; } - - /// - /// 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("domain")] - public string? Domain { get; set; } - - /// - /// Enable [Entity Detection](https://www.assemblyai.com/docs/speech-understanding/detect-entities-in-transcript), can be true or false
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("entity_detection")] - public bool? EntityDetection { get; set; } - - /// - /// 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 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("filter_profanity")] - public bool? FilterProfanity { get; set; } - - /// - /// Enable [Text Formatting](https://www.assemblyai.com/docs/pre-recorded-audio), can be true or false
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("format_text")] - public bool? FormatText { get; set; } - - /// - /// Enable [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics), can be true or false
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("iab_categories")] - public bool? IabCategories { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("keyterms_prompt")] - public global::System.Collections.Generic.IList? KeytermsPrompt { get; set; } - - /// - /// 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'. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? LanguageCode { get; set; } - - /// - /// 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`. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language_codes")] - public global::System.Collections.Generic.IList? LanguageCodes { get; set; } - - /// - /// 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language_confidence_threshold")] - public double? LanguageConfidenceThreshold { get; set; } - - /// - /// Enable [Automatic language detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection), either true or false.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language_detection")] - public bool? LanguageDetection { get; set; } - - /// - /// Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language_detection_options")] - public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? LanguageDetectionOptions { get; set; } - - /// - /// Enable [Multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) transcription, can be true or false.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("multichannel")] - public bool? Multichannel { get; set; } - - /// - /// 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - public string? Prompt { get; set; } - - /// - /// Enable [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio), can be true or false
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("punctuate")] - public bool? Punctuate { get; set; } - - /// - /// 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 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii")] - public bool? RedactPii { get; set; } - - /// - /// 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 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio")] - public bool? RedactPiiAudio { get; set; } - - /// - /// Specify options for [PII redacted audio](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) files. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_options")] - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? RedactPiiAudioOptions { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_quality")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.RedactPiiAudioQualityJsonConverter))] - public global::AssemblyAI.RedactPiiAudioQuality? RedactPiiAudioQuality { get; set; } - - /// - /// The list of PII Redaction policies to enable. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_policies")] - public global::System.Collections.Generic.IList? RedactPiiPolicies { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_sub")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? RedactPiiSub { get; set; } - - /// - /// 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 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_return_unredacted")] - public bool? RedactPiiReturnUnredacted { get; set; } - - /// - /// Enable [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/analyze-sentiment-of-speech), can be true or false
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sentiment_analysis")] - public bool? SentimentAnalysis { get; set; } - - /// - /// Enable [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers), can be true or false
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("speaker_labels")] - public bool? SpeakerLabels { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker_options")] - public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? SpeakerOptions { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speakers_expected")] - public int? SpeakersExpected { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_models")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList SpeechModels { get; set; } - - /// - /// 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("speech_threshold")] - public double? SpeechThreshold { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_understanding")] - public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? SpeechUnderstanding { get; set; } - - /// - /// 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 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("summarization")] - public bool? Summarization { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SummaryModelJsonConverter))] - public global::AssemblyAI.SummaryModel? SummaryModel { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SummaryTypeJsonConverter))] - public global::AssemblyAI.SummaryType? SummaryType { get; set; } - - /// - /// 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? RemoveAudioTags { get; set; } - - /// - /// 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 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - - /// - /// 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 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_auth_header_name")] - public string? WebhookAuthHeaderName { get; set; } - - /// - /// 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 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_auth_header_value")] - public string? WebhookAuthHeaderValue { get; set; } - - /// - /// The URL to which we send [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_url")] - public string? WebhookUrl { get; set; } - - /// - /// This parameter does not currently have any functionality attached to it.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("custom_topics")] - public bool? CustomTopics { get; set; } - - /// - /// 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). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? SpeechModel { get; set; } - - /// - /// This parameter does not currently have any functionality attached to it. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("topics")] - public global::System.Collections.Generic.IList? Topics { get; set; } - - /// - /// The URL of the audio or video file to transcribe. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AudioUrl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// 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. - /// - /// - /// The URL of the audio or video file to transcribe. - /// - /// - /// 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. - /// - /// - /// 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. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptParams( - global::System.Collections.Generic.IList speechModels, - string audioUrl, - int? audioEndAt, - int? audioStartFrom, - bool? autoChapters, - bool? autoHighlights, - bool? contentSafety, - int? contentSafetyConfidence, - global::System.Collections.Generic.IList? customSpelling, - bool? disfluencies, - string? domain, - bool? entityDetection, - bool? filterProfanity, - bool? formatText, - bool? iabCategories, - global::System.Collections.Generic.IList? keytermsPrompt, - global::AssemblyAI.OneOf? languageCode, - global::System.Collections.Generic.IList? languageCodes, - double? languageConfidenceThreshold, - bool? languageDetection, - global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? languageDetectionOptions, - bool? multichannel, - string? prompt, - bool? punctuate, - bool? redactPii, - bool? redactPiiAudio, - global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? redactPiiAudioOptions, - global::AssemblyAI.RedactPiiAudioQuality? redactPiiAudioQuality, - global::System.Collections.Generic.IList? redactPiiPolicies, - global::AssemblyAI.OneOf? redactPiiSub, - bool? redactPiiReturnUnredacted, - bool? sentimentAnalysis, - bool? speakerLabels, - global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? speakerOptions, - int? speakersExpected, - double? speechThreshold, - global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? speechUnderstanding, - bool? summarization, - global::AssemblyAI.SummaryModel? summaryModel, - global::AssemblyAI.SummaryType? summaryType, - global::AssemblyAI.OneOf? removeAudioTags, - double? temperature, - string? webhookAuthHeaderName, - string? webhookAuthHeaderValue, - string? webhookUrl, - bool? customTopics, - global::AssemblyAI.OneOf? speechModel, - global::System.Collections.Generic.IList? topics) - { - this.AudioEndAt = audioEndAt; - this.AudioStartFrom = audioStartFrom; - this.AutoChapters = autoChapters; - this.AutoHighlights = autoHighlights; - this.ContentSafety = contentSafety; - this.ContentSafetyConfidence = contentSafetyConfidence; - this.CustomSpelling = customSpelling; - this.Disfluencies = disfluencies; - this.Domain = domain; - this.EntityDetection = entityDetection; - this.FilterProfanity = filterProfanity; - this.FormatText = formatText; - this.IabCategories = iabCategories; - this.KeytermsPrompt = keytermsPrompt; - this.LanguageCode = languageCode; - this.LanguageCodes = languageCodes; - this.LanguageConfidenceThreshold = languageConfidenceThreshold; - this.LanguageDetection = languageDetection; - this.LanguageDetectionOptions = languageDetectionOptions; - this.Multichannel = multichannel; - this.Prompt = prompt; - this.Punctuate = punctuate; - this.RedactPii = redactPii; - this.RedactPiiAudio = redactPiiAudio; - this.RedactPiiAudioOptions = redactPiiAudioOptions; - this.RedactPiiAudioQuality = redactPiiAudioQuality; - this.RedactPiiPolicies = redactPiiPolicies; - this.RedactPiiSub = redactPiiSub; - this.RedactPiiReturnUnredacted = redactPiiReturnUnredacted; - this.SentimentAnalysis = sentimentAnalysis; - this.SpeakerLabels = speakerLabels; - this.SpeakerOptions = speakerOptions; - this.SpeakersExpected = speakersExpected; - this.SpeechModels = speechModels ?? throw new global::System.ArgumentNullException(nameof(speechModels)); - this.SpeechThreshold = speechThreshold; - this.SpeechUnderstanding = speechUnderstanding; - this.Summarization = summarization; - this.SummaryModel = summaryModel; - this.SummaryType = summaryType; - this.RemoveAudioTags = removeAudioTags; - this.Temperature = temperature; - this.WebhookAuthHeaderName = webhookAuthHeaderName; - this.WebhookAuthHeaderValue = webhookAuthHeaderValue; - this.WebhookUrl = webhookUrl; - this.CustomTopics = customTopics; - this.SpeechModel = speechModel; - this.Topics = topics; - this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptParams() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.Json.g.cs deleted file mode 100644 index f496936..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptRedactPiiAudioOptions - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptRedactPiiAudioOptions? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptions), - jsonSerializerContext) as global::AssemblyAI.TranscriptRedactPiiAudioOptions; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptRedactPiiAudioOptions? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptions), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptRedactPiiAudioOptions; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs deleted file mode 100644 index 973d92a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs +++ /dev/null @@ -1,61 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The options for PII-redacted audio, if redact_pii_audio is enabled.
- /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. - ///
- public sealed partial class TranscriptRedactPiiAudioOptions - { - /// - /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("return_redacted_no_speech_audio")] - public bool? ReturnRedactedNoSpeechAudio { get; set; } - - /// - /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("override_audio_redaction_method")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter))] - public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? OverrideAudioRedactionMethod { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
- /// Default Value: false - /// - /// - /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptRedactPiiAudioOptions( - bool? returnRedactedNoSpeechAudio, - global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? overrideAudioRedactionMethod) - { - this.ReturnRedactedNoSpeechAudio = returnRedactedNoSpeechAudio; - this.OverrideAudioRedactionMethod = overrideAudioRedactionMethod; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptRedactPiiAudioOptions() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs deleted file mode 100644 index e1f9b7c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. - /// - public enum TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod - { - /// - /// - /// - Silence, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod value) - { - return value switch - { - TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.Silence => "silence", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? ToEnum(string value) - { - return value switch - { - "silence" => TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.Silence, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags.g.cs deleted file mode 100644 index 9d51835..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRemoveAudioTags.g.cs +++ /dev/null @@ -1,52 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// 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. - ///
- public enum TranscriptRemoveAudioTags - { - /// - /// - /// - All, - /// - /// - /// - Speaker, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class TranscriptRemoveAudioTagsExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this TranscriptRemoveAudioTags value) - { - return value switch - { - TranscriptRemoveAudioTags.All => "all", - TranscriptRemoveAudioTags.Speaker => "speaker", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static TranscriptRemoveAudioTags? ToEnum(string value) - { - return value switch - { - "all" => TranscriptRemoveAudioTags.All, - "speaker" => TranscriptRemoveAudioTags.Speaker, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.Json.g.cs deleted file mode 100644 index 19d6cb1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptSentence - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptSentence? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptSentence), - jsonSerializerContext) as global::AssemblyAI.TranscriptSentence; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptSentence? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptSentence), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptSentence; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs deleted file mode 100644 index b49b634..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs +++ /dev/null @@ -1,117 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class TranscriptSentence - { - /// - /// The transcript of the sentence - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// The starting time, in milliseconds, for the sentence - /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } - - /// - /// The ending time, in milliseconds, for the sentence - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } - - /// - /// The confidence score for the transcript of this sentence - /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } - - /// - /// An array of words in the sentence - /// - [global::System.Text.Json.Serialization.JsonPropertyName("words")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Words { get; set; } - - /// - /// The channel of the sentence. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("channel")] - public string? Channel { get; set; } - - /// - /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] - public string? Speaker { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The transcript of the sentence - /// - /// - /// The starting time, in milliseconds, for the sentence - /// - /// - /// The ending time, in milliseconds, for the sentence - /// - /// - /// The confidence score for the transcript of this sentence - /// - /// - /// An array of words in the sentence - /// - /// - /// The channel of the sentence. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - /// - /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptSentence( - string text, - int start, - int end, - double confidence, - global::System.Collections.Generic.IList words, - string? channel, - string? speaker) - { - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Start = start; - this.End = end; - this.Confidence = confidence; - this.Words = words ?? throw new global::System.ArgumentNullException(nameof(words)); - this.Channel = channel; - this.Speaker = speaker; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptSentence() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.Json.g.cs deleted file mode 100644 index 808ca9b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptSpeechUnderstanding - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptSpeechUnderstanding), - jsonSerializerContext) as global::AssemblyAI.TranscriptSpeechUnderstanding; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptSpeechUnderstanding), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptSpeechUnderstanding; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs deleted file mode 100644 index 9fd208b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// 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. - /// - public sealed partial class TranscriptSpeechUnderstanding - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingRequestJsonConverter))] - public global::AssemblyAI.TranscriptSpeechUnderstandingRequest? Request { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptSpeechUnderstandingResponseJsonConverter))] - public global::AssemblyAI.TranscriptSpeechUnderstandingResponse? Response { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptSpeechUnderstanding( - global::AssemblyAI.TranscriptSpeechUnderstandingRequest? request, - global::AssemblyAI.TranscriptSpeechUnderstandingResponse? response) - { - this.Request = request; - this.Response = response; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptSpeechUnderstanding() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingRequest.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingRequest.Json.g.cs deleted file mode 100644 index 4766423..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public readonly partial struct TranscriptSpeechUnderstandingRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptSpeechUnderstandingRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptSpeechUnderstandingRequest), - jsonSerializerContext) as global::AssemblyAI.TranscriptSpeechUnderstandingRequest?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptSpeechUnderstandingRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptSpeechUnderstandingRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptSpeechUnderstandingRequest?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingRequest.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingRequest.g.cs deleted file mode 100644 index 6d4c674..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingRequest.g.cs +++ /dev/null @@ -1,378 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public readonly partial struct TranscriptSpeechUnderstandingRequest : global::System.IEquatable - { - /// - /// Request body for [Translation](https://www.assemblyai.com/docs/speech-understanding/translation). - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.TranslationRequestBody? TranslationRequestBody { get; init; } -#else - public global::AssemblyAI.TranslationRequestBody? TranslationRequestBody { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TranslationRequestBody))] -#endif - public bool IsTranslationRequestBody => TranslationRequestBody != null; - - /// - /// - /// - public bool TryPickTranslationRequestBody( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.TranslationRequestBody? value) - { - value = TranslationRequestBody; - return IsTranslationRequestBody; - } - - /// - /// - /// - public global::AssemblyAI.TranslationRequestBody PickTranslationRequestBody() => IsTranslationRequestBody - ? TranslationRequestBody! - : throw new global::System.InvalidOperationException($"Expected union variant 'TranslationRequestBody' but the value was {ToString()}."); - - /// - /// Request body for [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification). - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.SpeakerIdentificationRequestBody? SpeakerIdentificationRequestBody { get; init; } -#else - public global::AssemblyAI.SpeakerIdentificationRequestBody? SpeakerIdentificationRequestBody { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SpeakerIdentificationRequestBody))] -#endif - public bool IsSpeakerIdentificationRequestBody => SpeakerIdentificationRequestBody != null; - - /// - /// - /// - public bool TryPickSpeakerIdentificationRequestBody( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.SpeakerIdentificationRequestBody? value) - { - value = SpeakerIdentificationRequestBody; - return IsSpeakerIdentificationRequestBody; - } - - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationRequestBody PickSpeakerIdentificationRequestBody() => IsSpeakerIdentificationRequestBody - ? SpeakerIdentificationRequestBody! - : throw new global::System.InvalidOperationException($"Expected union variant 'SpeakerIdentificationRequestBody' but the value was {ToString()}."); - - /// - /// Request body for [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.CustomFormattingRequestBody? CustomFormattingRequestBody { get; init; } -#else - public global::AssemblyAI.CustomFormattingRequestBody? CustomFormattingRequestBody { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomFormattingRequestBody))] -#endif - public bool IsCustomFormattingRequestBody => CustomFormattingRequestBody != null; - - /// - /// - /// - public bool TryPickCustomFormattingRequestBody( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.CustomFormattingRequestBody? value) - { - value = CustomFormattingRequestBody; - return IsCustomFormattingRequestBody; - } - - /// - /// - /// - public global::AssemblyAI.CustomFormattingRequestBody PickCustomFormattingRequestBody() => IsCustomFormattingRequestBody - ? CustomFormattingRequestBody! - : throw new global::System.InvalidOperationException($"Expected union variant 'CustomFormattingRequestBody' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator TranscriptSpeechUnderstandingRequest(global::AssemblyAI.TranslationRequestBody value) => new TranscriptSpeechUnderstandingRequest((global::AssemblyAI.TranslationRequestBody?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.TranslationRequestBody?(TranscriptSpeechUnderstandingRequest @this) => @this.TranslationRequestBody; - - /// - /// - /// - public TranscriptSpeechUnderstandingRequest(global::AssemblyAI.TranslationRequestBody? value) - { - TranslationRequestBody = value; - } - - /// - /// - /// - public static TranscriptSpeechUnderstandingRequest FromTranslationRequestBody(global::AssemblyAI.TranslationRequestBody? value) => new TranscriptSpeechUnderstandingRequest(value); - - /// - /// - /// - public static implicit operator TranscriptSpeechUnderstandingRequest(global::AssemblyAI.SpeakerIdentificationRequestBody value) => new TranscriptSpeechUnderstandingRequest((global::AssemblyAI.SpeakerIdentificationRequestBody?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.SpeakerIdentificationRequestBody?(TranscriptSpeechUnderstandingRequest @this) => @this.SpeakerIdentificationRequestBody; - - /// - /// - /// - public TranscriptSpeechUnderstandingRequest(global::AssemblyAI.SpeakerIdentificationRequestBody? value) - { - SpeakerIdentificationRequestBody = value; - } - - /// - /// - /// - public static TranscriptSpeechUnderstandingRequest FromSpeakerIdentificationRequestBody(global::AssemblyAI.SpeakerIdentificationRequestBody? value) => new TranscriptSpeechUnderstandingRequest(value); - - /// - /// - /// - public static implicit operator TranscriptSpeechUnderstandingRequest(global::AssemblyAI.CustomFormattingRequestBody value) => new TranscriptSpeechUnderstandingRequest((global::AssemblyAI.CustomFormattingRequestBody?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.CustomFormattingRequestBody?(TranscriptSpeechUnderstandingRequest @this) => @this.CustomFormattingRequestBody; - - /// - /// - /// - public TranscriptSpeechUnderstandingRequest(global::AssemblyAI.CustomFormattingRequestBody? value) - { - CustomFormattingRequestBody = value; - } - - /// - /// - /// - public static TranscriptSpeechUnderstandingRequest FromCustomFormattingRequestBody(global::AssemblyAI.CustomFormattingRequestBody? value) => new TranscriptSpeechUnderstandingRequest(value); - - /// - /// - /// - public TranscriptSpeechUnderstandingRequest( - global::AssemblyAI.TranslationRequestBody? translationRequestBody, - global::AssemblyAI.SpeakerIdentificationRequestBody? speakerIdentificationRequestBody, - global::AssemblyAI.CustomFormattingRequestBody? customFormattingRequestBody - ) - { - TranslationRequestBody = translationRequestBody; - SpeakerIdentificationRequestBody = speakerIdentificationRequestBody; - CustomFormattingRequestBody = customFormattingRequestBody; - } - - /// - /// - /// - public object? Object => - CustomFormattingRequestBody as object ?? - SpeakerIdentificationRequestBody as object ?? - TranslationRequestBody as object - ; - - /// - /// - /// - public override string? ToString() => - TranslationRequestBody?.ToString() ?? - SpeakerIdentificationRequestBody?.ToString() ?? - CustomFormattingRequestBody?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsTranslationRequestBody && !IsSpeakerIdentificationRequestBody && !IsCustomFormattingRequestBody || !IsTranslationRequestBody && IsSpeakerIdentificationRequestBody && !IsCustomFormattingRequestBody || !IsTranslationRequestBody && !IsSpeakerIdentificationRequestBody && IsCustomFormattingRequestBody; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? translationRequestBody = null, - global::System.Func? speakerIdentificationRequestBody = null, - global::System.Func? customFormattingRequestBody = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationRequestBody && translationRequestBody != null) - { - return translationRequestBody(TranslationRequestBody!); - } - else if (IsSpeakerIdentificationRequestBody && speakerIdentificationRequestBody != null) - { - return speakerIdentificationRequestBody(SpeakerIdentificationRequestBody!); - } - else if (IsCustomFormattingRequestBody && customFormattingRequestBody != null) - { - return customFormattingRequestBody(CustomFormattingRequestBody!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? translationRequestBody = null, - - global::System.Action? speakerIdentificationRequestBody = null, - - global::System.Action? customFormattingRequestBody = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationRequestBody) - { - translationRequestBody?.Invoke(TranslationRequestBody!); - } - else if (IsSpeakerIdentificationRequestBody) - { - speakerIdentificationRequestBody?.Invoke(SpeakerIdentificationRequestBody!); - } - else if (IsCustomFormattingRequestBody) - { - customFormattingRequestBody?.Invoke(CustomFormattingRequestBody!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? translationRequestBody = null, - global::System.Action? speakerIdentificationRequestBody = null, - global::System.Action? customFormattingRequestBody = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationRequestBody) - { - translationRequestBody?.Invoke(TranslationRequestBody!); - } - else if (IsSpeakerIdentificationRequestBody) - { - speakerIdentificationRequestBody?.Invoke(SpeakerIdentificationRequestBody!); - } - else if (IsCustomFormattingRequestBody) - { - customFormattingRequestBody?.Invoke(CustomFormattingRequestBody!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - TranslationRequestBody, - typeof(global::AssemblyAI.TranslationRequestBody), - SpeakerIdentificationRequestBody, - typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), - CustomFormattingRequestBody, - typeof(global::AssemblyAI.CustomFormattingRequestBody), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(TranscriptSpeechUnderstandingRequest other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(TranslationRequestBody, other.TranslationRequestBody) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(SpeakerIdentificationRequestBody, other.SpeakerIdentificationRequestBody) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomFormattingRequestBody, other.CustomFormattingRequestBody) - ; - } - - /// - /// - /// - public static bool operator ==(TranscriptSpeechUnderstandingRequest obj1, TranscriptSpeechUnderstandingRequest obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(TranscriptSpeechUnderstandingRequest obj1, TranscriptSpeechUnderstandingRequest obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is TranscriptSpeechUnderstandingRequest o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingResponse.Json.g.cs deleted file mode 100644 index ffde404..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public readonly partial struct TranscriptSpeechUnderstandingResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptSpeechUnderstandingResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptSpeechUnderstandingResponse), - jsonSerializerContext) as global::AssemblyAI.TranscriptSpeechUnderstandingResponse?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptSpeechUnderstandingResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptSpeechUnderstandingResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptSpeechUnderstandingResponse?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingResponse.g.cs deleted file mode 100644 index 88405d9..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstandingResponse.g.cs +++ /dev/null @@ -1,378 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public readonly partial struct TranscriptSpeechUnderstandingResponse : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.TranslationResponse? TranslationResponse { get; init; } -#else - public global::AssemblyAI.TranslationResponse? TranslationResponse { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TranslationResponse))] -#endif - public bool IsTranslationResponse => TranslationResponse != null; - - /// - /// - /// - public bool TryPickTranslationResponse( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.TranslationResponse? value) - { - value = TranslationResponse; - return IsTranslationResponse; - } - - /// - /// - /// - public global::AssemblyAI.TranslationResponse PickTranslationResponse() => IsTranslationResponse - ? TranslationResponse! - : throw new global::System.InvalidOperationException($"Expected union variant 'TranslationResponse' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.SpeakerIdentificationResponse? SpeakerIdentificationResponse { get; init; } -#else - public global::AssemblyAI.SpeakerIdentificationResponse? SpeakerIdentificationResponse { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SpeakerIdentificationResponse))] -#endif - public bool IsSpeakerIdentificationResponse => SpeakerIdentificationResponse != null; - - /// - /// - /// - public bool TryPickSpeakerIdentificationResponse( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.SpeakerIdentificationResponse? value) - { - value = SpeakerIdentificationResponse; - return IsSpeakerIdentificationResponse; - } - - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationResponse PickSpeakerIdentificationResponse() => IsSpeakerIdentificationResponse - ? SpeakerIdentificationResponse! - : throw new global::System.InvalidOperationException($"Expected union variant 'SpeakerIdentificationResponse' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.CustomFormattingResponse? CustomFormattingResponse { get; init; } -#else - public global::AssemblyAI.CustomFormattingResponse? CustomFormattingResponse { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomFormattingResponse))] -#endif - public bool IsCustomFormattingResponse => CustomFormattingResponse != null; - - /// - /// - /// - public bool TryPickCustomFormattingResponse( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.CustomFormattingResponse? value) - { - value = CustomFormattingResponse; - return IsCustomFormattingResponse; - } - - /// - /// - /// - public global::AssemblyAI.CustomFormattingResponse PickCustomFormattingResponse() => IsCustomFormattingResponse - ? CustomFormattingResponse! - : throw new global::System.InvalidOperationException($"Expected union variant 'CustomFormattingResponse' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator TranscriptSpeechUnderstandingResponse(global::AssemblyAI.TranslationResponse value) => new TranscriptSpeechUnderstandingResponse((global::AssemblyAI.TranslationResponse?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.TranslationResponse?(TranscriptSpeechUnderstandingResponse @this) => @this.TranslationResponse; - - /// - /// - /// - public TranscriptSpeechUnderstandingResponse(global::AssemblyAI.TranslationResponse? value) - { - TranslationResponse = value; - } - - /// - /// - /// - public static TranscriptSpeechUnderstandingResponse FromTranslationResponse(global::AssemblyAI.TranslationResponse? value) => new TranscriptSpeechUnderstandingResponse(value); - - /// - /// - /// - public static implicit operator TranscriptSpeechUnderstandingResponse(global::AssemblyAI.SpeakerIdentificationResponse value) => new TranscriptSpeechUnderstandingResponse((global::AssemblyAI.SpeakerIdentificationResponse?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.SpeakerIdentificationResponse?(TranscriptSpeechUnderstandingResponse @this) => @this.SpeakerIdentificationResponse; - - /// - /// - /// - public TranscriptSpeechUnderstandingResponse(global::AssemblyAI.SpeakerIdentificationResponse? value) - { - SpeakerIdentificationResponse = value; - } - - /// - /// - /// - public static TranscriptSpeechUnderstandingResponse FromSpeakerIdentificationResponse(global::AssemblyAI.SpeakerIdentificationResponse? value) => new TranscriptSpeechUnderstandingResponse(value); - - /// - /// - /// - public static implicit operator TranscriptSpeechUnderstandingResponse(global::AssemblyAI.CustomFormattingResponse value) => new TranscriptSpeechUnderstandingResponse((global::AssemblyAI.CustomFormattingResponse?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.CustomFormattingResponse?(TranscriptSpeechUnderstandingResponse @this) => @this.CustomFormattingResponse; - - /// - /// - /// - public TranscriptSpeechUnderstandingResponse(global::AssemblyAI.CustomFormattingResponse? value) - { - CustomFormattingResponse = value; - } - - /// - /// - /// - public static TranscriptSpeechUnderstandingResponse FromCustomFormattingResponse(global::AssemblyAI.CustomFormattingResponse? value) => new TranscriptSpeechUnderstandingResponse(value); - - /// - /// - /// - public TranscriptSpeechUnderstandingResponse( - global::AssemblyAI.TranslationResponse? translationResponse, - global::AssemblyAI.SpeakerIdentificationResponse? speakerIdentificationResponse, - global::AssemblyAI.CustomFormattingResponse? customFormattingResponse - ) - { - TranslationResponse = translationResponse; - SpeakerIdentificationResponse = speakerIdentificationResponse; - CustomFormattingResponse = customFormattingResponse; - } - - /// - /// - /// - public object? Object => - CustomFormattingResponse as object ?? - SpeakerIdentificationResponse as object ?? - TranslationResponse as object - ; - - /// - /// - /// - public override string? ToString() => - TranslationResponse?.ToString() ?? - SpeakerIdentificationResponse?.ToString() ?? - CustomFormattingResponse?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsTranslationResponse && !IsSpeakerIdentificationResponse && !IsCustomFormattingResponse || !IsTranslationResponse && IsSpeakerIdentificationResponse && !IsCustomFormattingResponse || !IsTranslationResponse && !IsSpeakerIdentificationResponse && IsCustomFormattingResponse; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? translationResponse = null, - global::System.Func? speakerIdentificationResponse = null, - global::System.Func? customFormattingResponse = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationResponse && translationResponse != null) - { - return translationResponse(TranslationResponse!); - } - else if (IsSpeakerIdentificationResponse && speakerIdentificationResponse != null) - { - return speakerIdentificationResponse(SpeakerIdentificationResponse!); - } - else if (IsCustomFormattingResponse && customFormattingResponse != null) - { - return customFormattingResponse(CustomFormattingResponse!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? translationResponse = null, - - global::System.Action? speakerIdentificationResponse = null, - - global::System.Action? customFormattingResponse = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationResponse) - { - translationResponse?.Invoke(TranslationResponse!); - } - else if (IsSpeakerIdentificationResponse) - { - speakerIdentificationResponse?.Invoke(SpeakerIdentificationResponse!); - } - else if (IsCustomFormattingResponse) - { - customFormattingResponse?.Invoke(CustomFormattingResponse!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? translationResponse = null, - global::System.Action? speakerIdentificationResponse = null, - global::System.Action? customFormattingResponse = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationResponse) - { - translationResponse?.Invoke(TranslationResponse!); - } - else if (IsSpeakerIdentificationResponse) - { - speakerIdentificationResponse?.Invoke(SpeakerIdentificationResponse!); - } - else if (IsCustomFormattingResponse) - { - customFormattingResponse?.Invoke(CustomFormattingResponse!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - TranslationResponse, - typeof(global::AssemblyAI.TranslationResponse), - SpeakerIdentificationResponse, - typeof(global::AssemblyAI.SpeakerIdentificationResponse), - CustomFormattingResponse, - typeof(global::AssemblyAI.CustomFormattingResponse), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(TranscriptSpeechUnderstandingResponse other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(TranslationResponse, other.TranslationResponse) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(SpeakerIdentificationResponse, other.SpeakerIdentificationResponse) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomFormattingResponse, other.CustomFormattingResponse) - ; - } - - /// - /// - /// - public static bool operator ==(TranscriptSpeechUnderstandingResponse obj1, TranscriptSpeechUnderstandingResponse obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(TranscriptSpeechUnderstandingResponse obj1, TranscriptSpeechUnderstandingResponse obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is TranscriptSpeechUnderstandingResponse o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptStatus.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptStatus.g.cs deleted file mode 100644 index 06fbdcc..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The status of your transcript. Possible values are queued, processing, completed, or error. - /// - public enum TranscriptStatus - { - /// - /// - /// - Completed, - /// - /// - /// - Error, - /// - /// - /// - Processing, - /// - /// - /// - Queued, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class TranscriptStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this TranscriptStatus value) - { - return value switch - { - TranscriptStatus.Completed => "completed", - TranscriptStatus.Error => "error", - TranscriptStatus.Processing => "processing", - TranscriptStatus.Queued => "queued", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static TranscriptStatus? ToEnum(string value) - { - return value switch - { - "completed" => TranscriptStatus.Completed, - "error" => TranscriptStatus.Error, - "processing" => TranscriptStatus.Processing, - "queued" => TranscriptStatus.Queued, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.Json.g.cs deleted file mode 100644 index 12c7e5a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptTranslatedTexts - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptTranslatedTexts? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptTranslatedTexts), - jsonSerializerContext) as global::AssemblyAI.TranscriptTranslatedTexts; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptTranslatedTexts? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptTranslatedTexts), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptTranslatedTexts; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.g.cs deleted file mode 100644 index 814f1cc..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Translated text keyed by language code. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details. - /// - public sealed partial class TranscriptTranslatedTexts - { - /// - /// Translated text for this language code - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - public string? LanguageCode { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Translated text for this language code - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptTranslatedTexts( - string? languageCode) - { - this.LanguageCode = languageCode; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptTranslatedTexts() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.Json.g.cs deleted file mode 100644 index 18d892d..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptUtterance - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptUtterance? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptUtterance), - jsonSerializerContext) as global::AssemblyAI.TranscriptUtterance; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptUtterance? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptUtterance), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptUtterance; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs deleted file mode 100644 index 1016884..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs +++ /dev/null @@ -1,129 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class TranscriptUtterance - { - /// - /// The confidence score for the transcript of this utterance - /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } - - /// - /// The starting time, in milliseconds, of the utterance in the audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } - - /// - /// The ending time, in milliseconds, of the utterance in the audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } - - /// - /// The text for this utterance - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// The words in the utterance. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("words")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Words { get; set; } - - /// - /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("channel")] - public string? Channel { get; set; } - - /// - /// The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker B, etc. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Speaker { get; set; } - - /// - /// Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled with translation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("translated_texts")] - public global::System.Collections.Generic.Dictionary? TranslatedTexts { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The confidence score for the transcript of this utterance - /// - /// - /// The starting time, in milliseconds, of the utterance in the audio file - /// - /// - /// The ending time, in milliseconds, of the utterance in the audio file - /// - /// - /// The text for this utterance - /// - /// - /// The words in the utterance. - /// - /// - /// The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker B, etc. - /// - /// - /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - /// - /// Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled with translation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptUtterance( - double confidence, - int start, - int end, - string text, - global::System.Collections.Generic.IList words, - string speaker, - string? channel, - global::System.Collections.Generic.Dictionary? translatedTexts) - { - this.Confidence = confidence; - this.Start = start; - this.End = end; - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Words = words ?? throw new global::System.ArgumentNullException(nameof(words)); - this.Channel = channel; - this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); - this.TranslatedTexts = translatedTexts; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptUtterance() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.Json.g.cs deleted file mode 100644 index 9814c82..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptUtteranceTranslatedTexts - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptUtteranceTranslatedTexts? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptUtteranceTranslatedTexts), - jsonSerializerContext) as global::AssemblyAI.TranscriptUtteranceTranslatedTexts; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptUtteranceTranslatedTexts? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptUtteranceTranslatedTexts), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptUtteranceTranslatedTexts; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.g.cs deleted file mode 100644 index 5929d73..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled with translation. - /// - public sealed partial class TranscriptUtteranceTranslatedTexts - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWarning.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWarning.Json.g.cs deleted file mode 100644 index 2d13ae0..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWarning.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptWarning - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptWarning? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptWarning), - jsonSerializerContext) as global::AssemblyAI.TranscriptWarning; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptWarning? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptWarning), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptWarning; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWarning.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWarning.g.cs deleted file mode 100644 index 69985c0..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWarning.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// A warning message emitted while processing a transcription request. Warnings are surfaced on the transcript response under `metadata.warnings`. - /// - public sealed partial class TranscriptWarning - { - /// - /// A human-readable description of the warning. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A human-readable description of the warning. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptWarning( - string message) - { - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptWarning() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.Json.g.cs deleted file mode 100644 index ebe1285..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranscriptWord - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranscriptWord? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranscriptWord), - jsonSerializerContext) as global::AssemblyAI.TranscriptWord; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranscriptWord? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranscriptWord), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptWord; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs deleted file mode 100644 index 90acce4..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs +++ /dev/null @@ -1,105 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class TranscriptWord - { - /// - /// The confidence score for the transcript of this word - /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } - - /// - /// The starting time, in milliseconds, for the word - /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } - - /// - /// The ending time, in milliseconds, for the word - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } - - /// - /// The text of the word - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// The channel of the word. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("channel")] - public string? Channel { get; set; } - - /// - /// The speaker of the word if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] - public string? Speaker { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The confidence score for the transcript of this word - /// - /// - /// The starting time, in milliseconds, for the word - /// - /// - /// The ending time, in milliseconds, for the word - /// - /// - /// The text of the word - /// - /// - /// The channel of the word. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - /// - /// The speaker of the word if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranscriptWord( - double confidence, - int start, - int end, - string text, - string? channel, - string? speaker) - { - this.Confidence = confidence; - this.Start = start; - this.End = end; - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Channel = channel; - this.Speaker = speaker; - } - - /// - /// Initializes a new instance of the class. - /// - public TranscriptWord() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.Json.g.cs deleted file mode 100644 index 9271256..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranslationRequestBody - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranslationRequestBody? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranslationRequestBody), - jsonSerializerContext) as global::AssemblyAI.TranslationRequestBody; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranslationRequestBody? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranslationRequestBody), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranslationRequestBody; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.g.cs deleted file mode 100644 index b435222..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Request body for [Translation](https://www.assemblyai.com/docs/speech-understanding/translation). - /// - public sealed partial class TranslationRequestBody - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("translation")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.TranslationRequestBodyTranslation Translation { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranslationRequestBody( - global::AssemblyAI.TranslationRequestBodyTranslation translation) - { - this.Translation = translation ?? throw new global::System.ArgumentNullException(nameof(translation)); - } - - /// - /// Initializes a new instance of the class. - /// - public TranslationRequestBody() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.Json.g.cs deleted file mode 100644 index db9eab6..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranslationRequestBodyTranslation - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranslationRequestBodyTranslation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranslationRequestBodyTranslation), - jsonSerializerContext) as global::AssemblyAI.TranslationRequestBodyTranslation; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranslationRequestBodyTranslation? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranslationRequestBodyTranslation), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranslationRequestBodyTranslation; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.g.cs deleted file mode 100644 index c2b5378..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.g.cs +++ /dev/null @@ -1,73 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class TranslationRequestBodyTranslation - { - /// - /// List of target language codes (e.g., `["es", "de"]`). See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for supported languages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("target_languages")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList TargetLanguages { get; set; } - - /// - /// Use formal language style. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("formal")] - public bool? Formal { get; set; } - - /// - /// When enabled with Speaker Labels, returns translated text in the utterances array. Each utterance will include a `translated_texts` key containing translations for each target language.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("match_original_utterance")] - public bool? MatchOriginalUtterance { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// List of target language codes (e.g., `["es", "de"]`). See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for supported languages. - /// - /// - /// Use formal language style. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details.
- /// Default Value: true - /// - /// - /// When enabled with Speaker Labels, returns translated text in the utterances array. Each utterance will include a `translated_texts` key containing translations for each target language.
- /// Default Value: false - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranslationRequestBodyTranslation( - global::System.Collections.Generic.IList targetLanguages, - bool? formal, - bool? matchOriginalUtterance) - { - this.TargetLanguages = targetLanguages ?? throw new global::System.ArgumentNullException(nameof(targetLanguages)); - this.Formal = formal; - this.MatchOriginalUtterance = matchOriginalUtterance; - } - - /// - /// Initializes a new instance of the class. - /// - public TranslationRequestBodyTranslation() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.Json.g.cs deleted file mode 100644 index b47d2bb..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranslationResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranslationResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranslationResponse), - jsonSerializerContext) as global::AssemblyAI.TranslationResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranslationResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranslationResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranslationResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.g.cs deleted file mode 100644 index a8f9b4c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class TranslationResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("translation")] - public global::AssemblyAI.TranslationResponseTranslation? Translation { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranslationResponse( - global::AssemblyAI.TranslationResponseTranslation? translation) - { - this.Translation = translation; - } - - /// - /// Initializes a new instance of the class. - /// - public TranslationResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.Json.g.cs deleted file mode 100644 index c8f2700..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class TranslationResponseTranslation - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.TranslationResponseTranslation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.TranslationResponseTranslation), - jsonSerializerContext) as global::AssemblyAI.TranslationResponseTranslation; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.TranslationResponseTranslation? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.TranslationResponseTranslation), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranslationResponseTranslation; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.g.cs deleted file mode 100644 index 017a766..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class TranslationResponseTranslation - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public string? Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TranslationResponseTranslation( - string? status) - { - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public TranslationResponseTranslation() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequest.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequest.Json.g.cs deleted file mode 100644 index 436da82..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class UnderstandingRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.UnderstandingRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.UnderstandingRequest), - jsonSerializerContext) as global::AssemblyAI.UnderstandingRequest; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.UnderstandingRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.UnderstandingRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.UnderstandingRequest; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequest.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequest.g.cs deleted file mode 100644 index c8dd933..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequest.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class UnderstandingRequest - { - /// - /// The ID of the transcript to process. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("transcript_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string TranscriptId { get; set; } - - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_understanding")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.UnderstandingRequestSpeechUnderstanding SpeechUnderstanding { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// 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. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UnderstandingRequest( - string transcriptId, - global::AssemblyAI.UnderstandingRequestSpeechUnderstanding speechUnderstanding) - { - this.TranscriptId = transcriptId ?? throw new global::System.ArgumentNullException(nameof(transcriptId)); - this.SpeechUnderstanding = speechUnderstanding ?? throw new global::System.ArgumentNullException(nameof(speechUnderstanding)); - } - - /// - /// Initializes a new instance of the class. - /// - public UnderstandingRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstanding.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstanding.Json.g.cs deleted file mode 100644 index fba9bba..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstanding.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class UnderstandingRequestSpeechUnderstanding - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.UnderstandingRequestSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.UnderstandingRequestSpeechUnderstanding), - jsonSerializerContext) as global::AssemblyAI.UnderstandingRequestSpeechUnderstanding; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.UnderstandingRequestSpeechUnderstanding? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.UnderstandingRequestSpeechUnderstanding), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.UnderstandingRequestSpeechUnderstanding; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstanding.g.cs deleted file mode 100644 index cbecdf2..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstanding.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// 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. - /// - public sealed partial class UnderstandingRequestSpeechUnderstanding - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.UnderstandingRequestSpeechUnderstandingRequestJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest Request { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UnderstandingRequestSpeechUnderstanding( - global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest request) - { - this.Request = request; - } - - /// - /// Initializes a new instance of the class. - /// - public UnderstandingRequestSpeechUnderstanding() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstandingRequest.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstandingRequest.Json.g.cs deleted file mode 100644 index ee51e5e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstandingRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public readonly partial struct UnderstandingRequestSpeechUnderstandingRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest), - jsonSerializerContext) as global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.UnderstandingRequestSpeechUnderstandingRequest?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstandingRequest.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstandingRequest.g.cs deleted file mode 100644 index cbffd7f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UnderstandingRequestSpeechUnderstandingRequest.g.cs +++ /dev/null @@ -1,378 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public readonly partial struct UnderstandingRequestSpeechUnderstandingRequest : global::System.IEquatable - { - /// - /// Request body for [Translation](https://www.assemblyai.com/docs/speech-understanding/translation). - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.TranslationRequestBody? TranslationRequestBody { get; init; } -#else - public global::AssemblyAI.TranslationRequestBody? TranslationRequestBody { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TranslationRequestBody))] -#endif - public bool IsTranslationRequestBody => TranslationRequestBody != null; - - /// - /// - /// - public bool TryPickTranslationRequestBody( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.TranslationRequestBody? value) - { - value = TranslationRequestBody; - return IsTranslationRequestBody; - } - - /// - /// - /// - public global::AssemblyAI.TranslationRequestBody PickTranslationRequestBody() => IsTranslationRequestBody - ? TranslationRequestBody! - : throw new global::System.InvalidOperationException($"Expected union variant 'TranslationRequestBody' but the value was {ToString()}."); - - /// - /// Request body for [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification). - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.SpeakerIdentificationRequestBody? SpeakerIdentificationRequestBody { get; init; } -#else - public global::AssemblyAI.SpeakerIdentificationRequestBody? SpeakerIdentificationRequestBody { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SpeakerIdentificationRequestBody))] -#endif - public bool IsSpeakerIdentificationRequestBody => SpeakerIdentificationRequestBody != null; - - /// - /// - /// - public bool TryPickSpeakerIdentificationRequestBody( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.SpeakerIdentificationRequestBody? value) - { - value = SpeakerIdentificationRequestBody; - return IsSpeakerIdentificationRequestBody; - } - - /// - /// - /// - public global::AssemblyAI.SpeakerIdentificationRequestBody PickSpeakerIdentificationRequestBody() => IsSpeakerIdentificationRequestBody - ? SpeakerIdentificationRequestBody! - : throw new global::System.InvalidOperationException($"Expected union variant 'SpeakerIdentificationRequestBody' but the value was {ToString()}."); - - /// - /// Request body for [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.CustomFormattingRequestBody? CustomFormattingRequestBody { get; init; } -#else - public global::AssemblyAI.CustomFormattingRequestBody? CustomFormattingRequestBody { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomFormattingRequestBody))] -#endif - public bool IsCustomFormattingRequestBody => CustomFormattingRequestBody != null; - - /// - /// - /// - public bool TryPickCustomFormattingRequestBody( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::AssemblyAI.CustomFormattingRequestBody? value) - { - value = CustomFormattingRequestBody; - return IsCustomFormattingRequestBody; - } - - /// - /// - /// - public global::AssemblyAI.CustomFormattingRequestBody PickCustomFormattingRequestBody() => IsCustomFormattingRequestBody - ? CustomFormattingRequestBody! - : throw new global::System.InvalidOperationException($"Expected union variant 'CustomFormattingRequestBody' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator UnderstandingRequestSpeechUnderstandingRequest(global::AssemblyAI.TranslationRequestBody value) => new UnderstandingRequestSpeechUnderstandingRequest((global::AssemblyAI.TranslationRequestBody?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.TranslationRequestBody?(UnderstandingRequestSpeechUnderstandingRequest @this) => @this.TranslationRequestBody; - - /// - /// - /// - public UnderstandingRequestSpeechUnderstandingRequest(global::AssemblyAI.TranslationRequestBody? value) - { - TranslationRequestBody = value; - } - - /// - /// - /// - public static UnderstandingRequestSpeechUnderstandingRequest FromTranslationRequestBody(global::AssemblyAI.TranslationRequestBody? value) => new UnderstandingRequestSpeechUnderstandingRequest(value); - - /// - /// - /// - public static implicit operator UnderstandingRequestSpeechUnderstandingRequest(global::AssemblyAI.SpeakerIdentificationRequestBody value) => new UnderstandingRequestSpeechUnderstandingRequest((global::AssemblyAI.SpeakerIdentificationRequestBody?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.SpeakerIdentificationRequestBody?(UnderstandingRequestSpeechUnderstandingRequest @this) => @this.SpeakerIdentificationRequestBody; - - /// - /// - /// - public UnderstandingRequestSpeechUnderstandingRequest(global::AssemblyAI.SpeakerIdentificationRequestBody? value) - { - SpeakerIdentificationRequestBody = value; - } - - /// - /// - /// - public static UnderstandingRequestSpeechUnderstandingRequest FromSpeakerIdentificationRequestBody(global::AssemblyAI.SpeakerIdentificationRequestBody? value) => new UnderstandingRequestSpeechUnderstandingRequest(value); - - /// - /// - /// - public static implicit operator UnderstandingRequestSpeechUnderstandingRequest(global::AssemblyAI.CustomFormattingRequestBody value) => new UnderstandingRequestSpeechUnderstandingRequest((global::AssemblyAI.CustomFormattingRequestBody?)value); - - /// - /// - /// - public static implicit operator global::AssemblyAI.CustomFormattingRequestBody?(UnderstandingRequestSpeechUnderstandingRequest @this) => @this.CustomFormattingRequestBody; - - /// - /// - /// - public UnderstandingRequestSpeechUnderstandingRequest(global::AssemblyAI.CustomFormattingRequestBody? value) - { - CustomFormattingRequestBody = value; - } - - /// - /// - /// - public static UnderstandingRequestSpeechUnderstandingRequest FromCustomFormattingRequestBody(global::AssemblyAI.CustomFormattingRequestBody? value) => new UnderstandingRequestSpeechUnderstandingRequest(value); - - /// - /// - /// - public UnderstandingRequestSpeechUnderstandingRequest( - global::AssemblyAI.TranslationRequestBody? translationRequestBody, - global::AssemblyAI.SpeakerIdentificationRequestBody? speakerIdentificationRequestBody, - global::AssemblyAI.CustomFormattingRequestBody? customFormattingRequestBody - ) - { - TranslationRequestBody = translationRequestBody; - SpeakerIdentificationRequestBody = speakerIdentificationRequestBody; - CustomFormattingRequestBody = customFormattingRequestBody; - } - - /// - /// - /// - public object? Object => - CustomFormattingRequestBody as object ?? - SpeakerIdentificationRequestBody as object ?? - TranslationRequestBody as object - ; - - /// - /// - /// - public override string? ToString() => - TranslationRequestBody?.ToString() ?? - SpeakerIdentificationRequestBody?.ToString() ?? - CustomFormattingRequestBody?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsTranslationRequestBody && !IsSpeakerIdentificationRequestBody && !IsCustomFormattingRequestBody || !IsTranslationRequestBody && IsSpeakerIdentificationRequestBody && !IsCustomFormattingRequestBody || !IsTranslationRequestBody && !IsSpeakerIdentificationRequestBody && IsCustomFormattingRequestBody; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? translationRequestBody = null, - global::System.Func? speakerIdentificationRequestBody = null, - global::System.Func? customFormattingRequestBody = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationRequestBody && translationRequestBody != null) - { - return translationRequestBody(TranslationRequestBody!); - } - else if (IsSpeakerIdentificationRequestBody && speakerIdentificationRequestBody != null) - { - return speakerIdentificationRequestBody(SpeakerIdentificationRequestBody!); - } - else if (IsCustomFormattingRequestBody && customFormattingRequestBody != null) - { - return customFormattingRequestBody(CustomFormattingRequestBody!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? translationRequestBody = null, - - global::System.Action? speakerIdentificationRequestBody = null, - - global::System.Action? customFormattingRequestBody = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationRequestBody) - { - translationRequestBody?.Invoke(TranslationRequestBody!); - } - else if (IsSpeakerIdentificationRequestBody) - { - speakerIdentificationRequestBody?.Invoke(SpeakerIdentificationRequestBody!); - } - else if (IsCustomFormattingRequestBody) - { - customFormattingRequestBody?.Invoke(CustomFormattingRequestBody!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? translationRequestBody = null, - global::System.Action? speakerIdentificationRequestBody = null, - global::System.Action? customFormattingRequestBody = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsTranslationRequestBody) - { - translationRequestBody?.Invoke(TranslationRequestBody!); - } - else if (IsSpeakerIdentificationRequestBody) - { - speakerIdentificationRequestBody?.Invoke(SpeakerIdentificationRequestBody!); - } - else if (IsCustomFormattingRequestBody) - { - customFormattingRequestBody?.Invoke(CustomFormattingRequestBody!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - TranslationRequestBody, - typeof(global::AssemblyAI.TranslationRequestBody), - SpeakerIdentificationRequestBody, - typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), - CustomFormattingRequestBody, - typeof(global::AssemblyAI.CustomFormattingRequestBody), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(UnderstandingRequestSpeechUnderstandingRequest other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(TranslationRequestBody, other.TranslationRequestBody) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(SpeakerIdentificationRequestBody, other.SpeakerIdentificationRequestBody) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomFormattingRequestBody, other.CustomFormattingRequestBody) - ; - } - - /// - /// - /// - public static bool operator ==(UnderstandingRequestSpeechUnderstandingRequest obj1, UnderstandingRequestSpeechUnderstandingRequest obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(UnderstandingRequestSpeechUnderstandingRequest obj1, UnderstandingRequestSpeechUnderstandingRequest obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is UnderstandingRequestSpeechUnderstandingRequest o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse.Json.g.cs deleted file mode 100644 index 38142d9..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class UploadResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.UploadResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.UploadResponse), - jsonSerializerContext) as global::AssemblyAI.UploadResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.UploadResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.UploadResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.UploadResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse.g.cs deleted file mode 100644 index d568255..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class UploadResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse2.Json.g.cs deleted file mode 100644 index be1f51c..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class UploadResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.UploadResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.UploadResponse2), - jsonSerializerContext) as global::AssemblyAI.UploadResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.UploadResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.UploadResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.UploadResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse2.g.cs deleted file mode 100644 index 8d39231..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class UploadResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.Json.g.cs deleted file mode 100644 index 09f6253..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class UploadedFile - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.UploadedFile? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.UploadedFile), - jsonSerializerContext) as global::AssemblyAI.UploadedFile; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.UploadedFile? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.UploadedFile), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.UploadedFile; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.g.cs deleted file mode 100644 index 17c3d1f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class UploadedFile - { - /// - /// A URL that points to your audio file, accessible only by AssemblyAI's servers - /// - [global::System.Text.Json.Serialization.JsonPropertyName("upload_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string UploadUrl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A URL that points to your audio file, accessible only by AssemblyAI's servers - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UploadedFile( - string uploadUrl) - { - this.UploadUrl = uploadUrl ?? throw new global::System.ArgumentNullException(nameof(uploadUrl)); - } - - /// - /// Initializes a new instance of the class. - /// - public UploadedFile() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Usage.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Usage.Json.g.cs deleted file mode 100644 index bd337d2..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Usage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class Usage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.Usage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.Usage), - jsonSerializerContext) as global::AssemblyAI.Usage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.Usage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.Usage), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.Usage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Usage.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Usage.g.cs deleted file mode 100644 index d169618..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Usage.g.cs +++ /dev/null @@ -1,65 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class Usage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("input_tokens")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int InputTokens { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int OutputTokens { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int TotalTokens { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Usage( - int inputTokens, - int outputTokens, - int totalTokens) - { - this.InputTokens = inputTokens; - this.OutputTokens = outputTokens; - this.TotalTokens = totalTokens; - } - - /// - /// Initializes a new instance of the class. - /// - public Usage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UserAssistantSystemMessageContent.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UserAssistantSystemMessageContent.Json.g.cs deleted file mode 100644 index 01f6fd4..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UserAssistantSystemMessageContent.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public readonly partial struct UserAssistantSystemMessageContent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.UserAssistantSystemMessageContent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.UserAssistantSystemMessageContent), - jsonSerializerContext) as global::AssemblyAI.UserAssistantSystemMessageContent?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.UserAssistantSystemMessageContent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.UserAssistantSystemMessageContent), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.UserAssistantSystemMessageContent?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UserAssistantSystemMessageContent.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UserAssistantSystemMessageContent.g.cs deleted file mode 100644 index 812ff3a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UserAssistantSystemMessageContent.g.cs +++ /dev/null @@ -1,272 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The content of the message. Can be a string or an array of content parts (for user messages). - /// - public readonly partial struct UserAssistantSystemMessageContent : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public string? UserAssistantSystemMessageContentVariant1 { get; init; } -#else - public string? UserAssistantSystemMessageContentVariant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UserAssistantSystemMessageContentVariant1))] -#endif - public bool IsUserAssistantSystemMessageContentVariant1 => UserAssistantSystemMessageContentVariant1 != null; - - /// - /// - /// - public bool TryPickUserAssistantSystemMessageContentVariant1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out string? value) - { - value = UserAssistantSystemMessageContentVariant1; - return IsUserAssistantSystemMessageContentVariant1; - } - - /// - /// - /// - public string PickUserAssistantSystemMessageContentVariant1() => IsUserAssistantSystemMessageContentVariant1 - ? UserAssistantSystemMessageContentVariant1! - : throw new global::System.InvalidOperationException($"Expected union variant 'UserAssistantSystemMessageContentVariant1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::System.Collections.Generic.IList? UserAssistantSystemMessageContent1 { get; init; } -#else - public global::System.Collections.Generic.IList? UserAssistantSystemMessageContent1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UserAssistantSystemMessageContent1))] -#endif - public bool IsUserAssistantSystemMessageContent1 => UserAssistantSystemMessageContent1 != null; - - /// - /// - /// - public bool TryPickUserAssistantSystemMessageContent1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::System.Collections.Generic.IList? value) - { - value = UserAssistantSystemMessageContent1; - return IsUserAssistantSystemMessageContent1; - } - - /// - /// - /// - public global::System.Collections.Generic.IList PickUserAssistantSystemMessageContent1() => IsUserAssistantSystemMessageContent1 - ? UserAssistantSystemMessageContent1! - : throw new global::System.InvalidOperationException($"Expected union variant 'UserAssistantSystemMessageContent1' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator UserAssistantSystemMessageContent(string value) => new UserAssistantSystemMessageContent((string?)value); - - /// - /// - /// - public static implicit operator string?(UserAssistantSystemMessageContent @this) => @this.UserAssistantSystemMessageContentVariant1; - - /// - /// - /// - public UserAssistantSystemMessageContent(string? value) - { - UserAssistantSystemMessageContentVariant1 = value; - } - - /// - /// - /// - public static UserAssistantSystemMessageContent FromUserAssistantSystemMessageContentVariant1(string? value) => new UserAssistantSystemMessageContent(value); - - /// - /// - /// - public UserAssistantSystemMessageContent( - string? userAssistantSystemMessageContentVariant1, - global::System.Collections.Generic.IList? userAssistantSystemMessageContent1 - ) - { - UserAssistantSystemMessageContentVariant1 = userAssistantSystemMessageContentVariant1; - UserAssistantSystemMessageContent1 = userAssistantSystemMessageContent1; - } - - /// - /// - /// - public object? Object => - UserAssistantSystemMessageContent1 as object ?? - UserAssistantSystemMessageContentVariant1 as object - ; - - /// - /// - /// - public override string? ToString() => - UserAssistantSystemMessageContentVariant1?.ToString() ?? - UserAssistantSystemMessageContent1?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsUserAssistantSystemMessageContentVariant1 && !IsUserAssistantSystemMessageContent1 || !IsUserAssistantSystemMessageContentVariant1 && IsUserAssistantSystemMessageContent1; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? userAssistantSystemMessageContentVariant1 = null, - global::System.Func, TResult>? userAssistantSystemMessageContent1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsUserAssistantSystemMessageContentVariant1 && userAssistantSystemMessageContentVariant1 != null) - { - return userAssistantSystemMessageContentVariant1(UserAssistantSystemMessageContentVariant1!); - } - else if (IsUserAssistantSystemMessageContent1 && userAssistantSystemMessageContent1 != null) - { - return userAssistantSystemMessageContent1(UserAssistantSystemMessageContent1!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? userAssistantSystemMessageContentVariant1 = null, - - global::System.Action>? userAssistantSystemMessageContent1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsUserAssistantSystemMessageContentVariant1) - { - userAssistantSystemMessageContentVariant1?.Invoke(UserAssistantSystemMessageContentVariant1!); - } - else if (IsUserAssistantSystemMessageContent1) - { - userAssistantSystemMessageContent1?.Invoke(UserAssistantSystemMessageContent1!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? userAssistantSystemMessageContentVariant1 = null, - global::System.Action>? userAssistantSystemMessageContent1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsUserAssistantSystemMessageContentVariant1) - { - userAssistantSystemMessageContentVariant1?.Invoke(UserAssistantSystemMessageContentVariant1!); - } - else if (IsUserAssistantSystemMessageContent1) - { - userAssistantSystemMessageContent1?.Invoke(UserAssistantSystemMessageContent1!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - UserAssistantSystemMessageContentVariant1, - typeof(string), - UserAssistantSystemMessageContent1, - typeof(global::System.Collections.Generic.IList), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(UserAssistantSystemMessageContent other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(UserAssistantSystemMessageContentVariant1, other.UserAssistantSystemMessageContentVariant1) && - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(UserAssistantSystemMessageContent1, other.UserAssistantSystemMessageContent1) - ; - } - - /// - /// - /// - public static bool operator ==(UserAssistantSystemMessageContent obj1, UserAssistantSystemMessageContent obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(UserAssistantSystemMessageContent obj1, UserAssistantSystemMessageContent obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is UserAssistantSystemMessageContent o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UserAssistantSystemMessageRole.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UserAssistantSystemMessageRole.g.cs deleted file mode 100644 index d840263..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UserAssistantSystemMessageRole.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public enum UserAssistantSystemMessageRole - { - /// - /// - /// - Assistant, - /// - /// - /// - System, - /// - /// - /// - User, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class UserAssistantSystemMessageRoleExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this UserAssistantSystemMessageRole value) - { - return value switch - { - UserAssistantSystemMessageRole.Assistant => "assistant", - UserAssistantSystemMessageRole.System => "system", - UserAssistantSystemMessageRole.User => "user", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static UserAssistantSystemMessageRole? ToEnum(string value) - { - return value switch - { - "assistant" => UserAssistantSystemMessageRole.Assistant, - "system" => UserAssistantSystemMessageRole.System, - "user" => UserAssistantSystemMessageRole.User, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.VoiceAgentAPIGenerateVoiceAgentTokenResponse200.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.VoiceAgentAPIGenerateVoiceAgentTokenResponse200.Json.g.cs deleted file mode 100644 index 731214a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.VoiceAgentAPIGenerateVoiceAgentTokenResponse200.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class VoiceAgentAPIGenerateVoiceAgentTokenResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200), - jsonSerializerContext) as global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.VoiceAgentAPIGenerateVoiceAgentTokenResponse200; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.VoiceAgentAPIGenerateVoiceAgentTokenResponse200.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.VoiceAgentAPIGenerateVoiceAgentTokenResponse200.g.cs deleted file mode 100644 index 1f8097a..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.VoiceAgentAPIGenerateVoiceAgentTokenResponse200.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class VoiceAgentAPIGenerateVoiceAgentTokenResponse200 - { - /// - /// The temporary authentication token. Pass as the `token` query parameter when opening the WebSocket. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("token")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Token { get; set; } - - /// - /// The token redemption window in seconds — the time the client has to use this token to open a WebSocket before it expires unused. This is not the session duration; see `max_session_duration_seconds` for that. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("expires_in_seconds")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int ExpiresInSeconds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The temporary authentication token. Pass as the `token` query parameter when opening the WebSocket. - /// - /// - /// The token redemption window in seconds — the time the client has to use this token to open a WebSocket before it expires unused. This is not the session duration; see `max_session_duration_seconds` for that. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public VoiceAgentAPIGenerateVoiceAgentTokenResponse200( - string token, - int expiresInSeconds) - { - this.Token = token ?? throw new global::System.ArgumentNullException(nameof(token)); - this.ExpiresInSeconds = expiresInSeconds; - } - - /// - /// Initializes a new instance of the class. - /// - public VoiceAgentAPIGenerateVoiceAgentTokenResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.Json.g.cs deleted file mode 100644 index 6c0168e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class WordSearchMatch - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.WordSearchMatch? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.WordSearchMatch), - jsonSerializerContext) as global::AssemblyAI.WordSearchMatch; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.WordSearchMatch? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.WordSearchMatch), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.WordSearchMatch; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.g.cs deleted file mode 100644 index cbee054..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.g.cs +++ /dev/null @@ -1,83 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class WordSearchMatch - { - /// - /// The matched word - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// The total amount of times the word is in the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("count")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Count { get; set; } - - /// - /// An array of timestamps - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timestamps")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Timestamps { get; set; } - - /// - /// An array of all index locations for that word within the `words` array of the completed transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("indexes")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Indexes { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The matched word - /// - /// - /// The total amount of times the word is in the transcript - /// - /// - /// An array of timestamps - /// - /// - /// An array of all index locations for that word within the `words` array of the completed transcript - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public WordSearchMatch( - string text, - int count, - global::System.Collections.Generic.IList> timestamps, - global::System.Collections.Generic.IList indexes) - { - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Count = count; - this.Timestamps = timestamps ?? throw new global::System.ArgumentNullException(nameof(timestamps)); - this.Indexes = indexes ?? throw new global::System.ArgumentNullException(nameof(indexes)); - } - - /// - /// Initializes a new instance of the class. - /// - public WordSearchMatch() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.Json.g.cs deleted file mode 100644 index e10db11..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class WordSearchResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.WordSearchResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.WordSearchResponse), - jsonSerializerContext) as global::AssemblyAI.WordSearchResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.WordSearchResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.WordSearchResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.WordSearchResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.g.cs deleted file mode 100644 index fa8e8c2..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public sealed partial class WordSearchResponse - { - /// - /// The ID of the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } - - /// - /// The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times, `total_count` will equal 5. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int TotalCount { get; set; } - - /// - /// The matches of the search - /// - [global::System.Text.Json.Serialization.JsonPropertyName("matches")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Matches { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The ID of the transcript - /// - /// - /// The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times, `total_count` will equal 5. - /// - /// - /// The matches of the search - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public WordSearchResponse( - global::System.Guid id, - int totalCount, - global::System.Collections.Generic.IList matches) - { - this.Id = id; - this.TotalCount = totalCount; - this.Matches = matches ?? throw new global::System.ArgumentNullException(nameof(matches)); - } - - /// - /// Initializes a new instance of the class. - /// - public WordSearchResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse2.Json.g.cs deleted file mode 100644 index 3c144b1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class WordSearchResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.WordSearchResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.WordSearchResponse2), - jsonSerializerContext) as global::AssemblyAI.WordSearchResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.WordSearchResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.WordSearchResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.WordSearchResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse2.g.cs deleted file mode 100644 index c10ed1e..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class WordSearchResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse3.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse3.Json.g.cs deleted file mode 100644 index 2bad1b9..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse3.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public sealed partial class WordSearchResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.WordSearchResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.WordSearchResponse3), - jsonSerializerContext) as global::AssemblyAI.WordSearchResponse3; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.WordSearchResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.WordSearchResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.WordSearchResponse3; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse3.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse3.g.cs deleted file mode 100644 index eb601ef..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// Any type - /// - public sealed partial class WordSearchResponse3 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.Json.g.cs deleted file mode 100644 index 9616208..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - public readonly partial struct OneOf - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AssemblyAI.OneOf? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AssemblyAI.OneOf), - jsonSerializerContext) as global::AssemblyAI.OneOf?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AssemblyAI.OneOf? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize>( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AssemblyAI.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.OneOf?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.g.cs deleted file mode 100644 index 7d6c983..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.2.g.cs +++ /dev/null @@ -1,294 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// - /// - public readonly partial struct OneOf : global::System.IEquatable> - { - /// - /// - /// -#if NET6_0_OR_GREATER - public T1? Value1 { get; init; } -#else - public T1? Value1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] -#endif - public bool IsValue1 => Value1 != null; - - /// - /// - /// - public bool TryPickValue1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T1? value) - { - value = Value1; - return IsValue1; - } - - /// - /// - /// - public T1 PickValue1() => IsValue1 - ? Value1! - : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; - - /// - /// - /// - public bool TryPickValue2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T2? value) - { - value = Value2; - return IsValue2; - } - - /// - /// - /// - public T2 PickValue2() => IsValue2 - ? Value2! - : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); - - /// - /// - /// - public static implicit operator T1?(OneOf @this) => @this.Value1; - - /// - /// - /// - public OneOf(T1? value) - { - Value1 = value; - } - - /// - /// - /// - public static OneOf FromValue1(T1? value) => new OneOf(value); - - /// - /// - /// - public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); - - /// - /// - /// - public static implicit operator T2?(OneOf @this) => @this.Value2; - - /// - /// - /// - public OneOf(T2? value) - { - Value2 = value; - } - - /// - /// - /// - public static OneOf FromValue2(T2? value) => new OneOf(value); - - /// - /// - /// - public OneOf( - T1? value1, - T2? value2 - ) - { - Value1 = value1; - Value2 = value2; - } - - /// - /// - /// - public object? Object => - Value2 as object ?? - Value1 as object - ; - - /// - /// - /// - public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1 && value1 != null) - { - return value1(Value1!); - } - else if (IsValue2 && value2 != null) - { - return value2(Value2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? value1 = null, - - global::System.Action? value2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1) - { - value1?.Invoke(Value1!); - } - else if (IsValue2) - { - value2?.Invoke(Value2!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1) - { - value1?.Invoke(Value1!); - } - else if (IsValue2) - { - value2?.Invoke(Value2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Value1, - typeof(T1), - Value2, - typeof(T2), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(OneOf other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) - ; - } - - /// - /// - /// - public static bool operator ==(OneOf obj1, OneOf obj2) - { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(OneOf obj1, OneOf obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is OneOf o && Equals(o); - } - } -} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Security.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Security.g.cs new file mode 100644 index 0000000..38f601f --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Security.g.cs @@ -0,0 +1,158 @@ +#nullable enable + +namespace AssemblyAI +{ + internal sealed class EndPointAuthorizationRequirement + { + internal string Type { get; set; } = string.Empty; + + internal string SchemeId { get; set; } = string.Empty; + + internal string Location { get; set; } = string.Empty; + + internal string Name { get; set; } = string.Empty; + + internal string FriendlyName { get; set; } = string.Empty; + } + + internal sealed class EndPointSecurityRequirement + { + internal global::System.Collections.Generic.IReadOnlyList Authorizations { get; set; } = + global::System.Array.Empty(); + } + + internal static class EndPointSecurityResolver + { + internal static global::System.Collections.Generic.List ResolveAuthorizations( + global::System.Collections.Generic.IReadOnlyList availableAuthorizations, + global::System.Collections.Generic.IReadOnlyList securityRequirements, + string operationName) + { + availableAuthorizations = availableAuthorizations ?? throw new global::System.ArgumentNullException(nameof(availableAuthorizations)); + securityRequirements = securityRequirements ?? throw new global::System.ArgumentNullException(nameof(securityRequirements)); + operationName = operationName ?? throw new global::System.ArgumentNullException(nameof(operationName)); + + if (securityRequirements.Count == 0) + { + return new global::System.Collections.Generic.List(); + } + + var allowsAnonymous = false; + + foreach (var requirement in securityRequirements) + { + if (requirement.Authorizations.Count == 0) + { + allowsAnonymous = true; + continue; + } + + var selected = new global::System.Collections.Generic.List(requirement.Authorizations.Count); + var satisfied = true; + + foreach (var requiredAuthorization in requirement.Authorizations) + { + var found = false; + + for (var i = 0; i < availableAuthorizations.Count; i++) + { + if (!Matches(availableAuthorizations[i], requiredAuthorization)) + { + continue; + } + + selected.Add(availableAuthorizations[i]); + found = true; + break; + } + + if (!found) + { + satisfied = false; + break; + } + } + + if (satisfied) + { + return selected; + } + } + + if (allowsAnonymous) + { + return new global::System.Collections.Generic.List(); + } + + throw new global::System.InvalidOperationException( + $"Operation '{operationName}' requires one of the configured security alternatives: {DescribeRequirements(securityRequirements)}."); + } + + private static bool Matches( + EndPointAuthorization availableAuthorization, + EndPointAuthorizationRequirement requiredAuthorization) + { + if (!string.Equals(availableAuthorization.Type, requiredAuthorization.Type, global::System.StringComparison.Ordinal)) + { + return false; + } + + return requiredAuthorization.Type switch + { + "OAuth2" => string.Equals( + availableAuthorization.SchemeId, + requiredAuthorization.SchemeId, + global::System.StringComparison.Ordinal), + "OpenIdConnect" => string.Equals( + availableAuthorization.SchemeId, + requiredAuthorization.SchemeId, + global::System.StringComparison.Ordinal), + "MutualTLS" => string.Equals( + availableAuthorization.SchemeId, + requiredAuthorization.SchemeId, + global::System.StringComparison.Ordinal), + "Http" => string.Equals( + availableAuthorization.Name, + requiredAuthorization.Name, + global::System.StringComparison.Ordinal), + "ApiKey" => string.Equals( + availableAuthorization.Location, + requiredAuthorization.Location, + global::System.StringComparison.Ordinal) && + string.Equals( + availableAuthorization.Name, + requiredAuthorization.Name, + global::System.StringComparison.Ordinal), + _ => string.Equals( + availableAuthorization.Location, + requiredAuthorization.Location, + global::System.StringComparison.Ordinal) && + string.Equals( + availableAuthorization.Name, + requiredAuthorization.Name, + global::System.StringComparison.Ordinal), + }; + } + + private static string DescribeRequirements( + global::System.Collections.Generic.IReadOnlyList securityRequirements) + { + var parts = new global::System.Collections.Generic.List(securityRequirements.Count); + + foreach (var requirement in securityRequirements) + { + if (requirement.Authorizations.Count == 0) + { + parts.Add("anonymous"); + continue; + } + + parts.Add(string.Join( + " + ", + global::System.Linq.Enumerable.Select(requirement.Authorizations, static x => x.FriendlyName))); + } + + return string.Join(" or ", parts); + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ServerSelection.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ServerSelection.g.cs deleted file mode 100644 index 26a7a44..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.ServerSelection.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -#nullable enable - -namespace AssemblyAI -{ - /// - /// Represents a concrete OpenAPI server option. - /// - public sealed class AutoSDKServer - { - /// - /// Initializes a new instance of the class. - /// - /// The stable identifier for this server option. - /// The display name for this server option. - /// The server URL. - /// The server description. - public AutoSDKServer( - string id, - string name, - string url, - string description) - { - Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - Name = name ?? string.Empty; - Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); - Description = description ?? string.Empty; - Uri = new global::System.Uri(url, global::System.UriKind.RelativeOrAbsolute); - } - - /// - /// Gets the stable identifier for this server option. - /// - public string Id { get; } - /// - /// Gets the display name for this server option. - /// - public string Name { get; } - /// - /// Gets the server URL. - /// - public string Url { get; } - /// - /// Gets the server description. - /// - public string Description { get; } - /// - /// Gets the parsed server URI. - /// - public global::System.Uri Uri { get; } - } - - internal sealed class AutoSDKServerConfiguration - { - public global::System.Uri? ExplicitBaseUri { get; set; } - public global::AssemblyAI.AutoSDKServer? SelectedServer { get; set; } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageFilesClient.Upload.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageFilesClient.Upload.g.cs deleted file mode 100644 index 98247ec..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageFilesClient.Upload.g.cs +++ /dev/null @@ -1,735 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageFilesClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_UploadServers = 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 PrepareUploadArguments( - global::System.Net.Http.HttpClient httpClient, - ref string authorization, - byte[] request); - partial void PrepareUploadRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string authorization, - byte[] request); - partial void ProcessUploadResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUploadResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task UploadAsync( - string authorization, - - byte[] request, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UploadAsResponseAsync( - authorization: authorization, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> UploadAsResponseAsync( - string authorization, - - byte[] request, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUploadArguments( - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: "/v2/upload", - baseUri: ResolveBaseUri( - servers: s_UploadServers, - 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 __httpRequestContent = new global::System.Net.Http.ByteArrayContent(request); - __httpRequestContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream"); - __httpRequest.Content = __httpRequestContent; - global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUploadRequest( - 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: "Upload", - methodName: "UploadAsync", - pathTemplate: "\"/v2/upload\"", - 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: "Upload", - methodName: "UploadAsync", - pathTemplate: "\"/v2/upload\"", - 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: "Upload", - methodName: "UploadAsync", - pathTemplate: "\"/v2/upload\"", - 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); - ProcessUploadResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Upload", - methodName: "UploadAsync", - pathTemplate: "\"/v2/upload\"", - 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: "Upload", - methodName: "UploadAsync", - pathTemplate: "\"/v2/upload\"", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Cannot access uploaded file - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - global::AssemblyAI.Error? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::AssemblyAI.Error.FromJson(__content_403, JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = global::AssemblyAI.Error.FromJson(__content_403, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - responseBody: __content_403, - responseObject: __value_403, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessUploadResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::AssemblyAI.UploadedFile.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.UploadedFile.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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageFilesClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageFilesClient.g.cs deleted file mode 100644 index dee37b1..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageFilesClient.g.cs +++ /dev/null @@ -1,294 +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 sealed partial class SubpackageFilesClient : global::AssemblyAI.ISubpackageFilesClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://api.assemblyai.com/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - 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; - - - - 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 SubpackageFilesClient. - /// 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. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageFilesClient( - 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, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SubpackageFilesClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageFilesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::AssemblyAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SubpackageFilesClient. - /// 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. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageFilesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::AssemblyAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::AssemblyAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - 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.SubpackageStreamingApiClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageStreamingApiClient.g.cs deleted file mode 100644 index 36fa932..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageStreamingApiClient.g.cs +++ /dev/null @@ -1,294 +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 sealed partial class SubpackageStreamingApiClient : global::AssemblyAI.ISubpackageStreamingApiClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://api.assemblyai.com/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - 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; - - - - 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 SubpackageStreamingApiClient. - /// 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. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageStreamingApiClient( - 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, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SubpackageStreamingApiClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageStreamingApiClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::AssemblyAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SubpackageStreamingApiClient. - /// 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. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageStreamingApiClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::AssemblyAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::AssemblyAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - 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.SubpackageTranscriptsClient.Delete.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.Delete.g.cs deleted file mode 100644 index 9da81c8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.Delete.g.cs +++ /dev/null @@ -1,689 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageTranscriptsClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_DeleteServers = 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 PrepareDeleteArguments( - global::System.Net.Http.HttpClient httpClient, - ref string transcriptId, - ref string authorization); - partial void PrepareDeleteRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string transcriptId, - string authorization); - partial void ProcessDeleteResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task DeleteAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteAsResponseAsync( - transcriptId: transcriptId, - authorization: authorization, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> DeleteAsResponseAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteArguments( - httpClient: HttpClient, - transcriptId: ref transcriptId, - authorization: ref authorization); - - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: $"/v2/transcript/{transcriptId}", - baseUri: ResolveBaseUri( - servers: s_DeleteServers, - 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.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 - - __httpRequest.Headers.TryAddWithoutValidation("Authorization", authorization.ToString()); - - global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - transcriptId: transcriptId!, - authorization: authorization!); - - 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: "Delete", - methodName: "DeleteAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "DELETE", - 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: "Delete", - methodName: "DeleteAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "DELETE", - 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: "Delete", - methodName: "DeleteAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "DELETE", - 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); - ProcessDeleteResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "DELETE", - 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: "Delete", - methodName: "DeleteAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "DELETE", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessDeleteResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::AssemblyAI.Transcript.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.Transcript.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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.Get.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.Get.g.cs deleted file mode 100644 index 1e43079..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.Get.g.cs +++ /dev/null @@ -1,687 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageTranscriptsClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_GetServers = 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 PrepareGetArguments( - global::System.Net.Http.HttpClient httpClient, - ref string transcriptId, - ref string authorization); - partial void PrepareGetRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string transcriptId, - string authorization); - partial void ProcessGetResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task GetAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetAsResponseAsync( - transcriptId: transcriptId, - authorization: authorization, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> GetAsResponseAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetArguments( - httpClient: HttpClient, - transcriptId: ref transcriptId, - authorization: ref authorization); - - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: $"/v2/transcript/{transcriptId}", - baseUri: ResolveBaseUri( - servers: s_GetServers, - 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.Get, - 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()); - - global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - transcriptId: transcriptId!, - authorization: authorization!); - - 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: "Get", - methodName: "GetAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "GET", - 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: "Get", - methodName: "GetAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "GET", - 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: "Get", - methodName: "GetAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "GET", - 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); - ProcessGetResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "GET", - 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: "Get", - methodName: "GetAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}\"", - httpMethod: "GET", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessGetResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::AssemblyAI.Transcript.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.Transcript.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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetParagraphs.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetParagraphs.g.cs deleted file mode 100644 index 9239a3f..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetParagraphs.g.cs +++ /dev/null @@ -1,687 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageTranscriptsClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_GetParagraphsServers = 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 PrepareGetParagraphsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string transcriptId, - ref string authorization); - partial void PrepareGetParagraphsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string transcriptId, - string authorization); - partial void ProcessGetParagraphsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetParagraphsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task GetParagraphsAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetParagraphsAsResponseAsync( - transcriptId: transcriptId, - authorization: authorization, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> GetParagraphsAsResponseAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetParagraphsArguments( - httpClient: HttpClient, - transcriptId: ref transcriptId, - authorization: ref authorization); - - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: $"/v2/transcript/{transcriptId}/paragraphs", - baseUri: ResolveBaseUri( - servers: s_GetParagraphsServers, - 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.Get, - 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()); - - global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetParagraphsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - transcriptId: transcriptId!, - authorization: authorization!); - - 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: "GetParagraphs", - methodName: "GetParagraphsAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", - httpMethod: "GET", - 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: "GetParagraphs", - methodName: "GetParagraphsAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", - httpMethod: "GET", - 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: "GetParagraphs", - methodName: "GetParagraphsAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", - httpMethod: "GET", - 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); - ProcessGetParagraphsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetParagraphs", - methodName: "GetParagraphsAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", - httpMethod: "GET", - 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: "GetParagraphs", - methodName: "GetParagraphsAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", - httpMethod: "GET", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessGetParagraphsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::AssemblyAI.ParagraphsResponse.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.ParagraphsResponse.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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetRedactedAudio.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetRedactedAudio.g.cs deleted file mode 100644 index 1901bf2..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetRedactedAudio.g.cs +++ /dev/null @@ -1,689 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageTranscriptsClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_GetRedactedAudioServers = 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 PrepareGetRedactedAudioArguments( - global::System.Net.Http.HttpClient httpClient, - ref string transcriptId, - ref string authorization); - partial void PrepareGetRedactedAudioRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string transcriptId, - string authorization); - partial void ProcessGetRedactedAudioResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetRedactedAudioResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task GetRedactedAudioAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetRedactedAudioAsResponseAsync( - transcriptId: transcriptId, - authorization: authorization, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> GetRedactedAudioAsResponseAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetRedactedAudioArguments( - httpClient: HttpClient, - transcriptId: ref transcriptId, - authorization: ref authorization); - - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: $"/v2/transcript/{transcriptId}/redacted-audio", - baseUri: ResolveBaseUri( - servers: s_GetRedactedAudioServers, - 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.Get, - 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()); - - global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetRedactedAudioRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - transcriptId: transcriptId!, - authorization: authorization!); - - 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: "GetRedactedAudio", - methodName: "GetRedactedAudioAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", - httpMethod: "GET", - 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: "GetRedactedAudio", - methodName: "GetRedactedAudioAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", - httpMethod: "GET", - 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: "GetRedactedAudio", - methodName: "GetRedactedAudioAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", - httpMethod: "GET", - 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); - ProcessGetRedactedAudioResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetRedactedAudio", - methodName: "GetRedactedAudioAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", - httpMethod: "GET", - 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: "GetRedactedAudio", - methodName: "GetRedactedAudioAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", - httpMethod: "GET", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessGetRedactedAudioResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::AssemblyAI.RedactedAudioResponse.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.RedactedAudioResponse.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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetSentences.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetSentences.g.cs deleted file mode 100644 index bf84126..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetSentences.g.cs +++ /dev/null @@ -1,687 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageTranscriptsClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_GetSentencesServers = 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 PrepareGetSentencesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string transcriptId, - ref string authorization); - partial void PrepareGetSentencesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string transcriptId, - string authorization); - partial void ProcessGetSentencesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetSentencesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task GetSentencesAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetSentencesAsResponseAsync( - transcriptId: transcriptId, - authorization: authorization, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> GetSentencesAsResponseAsync( - string transcriptId, - string authorization, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetSentencesArguments( - httpClient: HttpClient, - transcriptId: ref transcriptId, - authorization: ref authorization); - - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: $"/v2/transcript/{transcriptId}/sentences", - baseUri: ResolveBaseUri( - servers: s_GetSentencesServers, - 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.Get, - 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()); - - global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetSentencesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - transcriptId: transcriptId!, - authorization: authorization!); - - 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: "GetSentences", - methodName: "GetSentencesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", - httpMethod: "GET", - 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: "GetSentences", - methodName: "GetSentencesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", - httpMethod: "GET", - 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: "GetSentences", - methodName: "GetSentencesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", - httpMethod: "GET", - 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); - ProcessGetSentencesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSentences", - methodName: "GetSentencesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", - httpMethod: "GET", - 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: "GetSentences", - methodName: "GetSentencesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", - httpMethod: "GET", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessGetSentencesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::AssemblyAI.SentencesResponse.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.SentencesResponse.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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetSubtitles.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetSubtitles.g.cs deleted file mode 100644 index 22596c8..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.GetSubtitles.g.cs +++ /dev/null @@ -1,708 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageTranscriptsClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_GetSubtitlesServers = 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 PrepareGetSubtitlesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string transcriptId, - ref global::AssemblyAI.SubtitleFormat subtitleFormat, - ref int? charsPerCaption, - ref string authorization); - partial void PrepareGetSubtitlesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string transcriptId, - global::AssemblyAI.SubtitleFormat subtitleFormat, - int? charsPerCaption, - string authorization); - partial void ProcessGetSubtitlesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetSubtitlesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async 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) - { - var __response = await GetSubtitlesAsResponseAsync( - transcriptId: transcriptId, - subtitleFormat: subtitleFormat, - authorization: authorization, - charsPerCaption: charsPerCaption, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async 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) - { - PrepareArguments( - client: HttpClient); - PrepareGetSubtitlesArguments( - httpClient: HttpClient, - transcriptId: ref transcriptId, - subtitleFormat: ref subtitleFormat, - charsPerCaption: ref charsPerCaption, - authorization: ref authorization); - - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: $"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}", - baseUri: ResolveBaseUri( - servers: s_GetSubtitlesServers, - defaultBaseUrl: "https://api.assemblyai.com/")); - __pathBuilder - .AddOptionalParameter("chars_per_caption", charsPerCaption?.ToString()) - ; - 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, - 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()); - - global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetSubtitlesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - transcriptId: transcriptId!, - subtitleFormat: subtitleFormat!, - charsPerCaption: charsPerCaption, - authorization: authorization!); - - 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: "GetSubtitles", - methodName: "GetSubtitlesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", - httpMethod: "GET", - 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: "GetSubtitles", - methodName: "GetSubtitlesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", - httpMethod: "GET", - 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: "GetSubtitles", - methodName: "GetSubtitlesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", - httpMethod: "GET", - 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); - ProcessGetSubtitlesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSubtitles", - methodName: "GetSubtitlesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", - httpMethod: "GET", - 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: "GetSubtitles", - methodName: "GetSubtitlesAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", - httpMethod: "GET", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessGetSubtitlesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::AssemblyAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - 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(); - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - return new global::AssemblyAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::AssemblyAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - 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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.List.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.List.g.cs deleted file mode 100644 index 8f1e3f3..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.List.g.cs +++ /dev/null @@ -1,770 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageTranscriptsClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_ListServers = 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 PrepareListArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? limit, - ref global::AssemblyAI.TranscriptStatus? status, - ref global::System.DateTime? createdOn, - ref global::System.Guid? beforeId, - ref global::System.Guid? afterId, - ref bool? throttledOnly, - ref string authorization); - partial void PrepareListRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? limit, - global::AssemblyAI.TranscriptStatus? status, - global::System.DateTime? createdOn, - global::System.Guid? beforeId, - global::System.Guid? afterId, - bool? throttledOnly, - string authorization); - partial void ProcessListResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async 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) - { - var __response = await ListAsResponseAsync( - authorization: authorization, - limit: limit, - status: status, - createdOn: createdOn, - beforeId: beforeId, - afterId: afterId, - throttledOnly: throttledOnly, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async 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) - { - PrepareArguments( - client: HttpClient); - PrepareListArguments( - httpClient: HttpClient, - limit: ref limit, - status: ref status, - createdOn: ref createdOn, - beforeId: ref beforeId, - afterId: ref afterId, - throttledOnly: ref throttledOnly, - authorization: ref authorization); - - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: "/v2/transcript", - baseUri: ResolveBaseUri( - servers: s_ListServers, - defaultBaseUrl: "https://api.assemblyai.com/")); - __pathBuilder - .AddOptionalParameter("limit", limit?.ToString()) - .AddOptionalParameter("status", status?.ToValueString()) - .AddOptionalParameter("created_on", createdOn?.ToString("yyyy-MM-dd")) - .AddOptionalParameter("before_id", beforeId?.ToString()) - .AddOptionalParameter("after_id", afterId?.ToString()) - .AddOptionalParameter("throttled_only", throttledOnly?.ToString().ToLowerInvariant()) - ; - 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, - 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()); - - global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - limit: limit, - status: status, - createdOn: createdOn, - beforeId: beforeId, - afterId: afterId, - throttledOnly: throttledOnly, - authorization: authorization!); - - 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: "List", - methodName: "ListAsync", - pathTemplate: "\"/v2/transcript\"", - httpMethod: "GET", - 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: "List", - methodName: "ListAsync", - pathTemplate: "\"/v2/transcript\"", - httpMethod: "GET", - 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: "List", - methodName: "ListAsync", - pathTemplate: "\"/v2/transcript\"", - httpMethod: "GET", - 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); - ProcessListResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", - pathTemplate: "\"/v2/transcript\"", - httpMethod: "GET", - 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: "List", - methodName: "ListAsync", - pathTemplate: "\"/v2/transcript\"", - httpMethod: "GET", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessListResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::AssemblyAI.TranscriptList.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.TranscriptList.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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.Submit.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.Submit.g.cs deleted file mode 100644 index 114e081..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.Submit.g.cs +++ /dev/null @@ -1,1000 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageTranscriptsClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_SubmitServers = 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 PrepareSubmitArguments( - global::System.Net.Http.HttpClient httpClient, - ref string authorization, - global::AssemblyAI.TranscriptParams request); - partial void PrepareSubmitRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string authorization, - global::AssemblyAI.TranscriptParams request); - partial void ProcessSubmitResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessSubmitResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task SubmitAsync( - string authorization, - - global::AssemblyAI.TranscriptParams request, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await SubmitAsResponseAsync( - authorization: authorization, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> SubmitAsResponseAsync( - string authorization, - - global::AssemblyAI.TranscriptParams request, - global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareSubmitArguments( - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: "/v2/transcript", - baseUri: ResolveBaseUri( - servers: s_SubmitServers, - 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); - PrepareSubmitRequest( - 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: "Submit", - methodName: "SubmitAsync", - pathTemplate: "\"/v2/transcript\"", - 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: "Submit", - methodName: "SubmitAsync", - pathTemplate: "\"/v2/transcript\"", - 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: "Submit", - methodName: "SubmitAsync", - pathTemplate: "\"/v2/transcript\"", - 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); - ProcessSubmitResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Submit", - methodName: "SubmitAsync", - pathTemplate: "\"/v2/transcript\"", - 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: "Submit", - methodName: "SubmitAsync", - pathTemplate: "\"/v2/transcript\"", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessSubmitResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::AssemblyAI.Transcript.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.Transcript.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(); - } - } - /// - /// 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 - /// - public async 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) - { - var __request = new global::AssemblyAI.TranscriptParams - { - AudioEndAt = audioEndAt, - AudioStartFrom = audioStartFrom, - AutoChapters = autoChapters, - AutoHighlights = autoHighlights, - ContentSafety = contentSafety, - ContentSafetyConfidence = contentSafetyConfidence, - CustomSpelling = customSpelling, - Disfluencies = disfluencies, - Domain = domain, - EntityDetection = entityDetection, - FilterProfanity = filterProfanity, - FormatText = formatText, - IabCategories = iabCategories, - KeytermsPrompt = keytermsPrompt, - LanguageCode = languageCode, - LanguageCodes = languageCodes, - LanguageConfidenceThreshold = languageConfidenceThreshold, - LanguageDetection = languageDetection, - LanguageDetectionOptions = languageDetectionOptions, - Multichannel = multichannel, - Prompt = prompt, - Punctuate = punctuate, - RedactPii = redactPii, - RedactPiiAudio = redactPiiAudio, - RedactPiiAudioOptions = redactPiiAudioOptions, - RedactPiiAudioQuality = redactPiiAudioQuality, - RedactPiiPolicies = redactPiiPolicies, - RedactPiiSub = redactPiiSub, - RedactPiiReturnUnredacted = redactPiiReturnUnredacted, - SentimentAnalysis = sentimentAnalysis, - SpeakerLabels = speakerLabels, - SpeakerOptions = speakerOptions, - SpeakersExpected = speakersExpected, - SpeechModels = speechModels, - SpeechThreshold = speechThreshold, - SpeechUnderstanding = speechUnderstanding, - Summarization = summarization, - SummaryModel = summaryModel, - SummaryType = summaryType, - RemoveAudioTags = removeAudioTags, - Temperature = temperature, - WebhookAuthHeaderName = webhookAuthHeaderName, - WebhookAuthHeaderValue = webhookAuthHeaderValue, - WebhookUrl = webhookUrl, - CustomTopics = customTopics, - SpeechModel = speechModel, - Topics = topics, - AudioUrl = audioUrl, - }; - - return await SubmitAsync( - authorization: authorization, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.WordSearch.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.WordSearch.g.cs deleted file mode 100644 index 93c0314..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.WordSearch.g.cs +++ /dev/null @@ -1,699 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - public partial class SubpackageTranscriptsClient - { - - private static readonly global::AssemblyAI.AutoSDKServer[] s_WordSearchServers = 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 PrepareWordSearchArguments( - global::System.Net.Http.HttpClient httpClient, - ref string transcriptId, - global::System.Collections.Generic.IList words, - ref string authorization); - partial void PrepareWordSearchRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string transcriptId, - global::System.Collections.Generic.IList words, - string authorization); - partial void ProcessWordSearchResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessWordSearchResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async 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) - { - var __response = await WordSearchAsResponseAsync( - transcriptId: transcriptId, - words: words, - authorization: authorization, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async 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) - { - PrepareArguments( - client: HttpClient); - PrepareWordSearchArguments( - httpClient: HttpClient, - transcriptId: ref transcriptId, - words: words, - authorization: ref authorization); - - 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: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::AssemblyAI.PathBuilder( - path: $"/v2/transcript/{transcriptId}/word-search", - baseUri: ResolveBaseUri( - servers: s_WordSearchServers, - defaultBaseUrl: "https://api.assemblyai.com/")); - __pathBuilder - .AddRequiredParameter("words", words, delimiter: ",", explode: true) - ; - 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, - 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()); - - global::AssemblyAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareWordSearchRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - transcriptId: transcriptId!, - words: words!, - authorization: authorization!); - - 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: "WordSearch", - methodName: "WordSearchAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", - httpMethod: "GET", - 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: "WordSearch", - methodName: "WordSearchAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", - httpMethod: "GET", - 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: "WordSearch", - methodName: "WordSearchAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", - httpMethod: "GET", - 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); - ProcessWordSearchResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::AssemblyAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::AssemblyAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "WordSearch", - methodName: "WordSearchAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", - httpMethod: "GET", - 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: "WordSearch", - methodName: "WordSearchAsync", - pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", - httpMethod: "GET", - 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); - } - // Bad request - 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)); - } - // Unauthorized - 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)); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::AssemblyAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Too many requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::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)); - } - // An error occurred while processing the request - 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)); - } - // Service unavailable - if ((int)__response.StatusCode == 503) - { - string? __content_503 = null; - global::System.Exception? __exception_503 = null; - string? __value_503 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - else - { - __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_503 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_503, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_503 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_503, - responseBody: __content_503, - responseObject: __value_503, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // Gateway timeout - if ((int)__response.StatusCode == 504) - { - string? __content_504 = null; - global::System.Exception? __exception_504 = null; - string? __value_504 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - else - { - __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_504 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_504, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_504 = __ex; - } - - - throw global::AssemblyAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_504, - responseBody: __content_504, - responseObject: __value_504, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - 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); - ProcessWordSearchResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::AssemblyAI.WordSearchResponse.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.WordSearchResponse.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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.g.cs deleted file mode 100644 index 14b272b..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageTranscriptsClient.g.cs +++ /dev/null @@ -1,294 +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 sealed partial class SubpackageTranscriptsClient : global::AssemblyAI.ISubpackageTranscriptsClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://api.assemblyai.com/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - 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; - - - - 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 SubpackageTranscriptsClient. - /// 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. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageTranscriptsClient( - 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, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SubpackageTranscriptsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageTranscriptsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::AssemblyAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SubpackageTranscriptsClient. - /// 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. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageTranscriptsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::AssemblyAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::AssemblyAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - 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.SubpackageVoiceAgentApiClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageVoiceAgentApiClient.g.cs deleted file mode 100644 index f7913fb..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.SubpackageVoiceAgentApiClient.g.cs +++ /dev/null @@ -1,294 +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 sealed partial class SubpackageVoiceAgentApiClient : global::AssemblyAI.ISubpackageVoiceAgentApiClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://api.assemblyai.com/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - 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; - - - - 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 SubpackageVoiceAgentApiClient. - /// 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. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageVoiceAgentApiClient( - 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, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SubpackageVoiceAgentApiClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageVoiceAgentApiClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::AssemblyAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SubpackageVoiceAgentApiClient. - /// 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. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SubpackageVoiceAgentApiClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::AssemblyAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::AssemblyAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - 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/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index 22b8c33..da5326e 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -1 +1,217 @@ -{"openapi":"3.1.0","info":{"title":"API Reference","version":"1.0.0"},"paths":{"/v2/upload":{"post":{"operationId":"upload","summary":"Upload a media file","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nUpload a media file to AssemblyAI's servers.\n\nTo upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.\nRequests 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.\n","tags":["subpackage_files"],"parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Media file uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadedFile"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cannot access uploaded file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}},"requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}}},"/v2/transcript":{"post":{"operationId":"submit","summary":"Transcribe audio","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nTo use our EU server for transcription, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.\nBuilding a load test or submitting a large batch? [See our guide →](/docs/pre-recorded-audio/guides/bulk-transcription-and-load-tests-at-scale)\nCreate a transcript from a media file that is accessible via a URL.\n","tags":["subpackage_transcripts"],"parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Transcript created and queued for processing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transcript"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}},"requestBody":{"description":"Params to create a transcript","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptParams"}}}}},"get":{"operationId":"list","summary":"List transcripts","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nTo retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.\nRetrieve a list of transcripts you created.\nTranscripts 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.\n\nIf you need to retrieve transcripts from more than 90 days ago please reach out to our Support team at support@assemblyai.com.\n\n**Pagination**\n\nThis endpoint returns paginated results. The response includes a `page_details` object with the following properties:\n- `page_details.limit` - Maximum number of transcripts per page.\n- `page_details.result_count` - Total number of transcripts returned on the current page.\n- `page_details.current_url` - URL to the current page.\n- `page_details.prev_url` - URL to the previous page of older transcripts.\n- `page_details.next_url` - URL to the next page of newer transcripts.\n","tags":["subpackage_transcripts"],"parameters":[{"name":"limit","in":"query","description":"Maximum amount of transcripts to retrieve","required":false,"schema":{"type":"integer","default":10}},{"name":"status","in":"query","description":"Filter by transcript status","required":false,"schema":{"$ref":"#/components/schemas/TranscriptStatus"}},{"name":"created_on","in":"query","description":"Only get transcripts created on this date","required":false,"schema":{"type":"string","format":"date"}},{"name":"before_id","in":"query","description":"Get transcripts that were created before this transcript ID","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"after_id","in":"query","description":"Get transcripts that were created after this transcript ID","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"throttled_only","in":"query","description":"Only get throttled transcripts, overrides the status filter","required":false,"schema":{"type":"boolean","default":false}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A list of transcripts. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptList"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}}}},"/v2/transcript/{transcript_id}":{"get":{"operationId":"get","summary":"Get transcript","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nTo retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.\nGet the transcript resource. The transcript is ready when the \"status\" is \"completed\".\n","tags":["subpackage_transcripts"],"parameters":[{"name":"transcript_id","in":"path","description":"ID of the transcript","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The transcript resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transcript"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}}},"delete":{"operationId":"delete","summary":"Delete transcript","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nTo delete your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.\nRemove the data from the transcript and mark it as deleted.\nFiles 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.\n","tags":["subpackage_transcripts"],"parameters":[{"name":"transcript_id","in":"path","description":"ID of the transcript","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The deleted transcript response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transcript"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}}}},"/v2/transcript/{transcript_id}/sentences":{"get":{"operationId":"get-sentences","summary":"Get sentences in transcript","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nTo retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.\nGet the transcript split by sentences. The API will attempt to semantically segment the transcript into sentences to create more reader-friendly transcripts.\n","tags":["subpackage_transcripts"],"parameters":[{"name":"transcript_id","in":"path","description":"ID of the transcript","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Exported sentences","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SentencesResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}}}},"/v2/transcript/{transcript_id}/paragraphs":{"get":{"operationId":"get-paragraphs","summary":"Get paragraphs in transcript","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nTo retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.\nGet the transcript split by paragraphs. The API will attempt to semantically segment your transcript into paragraphs to create more reader-friendly transcripts.\n","tags":["subpackage_transcripts"],"parameters":[{"name":"transcript_id","in":"path","description":"ID of the transcript","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Exported paragraphs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParagraphsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}}}},"/v2/transcript/{transcript_id}/{subtitle_format}":{"get":{"operationId":"get-subtitles","summary":"Get subtitles for transcript","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nTo retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.\nExport your transcript in SRT or VTT format to use with a video player for subtitles and closed captions.\n","tags":["subpackage_transcripts"],"parameters":[{"name":"transcript_id","in":"path","description":"ID of the transcript","required":true,"schema":{"type":"string"}},{"name":"subtitle_format","in":"path","description":"The format of the captions","required":true,"schema":{"$ref":"#/components/schemas/SubtitleFormat"}},{"name":"chars_per_caption","in":"query","description":"The maximum number of characters per caption","required":false,"schema":{"type":"integer"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The exported captions as text","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}}}},"/v2/transcript/{transcript_id}/redacted-audio":{"get":{"operationId":"get-redacted-audio","summary":"Get redacted audio","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nTo retrieve the redacted audio on the EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com` in the `GET` request above.\nRedacted audio files are only available for 24 hours. Make sure to download the file within this time frame.\nRetrieve the redacted audio object containing the status and URL to the redacted audio.\n","tags":["subpackage_transcripts"],"parameters":[{"name":"transcript_id","in":"path","description":"ID of the transcript","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The redacted audio object containing the status and URL to the redacted audio","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedactedAudioResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}}}},"/v2/transcript/{transcript_id}/word-search":{"get":{"operationId":"word-search","summary":"Search words in transcript","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nTo search through a transcription created on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.\nSearch through the transcript for keywords. You can search for individual words, numbers, or phrases containing up to five words or numbers.\n","tags":["subpackage_transcripts"],"parameters":[{"name":"transcript_id","in":"path","description":"ID of the transcript","required":true,"schema":{"type":"string"}},{"name":"words","in":"query","description":"Keywords to search for","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Word search response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WordSearchResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"description":"Any type"}}}},"504":{"description":"Gateway timeout","content":{"application/json":{"schema":{"description":"Any type"}}}}}}},"/chat/completions":{"post":{"operationId":"create-chat-completion","summary":"Create a chat completion","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\n\nTo use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.\n\nGenerates a response from a model given a prompt or a series of messages.","tags":[""],"parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response containing the model's choices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response"}}}}},"requestBody":{"description":"Request body for creating a chat completion.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMGatewayRequest"}}}}}},"/understanding":{"post":{"operationId":"create-speech-understanding","summary":"Process speech understanding","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\n\nTo use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.\n\nPerform 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).","tags":[""],"parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response containing the speech understanding results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/createSpeechUnderstanding_Response_200"}}}}},"requestBody":{"description":"Request body for speech understanding tasks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnderstandingRequest"}}}}}},"/v3/token":{"get":{"operationId":"generate-streaming-token","summary":"Generate temporary streaming token","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nGenerates 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.\n","tags":["subpackage_streamingApi"],"parameters":[{"name":"expires_in_seconds","in":"query","description":"Token redemption window, in seconds. The token must be used to open a WebSocket connection within this window. If the window has elapsed when the WebSocket is opened, the server rejects the session on the first frame. This does NOT cap the duration of the resulting streaming session — once the WebSocket is open the session runs for up to `max_session_duration_seconds`.\n","required":true,"schema":{"type":"integer"}},{"name":"max_session_duration_seconds","in":"query","description":"Maximum duration of the streaming session started with this token, in seconds. If you need to finalize work before the session ends, run a client-side timer using the value you passed here.\n","required":false,"schema":{"type":"integer","default":10800}}],"responses":{"200":{"description":"Successfully generated temporary token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Streaming API_generateStreamingToken_Response_200"}}}},"400":{"description":"Bad Request - Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too Many Requests - Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/token":{"get":{"operationId":"generate-voice-agent-token","summary":"Generate temporary Voice Agent token","description":"\n> For the complete documentation index, see [llms.txt](https://www.assemblyai.com/docs/llms.txt)\n\nGenerate a temporary authentication token for the Voice Agent API. Use this to\nconnect browser or other client-side applications to the Voice Agent API without\nexposing your permanent API key. See\n[Browser integration](https://www.assemblyai.com/docs/voice-agents/voice-agent-api/browser-integration)\nfor the full flow.\n\nEach token is one-time use and can only be used for a single session. All usage\nis attributed to the API key that generated the token.\n","tags":["subpackage_voiceAgentApi"],"parameters":[{"name":"expires_in_seconds","in":"query","description":"Token redemption window, in seconds. The token must be used to open a WebSocket connection within this window. If the window has elapsed when the WebSocket is opened, the server returns a `session.error` with code `unauthorized` on the first frame instead of `session.ready`. This does NOT cap the duration of the resulting voice agent session — once the WebSocket is open the session runs for up to `max_session_duration_seconds`.\n","required":true,"schema":{"type":"integer"}},{"name":"max_session_duration_seconds","in":"query","description":"Maximum duration of the Voice Agent session started with this token, in seconds. There is no \"closing soon\" warning event before the session ends, so if you need to finalize gracefully (e.g. play a wrap-up message, save state), run a client-side timer using the value you passed here.\n","required":false,"schema":{"type":"integer","default":10800}}],"responses":{"200":{"description":"Successfully generated a temporary token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Voice Agent API_generateVoiceAgentToken_Response_200"}}}},"400":{"description":"Bad request — invalid parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized — invalid or missing API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too Many Requests — rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"servers":[{"url":"https://api.assemblyai.com"},{"url":"https://llm-gateway.assemblyai.com/v1"},{"url":"https://streaming.assemblyai.com"},{"url":"https://agents.assemblyai.com"}],"components":{"schemas":{"UploadedFile":{"type":"object","properties":{"upload_url":{"type":"string","format":"url","description":"A URL that points to your audio file, accessible only by AssemblyAI's servers\n"}},"required":["upload_url"],"title":"UploadedFile"},"ErrorDetails":{"type":"object","properties":{},"description":"Additional error details if available","title":"ErrorDetails"},"Error":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong"},"code":{"type":"string","description":"Error code for programmatic handling"},"details":{"$ref":"#/components/schemas/ErrorDetails","description":"Additional error details if available"}},"required":["error"],"title":"Error"},"TranscriptCustomSpelling":{"type":"object","properties":{"from":{"type":"array","items":{"type":"string"},"description":"Words or phrases to replace"},"to":{"type":"string","description":"Word to replace with"}},"required":["from","to"],"description":"Object containing words or phrases to replace, and the word or phrase to replace with","title":"TranscriptCustomSpelling"},"TranscriptLanguageCode":{"type":"string","enum":["en","en_au","en_uk","en_us","es","fr","de","it","pt","nl","af","sq","am","ar","hy","as","az","ba","eu","be","bn","bs","br","bg","my","ca","zh","hr","cs","da","et","fo","fi","gl","ka","el","gu","ht","ha","haw","he","hi","hu","is","id","ja","jw","kn","kk","km","ko","lo","la","lv","ln","lt","lb","mk","mg","ms","ml","mt","mi","mr","mn","ne","no","nn","oc","pa","ps","fa","pl","ro","ru","sa","sr","sn","sd","si","sk","sl","so","su","sw","sv","tl","tg","ta","tt","te","th","bo","tr","tk","uk","ur","uz","vi","cy","yi","yo"],"description":"The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages).\nThe default value is 'en_us'.\n","title":"TranscriptLanguageCode"},"TranscriptOptionalParamsLanguageDetectionOptions":{"type":"object","properties":{"expected_languages":{"type":"array","items":{"type":"string"},"description":"List of languages expected in the audio file. Defaults to `[\"all\"]` when unspecified. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details."},"fallback_language":{"type":"string","default":"auto","description":"If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `[\"auto\"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.\n"},"code_switching":{"type":"boolean","default":false,"description":"Whether [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) should be detected.\n"},"code_switching_confidence_threshold":{"type":"number","format":"double","default":0.3,"description":"The confidence threshold for [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.\n"}},"description":"Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection).","title":"TranscriptOptionalParamsLanguageDetectionOptions"},"TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod":{"type":"string","enum":["silence"],"description":"Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep.","title":"TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod"},"TranscriptOptionalParamsRedactPiiAudioOptions":{"type":"object","properties":{"return_redacted_no_speech_audio":{"type":"boolean","default":false,"description":"By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`."},"override_audio_redaction_method":{"$ref":"#/components/schemas/TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod","description":"Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep."}},"description":"Specify options for [PII redacted audio](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) files.","title":"TranscriptOptionalParamsRedactPiiAudioOptions"},"RedactPiiAudioQuality":{"type":"string","enum":["mp3","wav"],"description":"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.","title":"RedactPiiAudioQuality"},"PiiPolicy":{"type":"string","enum":["account_number","banking_information","blood_type","credit_card_cvv","credit_card_expiration","credit_card_number","date","date_interval","date_of_birth","drivers_license","drug","duration","email_address","event","filename","gender","gender_sexuality","healthcare_number","injury","ip_address","language","location","location_address","location_address_street","location_city","location_coordinate","location_country","location_state","location_zip","marital_status","medical_condition","medical_process","money_amount","nationality","number_sequence","occupation","organization","organization_medical_facility","passport_number","password","person_age","person_name","phone_number","physical_attribute","political_affiliation","religion","sexuality","statistics","time","url","us_social_security_number","username","vehicle_id","zodiac_sign"],"description":"The type of PII to redact. See [PII redaction](https://www.assemblyai.com/docs/streaming/pii-redaction) for the full list of policies and their descriptions.","title":"PiiPolicy"},"SubstitutionPolicy":{"type":"string","enum":["entity_name","hash"],"description":"The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/streaming/pii-redaction) for more details.","title":"SubstitutionPolicy"},"TranscriptOptionalParamsSpeakerOptions":{"type":"object","properties":{"min_speakers_expected":{"type":"integer","default":1,"description":"The minimum number of speakers expected in the audio file. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details."},"max_speakers_expected":{"type":"integer","description":"Setting this parameter too high may hurt model accuracy\nThe maximum number of speakers expected in the audio file. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details.\n"}},"description":"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.","title":"TranscriptOptionalParamsSpeakerOptions"},"SpeechModel":{"type":"string","description":"The speech model to use for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models.","title":"SpeechModel"},"TranslationRequestBodyTranslation":{"type":"object","properties":{"target_languages":{"type":"array","items":{"type":"string"},"description":"List of target language codes (e.g., `[\"es\", \"de\"]`). See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for supported languages."},"formal":{"type":"boolean","default":true,"description":"Use formal language style. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details."},"match_original_utterance":{"type":"boolean","default":false,"description":"When enabled with Speaker Labels, returns translated text in the utterances array. Each utterance will include a `translated_texts` key containing translations for each target language."}},"required":["target_languages"],"title":"TranslationRequestBodyTranslation"},"TranslationRequestBody":{"type":"object","properties":{"translation":{"$ref":"#/components/schemas/TranslationRequestBodyTranslation"}},"required":["translation"],"description":"Request body for [Translation](https://www.assemblyai.com/docs/speech-understanding/translation).","title":"TranslationRequestBody"},"SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType":{"type":"string","enum":["role","name"],"description":"Type of speaker identification. See [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) for details on each type.","title":"SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType"},"SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems":{"type":"object","properties":{"role":{"type":"string","description":"The role of the speaker. Required when `speaker_type` is \"role\"."},"name":{"type":"string","description":"The name of the speaker. Required when `speaker_type` is \"name\"."},"description":{"type":"string","description":"A description of the speaker to help the model identify them based on conversational context."}},"title":"SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems"},"SpeakerIdentificationRequestBodySpeakerIdentification":{"type":"object","properties":{"speaker_type":{"$ref":"#/components/schemas/SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType","description":"Type of speaker identification. See [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) for details on each type."},"known_values":{"type":"array","items":{"type":"string"},"description":"Required if speaker_type is \"role\". Each value must be 35 characters or less."},"speakers":{"type":"array","items":{"$ref":"#/components/schemas/SpeakerIdentificationRequestBodySpeakerIdentificationSpeakersItems"},"description":"An array of speaker objects with metadata to improve identification accuracy. Each object should include a `role` or `name` (depending on `speaker_type`) and an optional `description` to help the model identify the speaker. You can also include any additional custom properties (e.g., `company`, `title`) to provide more context. Use this as an alternative to `known_values` when you want to provide additional context about each speaker."}},"required":["speaker_type"],"title":"SpeakerIdentificationRequestBodySpeakerIdentification"},"SpeakerIdentificationRequestBody":{"type":"object","properties":{"speaker_identification":{"$ref":"#/components/schemas/SpeakerIdentificationRequestBodySpeakerIdentification"}},"required":["speaker_identification"],"description":"Request body for [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification).","title":"SpeakerIdentificationRequestBody"},"CustomFormattingRequestBodyCustomFormatting":{"type":"object","properties":{"date":{"type":"string","description":"Date format pattern (e.g., `\"mm/dd/yyyy\"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details."},"phone_number":{"type":"string","description":"Phone number format pattern (e.g., `\"(xxx)xxx-xxxx\"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details."},"email":{"type":"string","description":"Email format pattern (e.g., `\"username@domain.com\"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details."}},"title":"CustomFormattingRequestBodyCustomFormatting"},"CustomFormattingRequestBody":{"type":"object","properties":{"custom_formatting":{"$ref":"#/components/schemas/CustomFormattingRequestBodyCustomFormatting"}},"required":["custom_formatting"],"description":"Request body for [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting).","title":"CustomFormattingRequestBody"},"TranscriptOptionalParamsSpeechUnderstandingRequest":{"oneOf":[{"$ref":"#/components/schemas/TranslationRequestBody"},{"$ref":"#/components/schemas/SpeakerIdentificationRequestBody"},{"$ref":"#/components/schemas/CustomFormattingRequestBody"}],"title":"TranscriptOptionalParamsSpeechUnderstandingRequest"},"TranscriptOptionalParamsSpeechUnderstanding":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/TranscriptOptionalParamsSpeechUnderstandingRequest"}},"required":["request"],"description":"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.\n","title":"TranscriptOptionalParamsSpeechUnderstanding"},"SummaryModel":{"type":"string","enum":["informative","conversational","catchy"],"description":"The model to summarize the transcript","title":"SummaryModel"},"SummaryType":{"type":"string","enum":["bullets","bullets_verbose","gist","headline","paragraph"],"description":"The type of summary","title":"SummaryType"},"TranscriptOptionalParamsRemoveAudioTags":{"type":"string","enum":["all","speaker"],"description":"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.\n\nNote: This parameter is only supported for the Universal-3 Pro model.\n","title":"TranscriptOptionalParamsRemoveAudioTags"},"TranscriptParams":{"type":"object","properties":{"audio_end_at":{"type":"integer","description":"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."},"audio_start_from":{"type":"integer","description":"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."},"auto_chapters":{"type":"boolean","default":false,"description":"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.\n\nNote: This parameter is only supported for the Universal-2 model.\n"},"auto_highlights":{"type":"boolean","default":false,"description":"Enable [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights), either true or false"},"content_safety":{"type":"boolean","default":false,"description":"Enable [Content Moderation](https://www.assemblyai.com/docs/content-moderation), can be true or false"},"content_safety_confidence":{"type":"integer","default":50,"description":"The confidence threshold for the [Content Moderation](https://www.assemblyai.com/docs/content-moderation) model. Values must be between 25 and 100."},"custom_spelling":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptCustomSpelling"},"description":"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."},"disfluencies":{"type":"boolean","default":false,"description":"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."},"domain":{"type":["string","null"],"description":"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.\n\nSupported languages: English (`en`), Spanish (`es`), German (`de`), French (`fr`). If used with an unsupported language, the parameter is ignored and a warning is returned.\n"},"entity_detection":{"type":"boolean","default":false,"description":"Enable [Entity Detection](https://www.assemblyai.com/docs/speech-understanding/detect-entities-in-transcript), can be true or false"},"filter_profanity":{"type":"boolean","default":false,"description":"Filter profanity from the transcribed text, can be true or false. See [Profanity Filtering](https://www.assemblyai.com/docs/profanity-filtering) for more details."},"format_text":{"type":"boolean","default":true,"description":"Enable [Text Formatting](https://www.assemblyai.com/docs/pre-recorded-audio), can be true or false"},"iab_categories":{"type":"boolean","default":false,"description":"Enable [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics), can be true or false"},"keyterms_prompt":{"type":"array","items":{"type":"string"},"description":"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.\n"},"language_code":{"oneOf":[{"$ref":"#/components/schemas/TranscriptLanguageCode"},{"type":"null"}],"description":"The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages).\nThe default value is 'en_us'.\n"},"language_codes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TranscriptLanguageCode"},"description":"The language codes of your audio file. Used for [Code switching](/docs/speech-to-text/pre-recorded-audio/code-switching)\nOne of the values specified must be `en`.\n"},"language_confidence_threshold":{"type":"number","format":"double","description":"The confidence threshold for the automatically detected language.\nAn error will be returned if the language confidence is below this threshold.\nDefaults to 0. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.\n"},"language_detection":{"type":"boolean","default":false,"description":"Enable [Automatic language detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection), either true or false."},"language_detection_options":{"$ref":"#/components/schemas/TranscriptOptionalParamsLanguageDetectionOptions","description":"Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection)."},"multichannel":{"type":"boolean","default":false,"description":"Enable [Multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) transcription, can be true or false."},"prompt":{"type":"string","description":"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.\n\nNote: This parameter is only supported for the Universal-3 Pro model.\n"},"punctuate":{"type":"boolean","default":true,"description":"Enable [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio), can be true or false"},"redact_pii":{"type":"boolean","default":false,"description":"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."},"redact_pii_audio":{"type":"boolean","default":false,"description":"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."},"redact_pii_audio_options":{"$ref":"#/components/schemas/TranscriptOptionalParamsRedactPiiAudioOptions","description":"Specify options for [PII redacted audio](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) files."},"redact_pii_audio_quality":{"$ref":"#/components/schemas/RedactPiiAudioQuality","description":"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."},"redact_pii_policies":{"type":"array","items":{"$ref":"#/components/schemas/PiiPolicy"},"description":"The list of PII Redaction policies to enable. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details."},"redact_pii_sub":{"oneOf":[{"$ref":"#/components/schemas/SubstitutionPolicy"},{"type":"null"}],"description":"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."},"redact_pii_return_unredacted":{"type":"boolean","default":false,"description":"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.\n\nWhen 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.\n"},"sentiment_analysis":{"type":"boolean","default":false,"description":"Enable [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/analyze-sentiment-of-speech), can be true or false"},"speaker_labels":{"type":"boolean","default":false,"description":"Enable [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers), can be true or false"},"speaker_options":{"$ref":"#/components/schemas/TranscriptOptionalParamsSpeakerOptions","description":"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."},"speakers_expected":{"type":["integer","null"],"description":"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."},"speech_models":{"type":"array","items":{"$ref":"#/components/schemas/SpeechModel"},"description":"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.\n"},"speech_threshold":{"type":["number","null"],"format":"double","description":"Reject audio files that contain less than this fraction of speech.\nValid values are in the range [0, 1] inclusive. See [Speech Threshold](https://www.assemblyai.com/docs/speech-threshold) for more details.\n"},"speech_understanding":{"$ref":"#/components/schemas/TranscriptOptionalParamsSpeechUnderstanding","description":"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.\n"},"summarization":{"type":"boolean","default":false,"description":"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.\n\nNote: This parameter is only supported for the Universal-2 model.\n"},"summary_model":{"$ref":"#/components/schemas/SummaryModel","description":"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."},"summary_type":{"$ref":"#/components/schemas/SummaryType","description":"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."},"remove_audio_tags":{"oneOf":[{"$ref":"#/components/schemas/TranscriptOptionalParamsRemoveAudioTags"},{"type":"null"}],"description":"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.\n\nNote: This parameter is only supported for the Universal-3 Pro model.\n"},"temperature":{"type":"number","format":"double","default":0,"description":"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.\n\nNote: This parameter can only be used with the Universal-3 Pro model.\n"},"webhook_auth_header_name":{"type":["string","null"],"description":"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"},"webhook_auth_header_value":{"type":["string","null"],"description":"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"},"webhook_url":{"type":"string","format":"url","description":"The URL to which we send [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests.\n"},"custom_topics":{"type":"boolean","default":false,"description":"This parameter does not currently have any functionality attached to it."},"speech_model":{"oneOf":[{"$ref":"#/components/schemas/SpeechModel"},{"type":"null"}],"description":"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).\n"},"topics":{"type":"array","items":{"type":"string"},"description":"This parameter does not currently have any functionality attached to it."},"audio_url":{"type":"string","format":"url","description":"The URL of the audio or video file to transcribe."}},"required":["speech_models","audio_url"],"description":"The parameters for creating a transcript","title":"TranscriptParams"},"AudioIntelligenceModelStatus":{"type":"string","enum":["success","unavailable"],"description":"Either success, or unavailable in the rare case that the model failed","title":"AudioIntelligenceModelStatus"},"Timestamp":{"type":"object","properties":{"start":{"type":"integer","description":"The start time in milliseconds"},"end":{"type":"integer","description":"The end time in milliseconds"}},"required":["start","end"],"description":"Timestamp containing a start and end property in milliseconds","title":"Timestamp"},"AutoHighlightResult":{"type":"object","properties":{"count":{"type":"integer","description":"The total number of times the key phrase appears in the audio file"},"rank":{"type":"number","format":"double","description":"The total relevancy to the overall audio file of this key phrase - a greater number means more relevant"},"text":{"type":"string","description":"The text itself of the key phrase"},"timestamps":{"type":"array","items":{"$ref":"#/components/schemas/Timestamp"},"description":"The timestamp of the of the key phrase"}},"required":["count","rank","text","timestamps"],"title":"AutoHighlightResult"},"AutoHighlightsResult":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/AudioIntelligenceModelStatus","description":"The status of the Key Phrases model. Either success, or unavailable in the rare case that the model failed."},"results":{"type":"array","items":{"$ref":"#/components/schemas/AutoHighlightResult"},"description":"A temporally-sequential array of Key Phrases"}},"required":["status","results"],"description":"An array of results for the Key Phrases model, if it is enabled.\nSee [Key phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights) for more information.\n","title":"AutoHighlightsResult"},"Chapter":{"type":"object","properties":{"gist":{"type":"string","description":"An ultra-short summary (just a few words) of the content spoken in the chapter"},"headline":{"type":"string","description":"A single sentence summary of the content spoken during the chapter"},"summary":{"type":"string","description":"A one paragraph summary of the content spoken during the chapter"},"start":{"type":"integer","description":"The starting time, in milliseconds, for the chapter"},"end":{"type":"integer","description":"The starting time, in milliseconds, for the chapter"}},"required":["gist","headline","summary","start","end"],"description":"Chapter of the audio file","title":"Chapter"},"ContentSafetyLabel":{"type":"object","properties":{"label":{"type":"string","description":"The label of the sensitive topic"},"confidence":{"type":"number","format":"double","description":"The confidence score for the topic being discussed, from 0 to 1"},"severity":{"type":"number","format":"double","description":"How severely the topic is discussed in the section, from 0 to 1"}},"required":["label","confidence","severity"],"title":"ContentSafetyLabel"},"ContentSafetyLabelResult":{"type":"object","properties":{"text":{"type":"string","description":"The transcript of the section flagged by the Content Moderation model"},"labels":{"type":"array","items":{"$ref":"#/components/schemas/ContentSafetyLabel"},"description":"An array of safety labels, one per sensitive topic that was detected in the section"},"sentences_idx_start":{"type":"integer","description":"The sentence index at which the section begins"},"sentences_idx_end":{"type":"integer","description":"The sentence index at which the section ends"},"timestamp":{"$ref":"#/components/schemas/Timestamp","description":"Timestamp information for the section"}},"required":["text","labels","sentences_idx_start","sentences_idx_end","timestamp"],"title":"ContentSafetyLabelResult"},"SeverityScoreSummary":{"type":"object","properties":{"low":{"type":"number","format":"double"},"medium":{"type":"number","format":"double"},"high":{"type":"number","format":"double"}},"required":["low","medium","high"],"title":"SeverityScoreSummary"},"ContentSafetyLabelsResult":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/AudioIntelligenceModelStatus","description":"The status of the Content Moderation model. Either success, or unavailable in the rare case that the model failed."},"results":{"type":"array","items":{"$ref":"#/components/schemas/ContentSafetyLabelResult"},"description":"An array of results for the Content Moderation model"},"summary":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"A summary of the Content Moderation confidence results for the entire audio file"},"severity_score_summary":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/SeverityScoreSummary"},"description":"A summary of the Content Moderation severity results for the entire audio file"}},"required":["status","results","summary","severity_score_summary"],"description":"An array of results for the Content Moderation model, if it is enabled.\nSee [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information.\n","title":"ContentSafetyLabelsResult"},"EntityType":{"type":"string","enum":["account_number","banking_information","blood_type","credit_card_cvv","credit_card_expiration","credit_card_number","date","date_interval","date_of_birth","drivers_license","drug","duration","email_address","event","filename","gender","gender_sexuality","healthcare_number","injury","ip_address","language","location","location_address","location_address_street","location_city","location_coordinate","location_country","location_state","location_zip","marital_status","medical_condition","medical_process","money_amount","nationality","number_sequence","occupation","organization","organization_medical_facility","passport_number","password","person_age","person_name","phone_number","physical_attribute","political_affiliation","religion","sexuality","statistics","time","url","us_social_security_number","username","vehicle_id","zodiac_sign"],"description":"The type of entity for the detected entity","title":"EntityType"},"Entity":{"type":"object","properties":{"entity_type":{"$ref":"#/components/schemas/EntityType","description":"The type of entity for the detected entity"},"text":{"type":"string","description":"The text for the detected entity"},"start":{"type":"integer","description":"The starting time, in milliseconds, at which the detected entity appears in the audio file"},"end":{"type":"integer","description":"The ending time, in milliseconds, for the detected entity in the audio file"}},"required":["entity_type","text","start","end"],"description":"A detected entity","title":"Entity"},"TopicDetectionResultLabelsItems":{"type":"object","properties":{"relevance":{"type":"number","format":"double","description":"How relevant the detected topic is of a detected topic"},"label":{"type":"string","description":"The IAB taxonomical label for the label of the detected topic, where > denotes supertopic/subtopic relationship"}},"required":["relevance","label"],"title":"TopicDetectionResultLabelsItems"},"TopicDetectionResult":{"type":"object","properties":{"text":{"type":"string","description":"The text in the transcript in which a detected topic occurs"},"labels":{"type":"array","items":{"$ref":"#/components/schemas/TopicDetectionResultLabelsItems"},"description":"An array of detected topics in the text"},"timestamp":{"$ref":"#/components/schemas/Timestamp"}},"required":["text"],"description":"The result of the topic detection model","title":"TopicDetectionResult"},"TopicDetectionModelResult":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/AudioIntelligenceModelStatus","description":"The status of the Topic Detection model. Either success, or unavailable in the rare case that the model failed."},"results":{"type":"array","items":{"$ref":"#/components/schemas/TopicDetectionResult"},"description":"An array of results for the Topic Detection model"},"summary":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"The overall relevance of topic to the entire audio file"}},"required":["status","results","summary"],"description":"The result of the Topic Detection model, if it is enabled.\nSee [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics) for more information.\n","title":"TopicDetectionModelResult"},"TranscriptLanguageDetectionOptions":{"type":"object","properties":{"expected_languages":{"type":"array","items":{"type":"string"},"description":"List of languages expected in the audio file. Defaults to `[\"all\"]` when unspecified. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details."},"fallback_language":{"type":"string","default":"auto","description":"If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `[\"auto\"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.\n"},"code_switching":{"type":"boolean","default":false,"description":"Whether [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) should be detected.\n"},"code_switching_confidence_threshold":{"type":"number","format":"double","default":0.3,"description":"The confidence threshold for [code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.\n"}},"description":"Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection).","title":"TranscriptLanguageDetectionOptions"},"TranscriptWarning":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable description of the warning."}},"required":["message"],"description":"A warning message emitted while processing a transcription request. Warnings are surfaced on the transcript response under `metadata.warnings`.\n","title":"TranscriptWarning"},"TranscriptMetadata":{"type":"object","properties":{"domain_used":{"type":["string","null"],"description":"The domain-specific model that was applied to the transcription (for example, `\"medical-v1\"` when [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) was applied), or `null` if no domain-specific model was used. Always present when `metadata` is present.\n"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptWarning"},"description":"Warning messages emitted while processing the request. Each warning is an object with a human-readable `message`. When there are no warnings to report, this field is omitted from the `metadata` object entirely.\n"}},"description":"Additional metadata about the transcription returned on the `Transcript` object under `metadata`. Only present when there is information to report — when all of its fields would be empty, the `metadata` object is omitted from the response entirely.\n","title":"TranscriptMetadata"},"TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod":{"type":"string","enum":["silence"],"description":"Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep.","title":"TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod"},"TranscriptRedactPiiAudioOptions":{"type":"object","properties":{"return_redacted_no_speech_audio":{"type":"boolean","default":false,"description":"By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`."},"override_audio_redaction_method":{"$ref":"#/components/schemas/TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod","description":"Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep."}},"description":"The options for PII-redacted audio, if redact_pii_audio is enabled.\nSee [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information.\n","title":"TranscriptRedactPiiAudioOptions"},"Sentiment":{"type":"string","enum":["POSITIVE","NEUTRAL","NEGATIVE"],"title":"Sentiment"},"SentimentAnalysisResult":{"type":"object","properties":{"text":{"type":"string","description":"The transcript of the sentence"},"start":{"type":"integer","description":"The starting time, in milliseconds, of the sentence"},"end":{"type":"integer","description":"The ending time, in milliseconds, of the sentence"},"sentiment":{"$ref":"#/components/schemas/Sentiment","description":"The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE"},"confidence":{"type":"number","format":"double","description":"The confidence score for the detected sentiment of the sentence, from 0 to 1"},"channel":{"type":["string","null"],"description":"The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially."},"speaker":{"type":["string","null"],"description":"The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null"}},"required":["text","start","end","sentiment","confidence","speaker"],"description":"The result of the Sentiment Analysis model","title":"SentimentAnalysisResult"},"TranscriptSpeechUnderstandingRequest":{"oneOf":[{"$ref":"#/components/schemas/TranslationRequestBody"},{"$ref":"#/components/schemas/SpeakerIdentificationRequestBody"},{"$ref":"#/components/schemas/CustomFormattingRequestBody"}],"title":"TranscriptSpeechUnderstandingRequest"},"TranslationResponseTranslation":{"type":"object","properties":{"status":{"type":"string"}},"title":"TranslationResponseTranslation"},"TranslationResponse":{"type":"object","properties":{"translation":{"$ref":"#/components/schemas/TranslationResponseTranslation"}},"title":"TranslationResponse"},"SpeakerIdentificationResponseSpeakerIdentification":{"type":"object","properties":{"mapping":{"type":"object","additionalProperties":{"type":"string"},"description":"A mapping of the original generic speaker labels (e.g., \"A\", \"B\") to the identified speaker names or roles."},"status":{"type":"string"}},"title":"SpeakerIdentificationResponseSpeakerIdentification"},"SpeakerIdentificationResponse":{"type":"object","properties":{"speaker_identification":{"$ref":"#/components/schemas/SpeakerIdentificationResponseSpeakerIdentification"}},"title":"SpeakerIdentificationResponse"},"CustomFormattingResponseCustomFormatting":{"type":"object","properties":{"mapping":{"type":"object","additionalProperties":{"type":"string"}},"formatted_text":{"type":"string"}},"title":"CustomFormattingResponseCustomFormatting"},"CustomFormattingResponse":{"type":"object","properties":{"custom_formatting":{"$ref":"#/components/schemas/CustomFormattingResponseCustomFormatting"}},"title":"CustomFormattingResponse"},"TranscriptSpeechUnderstandingResponse":{"oneOf":[{"$ref":"#/components/schemas/TranslationResponse"},{"$ref":"#/components/schemas/SpeakerIdentificationResponse"},{"$ref":"#/components/schemas/CustomFormattingResponse"}],"title":"TranscriptSpeechUnderstandingResponse"},"TranscriptSpeechUnderstanding":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/TranscriptSpeechUnderstandingRequest"},"response":{"$ref":"#/components/schemas/TranscriptSpeechUnderstandingResponse"}},"description":"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.\n","title":"TranscriptSpeechUnderstanding"},"TranscriptStatus":{"type":"string","enum":["queued","processing","completed","error"],"description":"The status of your transcript. Possible values are queued, processing, completed, or error.","title":"TranscriptStatus"},"TranscriptRemoveAudioTags":{"type":"string","enum":["all","speaker"],"description":"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.\n\nNote: This parameter is only supported for the Universal-3 Pro model.\n","title":"TranscriptRemoveAudioTags"},"TranscriptWord":{"type":"object","properties":{"confidence":{"type":"number","format":"double","description":"The confidence score for the transcript of this word"},"start":{"type":"integer","description":"The starting time, in milliseconds, for the word"},"end":{"type":"integer","description":"The ending time, in milliseconds, for the word"},"text":{"type":"string","description":"The text of the word"},"channel":{"type":["string","null"],"description":"The channel of the word. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially."},"speaker":{"type":["string","null"],"description":"The speaker of the word if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null"}},"required":["confidence","start","end","text","speaker"],"title":"TranscriptWord"},"TranscriptUtterance":{"type":"object","properties":{"confidence":{"type":"number","format":"double","description":"The confidence score for the transcript of this utterance"},"start":{"type":"integer","description":"The starting time, in milliseconds, of the utterance in the audio file"},"end":{"type":"integer","description":"The ending time, in milliseconds, of the utterance in the audio file"},"text":{"type":"string","description":"The text for this utterance"},"words":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptWord"},"description":"The words in the utterance."},"channel":{"type":["string","null"],"description":"The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially."},"speaker":{"type":"string","description":"The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. \"A\" for Speaker A, \"B\" for Speaker B, etc."},"translated_texts":{"type":"object","additionalProperties":{"type":"string"},"description":"Translations keyed by language code (e.g., `{\"es\": \"Texto traducido\", \"de\": \"Übersetzter Text\"}`). Only present when `match_original_utterance` is enabled with translation."}},"required":["confidence","start","end","text","words","speaker"],"title":"TranscriptUtterance"},"TranscriptTranslatedTexts":{"type":"object","properties":{"language_code":{"type":"string","description":"Translated text for this language code"}},"description":"Translated text keyed by language code. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details.","title":"TranscriptTranslatedTexts"},"Transcript":{"type":"object","properties":{"audio_channels":{"type":"integer","description":"The number of audio channels in the audio file. This is only present when [multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) is enabled."},"audio_duration":{"type":["integer","null"],"description":"The duration of this transcript object's media file, in seconds"},"audio_end_at":{"type":["integer","null"],"description":"The point in time, in milliseconds, in the file at which the transcription was terminated. 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."},"audio_start_from":{"type":["integer","null"],"description":"The point in time, in milliseconds, in the file at which the transcription was started. 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."},"audio_url":{"type":"string","format":"url","description":"The URL of the media that was transcribed"},"auto_chapters":{"type":["boolean","null"],"description":"Whether [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/create-summarized-chapters) is enabled, 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.\n\nNote: This parameter is only supported for the Universal-2 model.\n"},"auto_highlights":{"type":"boolean","description":"Whether [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights) is enabled, either true or false"},"auto_highlights_result":{"oneOf":[{"$ref":"#/components/schemas/AutoHighlightsResult"},{"type":"null"}],"description":"An array of results for the Key Phrases model, if it is enabled.\nSee [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/identify-highlights) for more information.\n"},"chapters":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Chapter"},"description":"An array of temporally sequential chapters for the audio file. See [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/create-summarized-chapters) for more information."},"confidence":{"type":["number","null"],"format":"double","description":"The confidence score for the transcript, between 0.0 (low confidence) and 1.0 (high confidence)"},"content_safety":{"type":["boolean","null"],"description":"Whether [Content Moderation](https://www.assemblyai.com/docs/content-moderation) is enabled, can be true or false"},"content_safety_labels":{"oneOf":[{"$ref":"#/components/schemas/ContentSafetyLabelsResult"},{"type":"null"}],"description":"An array of results for the Content Moderation model, if it is enabled.\nSee [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information.\n"},"custom_spelling":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TranscriptCustomSpelling"},"description":"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."},"disfluencies":{"type":["boolean","null"],"description":"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."},"domain":{"type":["string","null"],"description":"The domain-specific model applied to the transcript. When set to `\"medical-v1\"`, [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) was used to improve accuracy for medical terminology.\n"},"entities":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Entity"},"description":"An array of results for the Entity Detection model, if it is enabled.\nSee [Entity detection](https://www.assemblyai.com/docs/speech-understanding/detect-entities-in-transcript) for more information.\n"},"entity_detection":{"type":["boolean","null"],"description":"Whether [Entity Detection](https://www.assemblyai.com/docs/speech-understanding/detect-entities-in-transcript) is enabled, can be true or false"},"error":{"type":"string","description":"Error message of why the transcript failed"},"filter_profanity":{"type":["boolean","null"],"description":"Whether [Profanity Filtering](https://www.assemblyai.com/docs/profanity-filtering) is enabled, either true or false"},"format_text":{"type":["boolean","null"],"description":"Whether [Text Formatting](https://www.assemblyai.com/docs/pre-recorded-audio) is enabled, either true or false"},"iab_categories":{"type":["boolean","null"],"description":"Whether [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics) is enabled, can be true or false"},"iab_categories_result":{"oneOf":[{"$ref":"#/components/schemas/TopicDetectionModelResult"},{"type":"null"}],"description":"The result of the Topic Detection model, if it is enabled.\nSee [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/detect-discussion-topics) for more information.\n"},"id":{"type":"string","format":"uuid","description":"The unique identifier of your transcript"},"keyterms_prompt":{"type":"array","items":{"type":"string"},"description":"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.\n"},"language_code":{"$ref":"#/components/schemas/TranscriptLanguageCode","description":"The language of your audio file.\nPossible values are found in [Supported Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages).\nThe default value is 'en_us'.\n"},"language_codes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TranscriptLanguageCode"},"description":"The language codes of your audio file. Used for [Code switching](/docs/speech-to-text/pre-recorded-audio/code-switching)\nOne of the values specified must be `en`.\n"},"language_confidence":{"type":["number","null"],"format":"double","description":"The confidence score for the detected language, between 0.0 (low confidence) and 1.0 (high confidence). See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details."},"language_confidence_threshold":{"type":["number","null"],"format":"double","description":"The confidence threshold for the automatically detected language.\nAn error will be returned if the language confidence is below this threshold.\nSee [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.\n"},"language_detection":{"type":["boolean","null"],"description":"Whether [Automatic language detection](/docs/pre-recorded-audio/automatic-language-detection) is enabled, either true or false"},"language_detection_options":{"$ref":"#/components/schemas/TranscriptLanguageDetectionOptions","description":"Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection)."},"metadata":{"oneOf":[{"$ref":"#/components/schemas/TranscriptMetadata"},{"type":"null"}],"description":"Additional metadata about the transcription, including any warnings emitted while processing the request. Only present when there is information to report; if no fields would be populated, `metadata` is omitted from the response entirely.\n"},"multichannel":{"type":["boolean","null"],"description":"Whether [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) was enabled in the transcription request, either true or false"},"prompt":{"type":"string","description":"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.\n\nNote: This parameter is only supported for the Universal-3 Pro model.\n"},"punctuate":{"type":["boolean","null"],"description":"Whether [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio) is enabled, either true or false"},"redact_pii":{"type":"boolean","description":"Whether [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) is enabled, either true or false"},"redact_pii_audio":{"type":["boolean","null"],"description":"Whether a redacted version of the audio file was generated,\neither true or false. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information.\n"},"redact_pii_audio_options":{"$ref":"#/components/schemas/TranscriptRedactPiiAudioOptions","description":"The options for PII-redacted audio, if redact_pii_audio is enabled.\nSee [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information.\n"},"redact_pii_audio_quality":{"oneOf":[{"$ref":"#/components/schemas/RedactPiiAudioQuality"},{"type":"null"}],"description":"The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled.\nSee [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information.\n"},"redact_pii_policies":{"type":["array","null"],"items":{"$ref":"#/components/schemas/PiiPolicy"},"description":"The list of PII Redaction policies that were enabled, if PII Redaction is enabled.\nSee [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information.\n"},"redact_pii_sub":{"$ref":"#/components/schemas/SubstitutionPolicy","description":"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."},"redact_pii_return_unredacted":{"type":["boolean","null"],"description":"Whether the original unredacted transcript was also returned alongside the redacted one. When `true`, the response includes `unredacted_text`, `unredacted_words`, and `unredacted_utterances`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information.\n"},"sentiment_analysis":{"type":["boolean","null"],"description":"Whether [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/analyze-sentiment-of-speech) is enabled, can be true or false"},"sentiment_analysis_results":{"type":["array","null"],"items":{"$ref":"#/components/schemas/SentimentAnalysisResult"},"description":"An array of results for the Sentiment Analysis model, if it is enabled.\nSee [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/analyze-sentiment-of-speech) for more information.\n"},"speaker_labels":{"type":["boolean","null"],"description":"Whether [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, can be true or false"},"speakers_expected":{"type":["integer","null"],"description":"Tell 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."},"speech_model_used":{"$ref":"#/components/schemas/SpeechModel","description":"The speech model that was actually used for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models."},"speech_models":{"type":["array","null"],"items":{"$ref":"#/components/schemas/SpeechModel"},"description":"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.\n"},"speech_threshold":{"type":["number","null"],"format":"double","description":"Defaults to null. Reject audio files that contain less than this fraction of speech.\nValid values are in the range [0, 1] inclusive. See [Speech Threshold](https://www.assemblyai.com/docs/speech-threshold) for more details.\n"},"speech_understanding":{"$ref":"#/components/schemas/TranscriptSpeechUnderstanding","description":"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.\n"},"status":{"$ref":"#/components/schemas/TranscriptStatus","description":"The status of your transcript. Possible values are queued, processing, completed, or error."},"summarization":{"type":"boolean","description":"Whether [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled, either 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.\n\nNote: This parameter is only supported for the Universal-2 model.\n"},"summary":{"type":["string","null"],"description":"The generated summary of the media file, if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled. 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."},"summary_model":{"type":["string","null"],"description":"The Summarization model used to generate the summary,\nif [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled. 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.\n"},"summary_type":{"type":["string","null"],"description":"The type of summary generated, if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarize-transcripts) is enabled. 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."},"remove_audio_tags":{"oneOf":[{"$ref":"#/components/schemas/TranscriptRemoveAudioTags"},{"type":"null"}],"description":"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.\n\nNote: This parameter is only supported for the Universal-3 Pro model.\n"},"temperature":{"type":["number","null"],"format":"double","description":"The temperature that was used for the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.\n\nNote: This parameter can only be used with the Universal-3 Pro model.\n"},"text":{"type":["string","null"],"description":"The textual transcript of your media file"},"unredacted_text":{"type":["string","null"],"description":"The original textual transcript of your media file before PII redaction was applied. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `text` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information.\n"},"throttled":{"type":["boolean","null"],"description":"True while a request is throttled and false when a request is no longer throttled"},"utterances":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TranscriptUtterance"},"description":"When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.\nSee [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) and [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) for more information.\n"},"unredacted_utterances":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TranscriptUtterance"},"description":"The original turn-by-turn utterance objects before PII redaction was applied. Same shape as `utterances`. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `utterances` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information.\n"},"webhook_auth":{"type":"boolean","description":"Whether [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) authentication details were provided"},"webhook_auth_header_name":{"type":["string","null"],"description":"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"},"webhook_status_code":{"type":["integer","null"],"description":"The status code we received from your server when delivering the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) request, if a webhook URL was provided"},"webhook_url":{"type":["string","null"],"format":"url","description":"The URL to which we send [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests.\n"},"words":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TranscriptWord"},"description":"An array of temporally-sequential word objects, one for each word in the transcript.\n"},"unredacted_words":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TranscriptWord"},"description":"The original temporally-sequential word objects before PII redaction was applied. Same shape as `words`. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `words` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information.\n"},"acoustic_model":{"type":"string","description":"This parameter does not currently have any functionality attached to it."},"custom_topics":{"type":["boolean","null"],"description":"This parameter does not currently have any functionality attached to it."},"language_model":{"type":"string","description":"This parameter does not currently have any functionality attached to it."},"speech_model":{"oneOf":[{"$ref":"#/components/schemas/SpeechModel"},{"type":"null"}],"description":"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).\n"},"speed_boost":{"type":["boolean","null"],"description":"This parameter does not currently have any functionality attached to it."},"topics":{"type":"array","items":{"type":"string"},"description":"This parameter does not currently have any functionality attached to it."},"translated_texts":{"$ref":"#/components/schemas/TranscriptTranslatedTexts","description":"Translated text keyed by language code. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details."}},"required":["audio_url","auto_highlights","id","language_confidence","language_confidence_threshold","redact_pii","status","summarization","webhook_auth","acoustic_model","language_model","speech_model"],"description":"A transcript object","title":"Transcript"},"TranscriptSentence":{"type":"object","properties":{"text":{"type":"string","description":"The transcript of the sentence"},"start":{"type":"integer","description":"The starting time, in milliseconds, for the sentence"},"end":{"type":"integer","description":"The ending time, in milliseconds, for the sentence"},"confidence":{"type":"number","format":"double","description":"The confidence score for the transcript of this sentence"},"words":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptWord"},"description":"An array of words in the sentence"},"channel":{"type":["string","null"],"description":"The channel of the sentence. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially."},"speaker":{"type":["string","null"],"description":"The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null"}},"required":["text","start","end","confidence","words","speaker"],"title":"TranscriptSentence"},"SentencesResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the transcript"},"confidence":{"type":"number","format":"double","description":"The confidence score for the transcript"},"audio_duration":{"type":"number","format":"double","description":"The duration of the audio file in seconds"},"sentences":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptSentence"},"description":"An array of sentences in the transcript"}},"required":["id","confidence","audio_duration","sentences"],"title":"SentencesResponse"},"TranscriptParagraph":{"type":"object","properties":{"text":{"type":"string","description":"The transcript of the paragraph"},"start":{"type":"integer","description":"The starting time, in milliseconds, of the paragraph"},"end":{"type":"integer","description":"The ending time, in milliseconds, of the paragraph"},"confidence":{"type":"number","format":"double","description":"The confidence score for the transcript of this paragraph"},"words":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptWord"},"description":"An array of words in the paragraph"}},"required":["text","start","end","confidence","words"],"title":"TranscriptParagraph"},"ParagraphsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier of your transcript"},"confidence":{"type":"number","format":"double","description":"The confidence score for the transcript"},"audio_duration":{"type":"number","format":"double","description":"The duration of the audio file in seconds"},"paragraphs":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptParagraph"},"description":"An array of paragraphs in the transcript"}},"required":["id","confidence","audio_duration","paragraphs"],"title":"ParagraphsResponse"},"SubtitleFormat":{"type":"string","enum":["srt","vtt"],"description":"Format of the subtitles","title":"SubtitleFormat"},"RedactedAudioStatus":{"type":"string","enum":["redacted_audio_ready"],"description":"The status of the redacted audio","title":"RedactedAudioStatus"},"RedactedAudioResponse":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/RedactedAudioStatus","description":"The status of the redacted audio"},"redacted_audio_url":{"type":"string","format":"url","description":"The URL of the redacted audio file"}},"required":["status","redacted_audio_url"],"title":"RedactedAudioResponse"},"WordSearchTimestamp":{"type":"array","items":{"type":"integer"},"description":"An array of timestamps structured as [`start_time`, `end_time`] in milliseconds","title":"WordSearchTimestamp"},"WordSearchMatch":{"type":"object","properties":{"text":{"type":"string","description":"The matched word"},"count":{"type":"integer","description":"The total amount of times the word is in the transcript"},"timestamps":{"type":"array","items":{"$ref":"#/components/schemas/WordSearchTimestamp"},"description":"An array of timestamps"},"indexes":{"type":"array","items":{"type":"integer"},"description":"An array of all index locations for that word within the `words` array of the completed transcript"}},"required":["text","count","timestamps","indexes"],"title":"WordSearchMatch"},"WordSearchResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the transcript"},"total_count":{"type":"integer","description":"The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times, `total_count` will equal 5."},"matches":{"type":"array","items":{"$ref":"#/components/schemas/WordSearchMatch"},"description":"The matches of the search"}},"required":["id","total_count","matches"],"title":"WordSearchResponse"},"PageDetails":{"type":"object","properties":{"limit":{"type":"integer","description":"The number of results this page is limited to"},"result_count":{"type":"integer","description":"The actual number of results in the page"},"current_url":{"type":"string","format":"url","description":"The URL used to retrieve the current page of transcripts"},"prev_url":{"type":["string","null"],"format":"url","description":"The URL to the next page of transcripts. The previous URL always points to a page with older transcripts."},"next_url":{"type":["string","null"],"format":"url","description":"The URL to the next page of transcripts. The next URL always points to a page with newer transcripts."}},"required":["limit","result_count","current_url","prev_url","next_url"],"description":"Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.","title":"PageDetails"},"TranscriptListItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the transcript"},"resource_url":{"type":"string","format":"url","description":"The URL to retrieve the transcript"},"status":{"$ref":"#/components/schemas/TranscriptStatus","description":"The status of the transcript"},"created":{"type":"string","format":"date-time","description":"The date and time the transcript was created"},"completed":{"type":"string","format":"date-time","description":"The date and time the transcript was completed"},"audio_url":{"type":"string","format":"url","description":"The URL to the audio file"},"error":{"type":["string","null"],"description":"Error message of why the transcript failed"}},"required":["id","resource_url","status","created","audio_url","error"],"title":"TranscriptListItem"},"TranscriptList":{"type":"object","properties":{"page_details":{"$ref":"#/components/schemas/PageDetails","description":"Details of the transcript page"},"transcripts":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptListItem"},"description":"An array of transcripts"}},"required":["page_details","transcripts"],"description":"A list of transcripts. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.","title":"TranscriptList"},"UserAssistantSystemMessageRole":{"type":"string","enum":["user","assistant","system"],"title":"UserAssistantSystemMessageRole"},"ContentPart":{"description":"Any type","title":"ContentPart"},"UserAssistantSystemMessageContent1":{"type":"array","items":{"$ref":"#/components/schemas/ContentPart"},"title":"UserAssistantSystemMessageContent1"},"UserAssistantSystemMessageContent":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/UserAssistantSystemMessageContent1"}],"description":"The content of the message. Can be a string or an array of content parts (for user messages).","title":"UserAssistantSystemMessageContent"},"ToolMessageRole":{"type":"string","enum":["tool"],"title":"ToolMessageRole"},"Message":{"oneOf":[{"type":"object","properties":{"role":{"$ref":"#/components/schemas/UserAssistantSystemMessageRole"},"content":{"$ref":"#/components/schemas/UserAssistantSystemMessageContent","description":"The content of the message. Can be a string or an array of content parts (for user messages)."},"name":{"type":"string","description":"An optional name for the participant."}},"required":["role","content"],"description":"user variant"},{"type":"object","properties":{"role":{"$ref":"#/components/schemas/UserAssistantSystemMessageRole"},"content":{"$ref":"#/components/schemas/UserAssistantSystemMessageContent","description":"The content of the message. Can be a string or an array of content parts (for user messages)."},"name":{"type":"string","description":"An optional name for the participant."}},"required":["role","content"],"description":"assistant variant"},{"type":"object","properties":{"role":{"$ref":"#/components/schemas/UserAssistantSystemMessageRole"},"content":{"$ref":"#/components/schemas/UserAssistantSystemMessageContent","description":"The content of the message. Can be a string or an array of content parts (for user messages)."},"name":{"type":"string","description":"An optional name for the participant."}},"required":["role","content"],"description":"system variant"},{"type":"object","properties":{"role":{"$ref":"#/components/schemas/ToolMessageRole"},"content":{"type":"string","description":"The result of the tool call."},"tool_call_id":{"type":"string","description":"The ID of the tool call that this message is responding to."}},"required":["role","content","tool_call_id"],"description":"tool variant"}],"discriminator":{"propertyName":"role"},"title":"Message"},"ToolType":{"type":"string","enum":["function"],"title":"ToolType"},"FunctionDescription":{"type":"object","properties":{"name":{"type":"string","description":"The name of the function to be called."},"description":{"type":"string","description":"A description of what the function does."},"parameters":{"type":"object","additionalProperties":{"description":"Any type"},"description":"A JSON Schema object describing the parameters the function accepts."}},"required":["name","parameters"],"title":"FunctionDescription"},"Tool":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ToolType"},"function":{"$ref":"#/components/schemas/FunctionDescription"}},"required":["type","function"],"title":"Tool"},"ToolChoice0":{"type":"string","enum":["none","auto"],"title":"ToolChoice0"},"ToolChoiceOneOf1Type":{"type":"string","enum":["function"],"title":"ToolChoiceOneOf1Type"},"ToolChoiceOneOf1Function":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"title":"ToolChoiceOneOf1Function"},"ToolChoice1":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ToolChoiceOneOf1Type"},"function":{"$ref":"#/components/schemas/ToolChoiceOneOf1Function"}},"required":["type","function"],"title":"ToolChoice1"},"ToolChoice":{"oneOf":[{"$ref":"#/components/schemas/ToolChoice0"},{"$ref":"#/components/schemas/ToolChoice1"}],"description":"Controls which (if any) function is called by the model.","title":"ToolChoice"},"ResponseFormatType":{"type":"string","enum":["json_schema"],"description":"The type of response format. Use `json_schema` for structured outputs.","title":"ResponseFormatType"},"JsonSchemaConfig":{"type":"object","properties":{"name":{"type":"string","description":"A name for the schema. Used for identification purposes."},"schema":{"type":"object","additionalProperties":{"description":"Any type"},"description":"A valid JSON Schema object that defines the structure of the expected response."},"strict":{"type":"boolean","default":false,"description":"When `true`, the model will strictly adhere to the schema. Recommended for reliable parsing."}},"required":["name","schema"],"description":"Configuration for JSON schema-based structured outputs.","title":"JsonSchemaConfig"},"ResponseFormat":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ResponseFormatType","description":"The type of response format. Use `json_schema` for structured outputs."},"json_schema":{"$ref":"#/components/schemas/JsonSchemaConfig","description":"The JSON schema configuration object."}},"required":["type","json_schema"],"description":"Specifies the format of the model's response. Use `json_schema` type to constrain the model to output valid JSON matching a schema.","title":"ResponseFormat"},"FallbackObject":{"type":"object","properties":{"model":{"type":"string","description":"The fallback model to use. See [LLM Gateway Overview](https://www.assemblyai.com/docs/llm-gateway/overview#available-models) for available models."},"messages":{"type":"array","items":{"$ref":"#/components/schemas/Message"},"description":"Override the messages for the fallback request."},"max_tokens":{"type":"integer","description":"Override the maximum number of tokens to generate in the fallback completion."},"temperature":{"type":"number","format":"double","description":"Override the temperature for the fallback request."}},"required":["model"],"description":"A fallback model configuration. Each object must include a `model` and can optionally override any field from the original request. Fields not specified in the fallback inherit the values from the original request. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details.","title":"FallbackObject"},"FallbackConfig":{"type":"object","properties":{"retry":{"type":"boolean","default":true,"description":"Whether to automatically retry the request once after 500ms on failure. Defaults to `true`."},"depth":{"type":"integer","default":1,"description":"The maximum number of fallbacks to traverse. Defaults to `1`, with a maximum of `2`."}},"description":"Configuration for fallback behavior. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details.","title":"FallbackConfig"},"ReasoningEffort":{"type":"string","enum":["low","medium","high"],"description":"The reasoning effort level. Most models support this parameter. Valid values are `low`, `medium`, and `high`.","title":"ReasoningEffort"},"Reasoning":{"type":"object","properties":{"effort":{"$ref":"#/components/schemas/ReasoningEffort","description":"The reasoning effort level. Most models support this parameter. Valid values are `low`, `medium`, and `high`."},"max_tokens":{"type":"integer","description":"The maximum number of tokens the model can use for internal reasoning."}},"description":"Controls reasoning behavior for supported models. Supported on OpenAI-compatible models, Gemini 3+ models, and Anthropic models.","title":"Reasoning"},"PostProcessingStepType":{"type":"string","enum":["json-repair"],"description":"The type of post-processing to apply. Currently `json-repair` is supported.","title":"PostProcessingStepType"},"PostProcessingStep":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/PostProcessingStepType","description":"The type of post-processing to apply. Currently `json-repair` is supported."}},"required":["type"],"description":"A single post-processing operation to apply to the model's response.","title":"PostProcessingStep"},"LLMGatewayRequest":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/Message"},"description":"A list of messages comprising the conversation so far."},"prompt":{"type":"string","description":"A simple string prompt. The API will automatically convert this into a user message."},"transcript_id":{"type":"string","description":"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.\n"},"model":{"type":"string","description":"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."},"max_tokens":{"type":"integer","default":1000,"description":"The maximum number of tokens to generate in the completion. Default is 1000."},"temperature":{"type":"number","format":"double","description":"Controls randomness. Lower values produce more deterministic results."},"stream":{"type":"boolean","default":false,"description":"When true, responses are streamed as server-sent events (SSE). Supported on OpenAI models only."},"tools":{"type":"array","items":{"$ref":"#/components/schemas/Tool"},"description":"A list of tools the model may call."},"tool_choice":{"$ref":"#/components/schemas/ToolChoice"},"response_format":{"$ref":"#/components/schemas/ResponseFormat","description":"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."},"fallbacks":{"type":"array","items":{"$ref":"#/components/schemas/FallbackObject"},"description":"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."},"fallback_config":{"$ref":"#/components/schemas/FallbackConfig","description":"Configuration for fallback behavior, including retry and depth settings. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details."},"reasoning":{"$ref":"#/components/schemas/Reasoning","description":"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.\n"},"post_processing_steps":{"type":"array","items":{"$ref":"#/components/schemas/PostProcessingStep"},"description":"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.\n"}},"required":["model"],"description":"The main request body for the chat completions endpoint.","title":"LLMGatewayRequest"},"FunctionToolCallType":{"type":"string","enum":["function"],"title":"FunctionToolCallType"},"FunctionCall":{"type":"object","properties":{"name":{"type":"string"},"arguments":{"type":"string","description":"The arguments to call the function with, as a JSON-formatted string."}},"required":["name","arguments"],"title":"FunctionCall"},"FunctionToolCall":{"type":"object","properties":{"id":{"type":"string"},"type":{"$ref":"#/components/schemas/FunctionToolCallType"},"function":{"$ref":"#/components/schemas/FunctionCall"}},"required":["id","type","function"],"title":"FunctionToolCall"},"ResponseMessage":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"],"description":"The text content of the model's response. Null or empty when the model is only emitting tool_calls."},"tool_calls":{"type":"array","items":{"$ref":"#/components/schemas/FunctionToolCall"}}},"title":"ResponseMessage"},"Choice":{"type":"object","properties":{"message":{"$ref":"#/components/schemas/ResponseMessage"},"finish_reason":{"type":"string","description":"The reason the model stopped generating tokens."}},"title":"Choice"},"ResponseRequest":{"type":"object","properties":{"model":{"type":"string"},"max_tokens":{"type":"integer"},"temperature":{"type":"number","format":"double"},"tools":{"type":"array","items":{"$ref":"#/components/schemas/Tool"}},"tool_choice":{"$ref":"#/components/schemas/ToolChoice"}},"description":"A copy of the original request, excluding `prompt` and `messages`.","title":"ResponseRequest"},"Usage":{"type":"object","properties":{"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}},"required":["input_tokens","output_tokens","total_tokens"],"title":"Usage"},"Response":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"choices":{"type":"array","items":{"$ref":"#/components/schemas/Choice"}},"request":{"$ref":"#/components/schemas/ResponseRequest","description":"A copy of the original request, excluding `prompt` and `messages`."},"usage":{"$ref":"#/components/schemas/Usage"},"http_status_code":{"type":"integer","description":"The HTTP status code of the response"},"response_time":{"type":"integer","description":"The response time in nanoseconds"},"llm_status_code":{"type":"integer","description":"The status code from the LLM provider"}},"title":"Response"},"UnderstandingRequestSpeechUnderstandingRequest":{"oneOf":[{"$ref":"#/components/schemas/TranslationRequestBody"},{"$ref":"#/components/schemas/SpeakerIdentificationRequestBody"},{"$ref":"#/components/schemas/CustomFormattingRequestBody"}],"title":"UnderstandingRequestSpeechUnderstandingRequest"},"UnderstandingRequestSpeechUnderstanding":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/UnderstandingRequestSpeechUnderstandingRequest"}},"required":["request"],"description":"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.","title":"UnderstandingRequestSpeechUnderstanding"},"UnderstandingRequest":{"type":"object","properties":{"transcript_id":{"type":"string","description":"The ID of the transcript to process."},"speech_understanding":{"$ref":"#/components/schemas/UnderstandingRequestSpeechUnderstanding","description":"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."}},"required":["transcript_id","speech_understanding"],"title":"UnderstandingRequest"},"LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation":{"type":"object","properties":{"status":{"type":"string"}},"title":"LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation"},"LlmGatewayTranslationResponseSpeechUnderstandingResponse":{"type":"object","properties":{"translation":{"$ref":"#/components/schemas/LlmGatewayTranslationResponseSpeechUnderstandingResponseTranslation"}},"title":"LlmGatewayTranslationResponseSpeechUnderstandingResponse"},"LlmGatewayTranslationResponseSpeechUnderstanding":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/TranslationRequestBody"},"response":{"$ref":"#/components/schemas/LlmGatewayTranslationResponseSpeechUnderstandingResponse"}},"title":"LlmGatewayTranslationResponseSpeechUnderstanding"},"LlmGatewayTranslationResponseUtterancesItems":{"type":"object","properties":{"translated_texts":{"type":"object","additionalProperties":{"type":"string"},"description":"Translations keyed by language code (e.g., `{\"es\": \"Texto traducido\", \"de\": \"Übersetzter Text\"}`). Only present when `match_original_utterance` is enabled."}},"title":"LlmGatewayTranslationResponseUtterancesItems"},"LlmGatewayTranslationResponseWordsItems":{"type":"object","properties":{},"title":"LlmGatewayTranslationResponseWordsItems"},"LLMGatewayTranslationResponse":{"type":"object","properties":{"speech_understanding":{"$ref":"#/components/schemas/LlmGatewayTranslationResponseSpeechUnderstanding"},"translated_texts":{"type":"object","additionalProperties":{"type":"string"},"description":"Translated text keyed by language code (e.g., `{\"es\": \"Texto traducido\"}`)"},"utterances":{"type":"array","items":{"$ref":"#/components/schemas/LlmGatewayTranslationResponseUtterancesItems"},"description":"Array of utterances with translations (when `match_original_utterance` is true)"},"words":{"type":"array","items":{"$ref":"#/components/schemas/LlmGatewayTranslationResponseWordsItems"}}},"title":"LLMGatewayTranslationResponse"},"LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification":{"type":"object","properties":{"mapping":{"type":"object","additionalProperties":{"type":"string"},"description":"A mapping of the original generic speaker labels (e.g., \"A\", \"B\") to the identified speaker names or roles."},"status":{"type":"string"}},"required":["status"],"title":"LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification"},"LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse":{"type":"object","properties":{"speaker_identification":{"$ref":"#/components/schemas/LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponseSpeakerIdentification"}},"title":"LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse"},"LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/SpeakerIdentificationRequestBody"},"response":{"$ref":"#/components/schemas/LlmGatewaySpeakerIdentificationResponseSpeechUnderstandingResponse"}},"title":"LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding"},"LlmGatewaySpeakerIdentificationResponseUtterancesItems":{"type":"object","properties":{},"title":"LlmGatewaySpeakerIdentificationResponseUtterancesItems"},"LlmGatewaySpeakerIdentificationResponseWordsItems":{"type":"object","properties":{},"title":"LlmGatewaySpeakerIdentificationResponseWordsItems"},"LLMGatewaySpeakerIdentificationResponse":{"type":"object","properties":{"speech_understanding":{"$ref":"#/components/schemas/LlmGatewaySpeakerIdentificationResponseSpeechUnderstanding"},"utterances":{"type":"array","items":{"$ref":"#/components/schemas/LlmGatewaySpeakerIdentificationResponseUtterancesItems"}},"words":{"type":"array","items":{"$ref":"#/components/schemas/LlmGatewaySpeakerIdentificationResponseWordsItems"}}},"title":"LLMGatewaySpeakerIdentificationResponse"},"LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems":{"type":"object","properties":{},"title":"LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems"},"LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting":{"type":"object","properties":{"mapping":{"type":"object","additionalProperties":{"type":"string"}},"formatted_text":{"type":"string"},"formatted_utterances":{"type":"array","items":{"$ref":"#/components/schemas/LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormattingFormattedUtterancesItems"},"description":"Array of formatted utterances. Only included when utterances exist and formatting was applied."},"status":{"type":"string"}},"required":["mapping","status"],"title":"LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting"},"LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse":{"type":"object","properties":{"custom_formatting":{"$ref":"#/components/schemas/LlmGatewayCustomFormattingResponseSpeechUnderstandingResponseCustomFormatting"}},"title":"LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse"},"LlmGatewayCustomFormattingResponseSpeechUnderstanding":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/CustomFormattingRequestBody"},"response":{"$ref":"#/components/schemas/LlmGatewayCustomFormattingResponseSpeechUnderstandingResponse"}},"title":"LlmGatewayCustomFormattingResponseSpeechUnderstanding"},"LlmGatewayCustomFormattingResponseUtterancesItems":{"type":"object","properties":{},"title":"LlmGatewayCustomFormattingResponseUtterancesItems"},"LLMGatewayCustomFormattingResponse":{"type":"object","properties":{"speech_understanding":{"$ref":"#/components/schemas/LlmGatewayCustomFormattingResponseSpeechUnderstanding"},"utterances":{"type":"array","items":{"$ref":"#/components/schemas/LlmGatewayCustomFormattingResponseUtterancesItems"}}},"title":"LLMGatewayCustomFormattingResponse"},"createSpeechUnderstanding_Response_200":{"oneOf":[{"$ref":"#/components/schemas/LLMGatewayTranslationResponse"},{"$ref":"#/components/schemas/LLMGatewaySpeakerIdentificationResponse"},{"$ref":"#/components/schemas/LLMGatewayCustomFormattingResponse"}],"title":"createSpeechUnderstanding_Response_200"},"Streaming API_generateStreamingToken_Response_200":{"type":"object","properties":{"token":{"type":"string","description":"The temporary authentication token"},"expires_in_seconds":{"type":"integer","description":"The token redemption window in seconds — the time the client has to use this token to open a WebSocket before it expires unused. This is not the session duration; see `max_session_duration_seconds` for that.\n"}},"required":["token","expires_in_seconds"],"title":"Streaming API_generateStreamingToken_Response_200"},"Voice Agent API_generateVoiceAgentToken_Response_200":{"type":"object","properties":{"token":{"type":"string","description":"The temporary authentication token. Pass as the `token` query parameter when opening the WebSocket."},"expires_in_seconds":{"type":"integer","description":"The token redemption window in seconds — the time the client has to use this token to open a WebSocket before it expires unused. This is not the session duration; see `max_session_duration_seconds` for that."}},"required":["token","expires_in_seconds"],"title":"Voice Agent API_generateVoiceAgentToken_Response_200"}},"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization"}}}} \ No newline at end of file +{ + "openapi": "3.1.0", + "info": { + "title": "OpenAPI Plant Store", + "description": "A sample API that uses a plant store as an example to demonstrate features in the OpenAPI specification", + "license": { + "name": "MIT" + }, + "version": "1.0.0" + }, + "servers": [ + { + "url": "http://sandbox.mintlify.com" + } + ], + "security": [ + { + "bearerAuth": [] + } + ], + "paths": { + "/plants": { + "get": { + "description": "Returns all plants from the system that the user has access to", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The maximum number of results to return", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Plant response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Plant" + } + } + } + } + }, + "400": { + "description": "Unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "post": { + "description": "Creates a new plant in the store", + "requestBody": { + "description": "Plant to add to the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewPlant" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "plant response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Plant" + } + } + } + }, + "400": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/plants/{id}": { + "delete": { + "description": "Deletes a single plant based on the ID supplied", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "ID of plant to delete", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "204": { + "description": "Plant deleted", + "content": {} + }, + "400": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + } + }, + "webhooks": { + "/plant/webhook": { + "post": { + "description": "Information about a new plant added to the store", + "requestBody": { + "description": "Plant added to the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewPlant" + } + } + } + }, + "responses": { + "200": { + "description": "Return a 200 status to indicate that the data was received successfully" + } + } + } + } + }, + "components": { + "schemas": { + "Plant": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "description": "The name of the plant", + "type": "string" + }, + "tag": { + "description": "Tag to specify the type", + "type": "string" + } + } + }, + "NewPlant": { + "allOf": [ + { + "$ref": "#/components/schemas/Plant" + }, + { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "description": "Identification number of the plant", + "type": "integer", + "format": "int64" + } + } + } + ] + }, + "Error": { + "required": [ + "error", + "message" + ], + "type": "object", + "properties": { + "error": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + } + } + } + }, + "securitySchemes": { + "bearerAuth": { + "type": "http", + "scheme": "bearer" + } + } + } +} \ No newline at end of file