Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
[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; }

/// <summary>
/// The URL to the next page of transcripts. The next URL always points to a page with newer transcripts.
/// </summary>
[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; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("speaker")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string? Speaker { get; set; }
public string? Speaker { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand Down
14 changes: 6 additions & 8 deletions src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,15 @@ 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.
/// </summary>
[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; }

/// <summary>
/// The confidence threshold for the automatically detected language.<br/>
/// An error will be returned if the language confidence is below this threshold.<br/>
/// See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
/// </summary>
[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; }

/// <summary>
/// Whether [Automatic language detection](/docs/pre-recorded-audio/automatic-language-detection) is enabled, either true or false
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -702,6 +698,8 @@ public Transcript(
global::System.Collections.Generic.IList<string>? keytermsPrompt,
global::AssemblyAI.AnyOf<global::AssemblyAI.TranscriptLanguageCode?, string>? languageCode,
global::System.Collections.Generic.IList<global::AssemblyAI.TranscriptLanguageCode>? languageCodes,
double? languageConfidence,
float? languageConfidenceThreshold,
bool? languageDetection,
global::AssemblyAI.TranscriptLanguageDetectionOptions? languageDetectionOptions,
bool? multichannel,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public sealed partial class TranscriptListItem
/// The date and time the transcript was completed
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("completed")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string? Completed { get; set; }
public string? Completed { get; set; }

/// <summary>
/// The URL to the audio file
Expand All @@ -55,8 +54,7 @@ public sealed partial class TranscriptListItem
/// Error message of why the transcript failed
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("error")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string? Error { get; set; }
public string? Error { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("speaker")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string? Speaker { get; set; }
public string? Speaker { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down Expand Up @@ -95,16 +94,16 @@ public TranscriptSentence(
int end,
double confidence,
global::System.Collections.Generic.IList<global::AssemblyAI.TranscriptWord> 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;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("speaker")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string? Speaker { get; set; }
public string? Speaker { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand Down
Loading