From b7c0cd36381a8286f22f27e38596d64e06865d40 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Mar 2026 15:58:08 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/AssemblyAI.Models.PageDetails.g.cs | 10 ++++------ .../AssemblyAI.Models.SentimentAnalysisResult.g.cs | 9 ++++----- .../Generated/AssemblyAI.Models.Transcript.g.cs | 14 ++++++-------- .../AssemblyAI.Models.TranscriptListItem.g.cs | 12 +++++------- .../AssemblyAI.Models.TranscriptSentence.g.cs | 9 ++++----- .../AssemblyAI.Models.TranscriptWord.g.cs | 9 ++++----- 6 files changed, 27 insertions(+), 36 deletions(-) diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs index 514a70d..d63f6ca 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs @@ -34,15 +34,13 @@ public sealed partial class PageDetails /// 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")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string? PrevUrl { get; set; } + 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")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string? NextUrl { get; set; } + public string? NextUrl { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -81,8 +79,8 @@ public PageDetails( this.Limit = limit; this.ResultCount = resultCount; this.CurrentUrl = currentUrl ?? throw new global::System.ArgumentNullException(nameof(currentUrl)); - this.PrevUrl = prevUrl ?? throw new global::System.ArgumentNullException(nameof(prevUrl)); - this.NextUrl = nextUrl ?? throw new global::System.ArgumentNullException(nameof(nextUrl)); + this.PrevUrl = prevUrl; + this.NextUrl = nextUrl; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs index 7bf2717..f7b075d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs @@ -55,8 +55,7 @@ public sealed partial class SentimentAnalysisResult /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/speaker-diarization) is enabled, else null /// [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string? Speaker { get; set; } + public string? Speaker { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -97,16 +96,16 @@ public SentimentAnalysisResult( int end, global::AssemblyAI.Sentiment sentiment, double confidence, - string? speaker, - string? channel) + 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.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); this.Channel = channel; + this.Speaker = speaker; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs index de01f3d..4a9a99f 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs @@ -179,8 +179,7 @@ public sealed partial class Transcript /// 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")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double? LanguageConfidence { get; set; } + public double? LanguageConfidence { get; set; } /// /// The confidence threshold for the automatically detected language.
@@ -188,8 +187,7 @@ public sealed partial class Transcript /// 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")] - [global::System.Text.Json.Serialization.JsonRequired] - public required float? LanguageConfidenceThreshold { get; set; } + public float? LanguageConfidenceThreshold { get; set; } /// /// Whether [Automatic language detection](/docs/pre-recorded-audio/automatic-language-detection) is enabled, either true or false @@ -671,8 +669,6 @@ public Transcript( string audioUrl, bool autoHighlights, global::System.Guid id, - double? languageConfidence, - float? languageConfidenceThreshold, bool redactPii, global::AssemblyAI.TranscriptStatus status, bool summarization, @@ -702,6 +698,8 @@ public Transcript( global::System.Collections.Generic.IList? keytermsPrompt, global::AssemblyAI.AnyOf? languageCode, global::System.Collections.Generic.IList? languageCodes, + double? languageConfidence, + float? languageConfidenceThreshold, bool? languageDetection, global::AssemblyAI.TranscriptLanguageDetectionOptions? languageDetectionOptions, bool? multichannel, @@ -735,8 +733,6 @@ public Transcript( this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); this.AutoHighlights = autoHighlights; this.Id = id; - this.LanguageConfidence = languageConfidence; - this.LanguageConfidenceThreshold = languageConfidenceThreshold; this.RedactPii = redactPii; this.Status = status; this.Summarization = summarization; @@ -766,6 +762,8 @@ public Transcript( this.KeytermsPrompt = keytermsPrompt; this.LanguageCode = languageCode; this.LanguageCodes = languageCodes; + this.LanguageConfidence = languageConfidence; + this.LanguageConfidenceThreshold = languageConfidenceThreshold; this.LanguageDetection = languageDetection; this.LanguageDetectionOptions = languageDetectionOptions; this.Multichannel = multichannel; diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs index c08b22b..f0cb577 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs @@ -41,8 +41,7 @@ public sealed partial class TranscriptListItem /// The date and time the transcript was completed /// [global::System.Text.Json.Serialization.JsonPropertyName("completed")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string? Completed { get; set; } + public string? Completed { get; set; } /// /// The URL to the audio file @@ -55,8 +54,7 @@ public sealed partial class TranscriptListItem /// Error message of why the transcript failed /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string? Error { get; set; } + public string? Error { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -96,17 +94,17 @@ public TranscriptListItem( string resourceUrl, global::AssemblyAI.TranscriptStatus status, string created, - string? completed, string audioUrl, + string? completed, string? error) { this.Id = id; this.ResourceUrl = resourceUrl ?? throw new global::System.ArgumentNullException(nameof(resourceUrl)); this.Status = status; this.Created = created ?? throw new global::System.ArgumentNullException(nameof(created)); - this.Completed = completed ?? throw new global::System.ArgumentNullException(nameof(completed)); this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); - this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Completed = completed; + this.Error = error; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs index dd6bf6f..7d570e4 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs @@ -53,8 +53,7 @@ public sealed partial class TranscriptSentence /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/speaker-diarization) is enabled, else null /// [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string? Speaker { get; set; } + public string? Speaker { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -95,16 +94,16 @@ public TranscriptSentence( int end, double confidence, global::System.Collections.Generic.IList words, - string? speaker, - string? channel) + 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.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); this.Channel = channel; + this.Speaker = speaker; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs index b670cdd..7f4fb99 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs @@ -46,8 +46,7 @@ public sealed partial class TranscriptWord /// The speaker of the word if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/speaker-diarization) is enabled, else null /// [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string? Speaker { get; set; } + public string? Speaker { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -84,15 +83,15 @@ public TranscriptWord( int start, int end, string text, - string? speaker, - string? channel) + string? channel, + string? speaker) { this.Confidence = confidence; this.Start = start; this.End = end; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); this.Channel = channel; + this.Speaker = speaker; } ///