diff --git a/src/libs/AssemblyAI/Generated/AnyOf.2.g.cs b/src/libs/AssemblyAI/Generated/AnyOf.2.g.cs
index ef82785..9292be2 100644
--- a/src/libs/AssemblyAI/Generated/AnyOf.2.g.cs
+++ b/src/libs/AssemblyAI/Generated/AnyOf.2.g.cs
@@ -28,37 +28,36 @@ namespace AssemblyAI
///
///
///
- public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value);
+#if NET6_0_OR_GREATER
+ public T2? Value2 { get; init; }
+#else
+ public T2? Value2 { get; }
+#endif
///
///
///
- public static implicit operator T1?(AnyOf @this) => @this.Value1;
-
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
+#endif
+ public bool IsValue2 => Value2 != null;
///
///
///
- public AnyOf(T1? value)
- {
- Value1 = value;
- }
+ public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value);
///
///
///
-#if NET6_0_OR_GREATER
- public T2? Value2 { get; init; }
-#else
- public T2? Value2 { get; }
-#endif
+ public static implicit operator T1?(AnyOf @this) => @this.Value1;
///
///
///
-#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
-#endif
- public bool IsValue2 => Value2 != null;
+ public AnyOf(T1? value)
+ {
+ Value1 = value;
+ }
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI..JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI..JsonSerializerContext.g.cs
index 05cf247..751cdfc 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI..JsonSerializerContext.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI..JsonSerializerContext.g.cs
@@ -13,57 +13,67 @@ namespace AssemblyAI
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters = new global::System.Type[]
{
- typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.EntityTypeJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.EntityTypeNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.ErrorStatusJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.ErrorStatusNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.LemurModelJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.LemurModelNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.TranscriptStatusJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.TranscriptStatusNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.PiiPolicyJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.PiiPolicyNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.RedactPiiAudioQualityJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.RedactPiiAudioQualityNullableJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.TranscriptReadyStatusJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.TranscriptReadyStatusNullableJsonConverter),
typeof(global::AssemblyAI.JsonConverters.RedactedAudioStatusJsonConverter),
typeof(global::AssemblyAI.JsonConverters.RedactedAudioStatusNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.SentimentJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.SentimentNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.SpeechModelJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.SpeechModelNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.SubstitutionPolicyJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.SubstitutionPolicyNullableJsonConverter),
typeof(global::AssemblyAI.JsonConverters.SubtitleFormatJsonConverter),
typeof(global::AssemblyAI.JsonConverters.SubtitleFormatNullableJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeNullableJsonConverter),
+ 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.TranscriptLanguageCodeJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeNullableJsonConverter),
typeof(global::AssemblyAI.JsonConverters.TranscriptBoostParamJsonConverter),
typeof(global::AssemblyAI.JsonConverters.TranscriptBoostParamNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.TranscriptReadyStatusJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.TranscriptReadyStatusNullableJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.LemurActionItemsParamsJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.LemurActionItemsResponseJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.TranscriptStatusJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.TranscriptStatusNullableJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusNullableJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.EntityTypeJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.EntityTypeNullableJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.SentimentJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.SentimentNullableJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.LemurModelJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.LemurModelNullableJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.TranscriptWebhookNotificationJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.RedactedAudioNotificationJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.TranscriptParamsJsonConverter),
typeof(global::AssemblyAI.JsonConverters.LemurStringResponseJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.LemurQuestionAnswerParamsJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.LemurTaskResponseJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.LemurSummaryResponseJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.LemurActionItemsResponseJsonConverter),
typeof(global::AssemblyAI.JsonConverters.LemurQuestionAnswerResponseJsonConverter),
typeof(global::AssemblyAI.JsonConverters.LemurResponseJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.LemurSummaryParamsJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.LemurSummaryResponseJsonConverter),
typeof(global::AssemblyAI.JsonConverters.LemurTaskParamsJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.LemurTaskResponseJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.RedactedAudioNotificationJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.TranscriptParamsJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.TranscriptWebhookNotificationJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.LemurSummaryParamsJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.LemurQuestionAnswerParamsJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.LemurActionItemsParamsJsonConverter),
+ typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter?, object>),
+ typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter),
+ 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.AnyOfJsonConverter),
+ 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.AnyOfJsonConverter),
typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter),
- typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter),
typeof(global::AssemblyAI.JsonConverters.UnixTimestampJsonConverter),
})]
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.g.cs
index 5652db3..292ff43 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.AssemblyAIClient.g.cs
@@ -46,15 +46,6 @@ public sealed partial class AssemblyAIClient : global::AssemblyAI.IAssemblyAICli
JsonSerializerContext = JsonSerializerContext,
};
- ///
- /// LeMUR related operations
- ///
- public LeMURClient LeMUR => new LeMURClient(HttpClient, authorizations: Authorizations)
- {
- ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
- };
-
///
/// Streaming Speech-to-Text
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs
index a677a5f..00e92c7 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.IAssemblyAIClient.g.cs
@@ -42,11 +42,6 @@ public partial interface IAssemblyAIClient : global::System.IDisposable
///
public TranscriptClient Transcript { get; }
- ///
- /// LeMUR related operations
- ///
- public LeMURClient LeMUR { get; }
-
///
/// Streaming Speech-to-Text
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.GetLemurResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.GetLemurResponse.g.cs
deleted file mode 100644
index de3f227..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.GetLemurResponse.g.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ILeMURClient
- {
- ///
- /// Retrieve LeMUR response
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Retrieve a LeMUR response that was previously generated.
- ///
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task GetLemurResponseAsync(
- string requestId,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurQuestionAnswer.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurQuestionAnswer.g.cs
deleted file mode 100644
index 5a373b4..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurQuestionAnswer.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ILeMURClient
- {
- ///
- /// Ask questions using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Question & Answer allows you to ask free-form questions about a single transcript or a group of transcripts.
- /// The questions can be any whose answers you find useful, such as judging whether a caller is likely to become a customer or whether all items on a meeting's agenda were covered.
- ///
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task LemurQuestionAnswerAsync(
- global::AssemblyAI.LemurQuestionAnswerParams request,
- global::System.Threading.CancellationToken cancellationToken = default);
-
- ///
- /// Ask questions using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Question & Answer allows you to ask free-form questions about a single transcript or a group of transcripts.
- /// The questions can be any whose answers you find useful, such as judging whether a caller is likely to become a customer or whether all items on a meeting's agenda were covered.
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task LemurQuestionAnswerAsync(
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurSummary.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurSummary.g.cs
deleted file mode 100644
index 82fa978..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurSummary.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ILeMURClient
- {
- ///
- /// Summarize a transcript using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Custom Summary allows you to distill a piece of audio into a few impactful sentences.
- /// You can give the model context to obtain more targeted results while outputting the results in a variety of formats described in human language.
- ///
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task LemurSummaryAsync(
- global::AssemblyAI.LemurSummaryParams request,
- global::System.Threading.CancellationToken cancellationToken = default);
-
- ///
- /// Summarize a transcript using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Custom Summary allows you to distill a piece of audio into a few impactful sentences.
- /// You can give the model context to obtain more targeted results while outputting the results in a variety of formats described in human language.
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task LemurSummaryAsync(
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurTask.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurTask.g.cs
deleted file mode 100644
index e83d258..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurTask.g.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ILeMURClient
- {
- ///
- /// Run a task using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Use the LeMUR task endpoint to input your own LLM prompt.
- ///
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task LemurTaskAsync(
- global::AssemblyAI.LemurTaskParams request,
- global::System.Threading.CancellationToken cancellationToken = default);
-
- ///
- /// Run a task using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Use the LeMUR task endpoint to input your own LLM prompt.
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task LemurTaskAsync(
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.PurgeLemurRequestData.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.PurgeLemurRequestData.g.cs
deleted file mode 100644
index df629f5..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.PurgeLemurRequestData.g.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial interface ILeMURClient
- {
- ///
- /// Purge LeMUR request data
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Delete the data for a previously submitted LeMUR request.
- /// The LLM response data, as well as any context provided in the original request will be removed.
- ///
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task PurgeLemurRequestDataAsync(
- string requestId,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.g.cs
deleted file mode 100644
index 53214ae..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.g.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- ///
- /// LeMUR related operations
- /// 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 ILeMURClient : 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 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.
- ///
- public bool ReadResponseAsString { get; set; }
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.DeleteTranscript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.DeleteTranscript.g.cs
index 0dbca1c..fd68577 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.DeleteTranscript.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.DeleteTranscript.g.cs
@@ -7,7 +7,8 @@ public partial interface ITranscriptClient
///
/// Delete transcript
/// <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.
+ /// 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>
///
///
/// The token to cancel the operation with
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.GetRedactedAudio.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.GetRedactedAudio.g.cs
index ea5e591..aeef174 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.GetRedactedAudio.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.GetRedactedAudio.g.cs
@@ -7,6 +7,7 @@ public partial interface ITranscriptClient
///
/// Get redacted audio
/// <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.
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.ListTranscripts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.ListTranscripts.g.cs
index ab0d5d2..8c9c46d 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.ListTranscripts.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.ListTranscripts.g.cs
@@ -11,23 +11,13 @@ public partial interface ITranscriptClient
/// 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.
///
- ///
///
/// The status of your transcript. Possible values are queued, processing, completed, or error.
///
- ///
- ///
- ///
- ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ListTranscriptsAsync(
- 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::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.UploadFile.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.UploadFile.g.cs
index 0e10dfe..80dc1b6 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.UploadFile.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.UploadFile.g.cs
@@ -6,8 +6,9 @@ public partial interface ITranscriptClient
{
///
/// Upload a media file
+ /// 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>
- /// Upload a media file to AssemblyAI's servers.
+ /// <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>
///
///
/// The token to cancel the operation with
@@ -15,15 +16,5 @@ public partial interface ITranscriptClient
global::System.Threading.Tasks.Task UploadFileAsync(
byte[] request,
global::System.Threading.CancellationToken cancellationToken = default);
-
- ///
- /// Upload a media file
- /// <Note>To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Upload a media file to AssemblyAI's servers.
- ///
- /// The token to cancel the operation with
- ///
- global::System.Threading.Tasks.Task UploadFileAsync(
- global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ErrorStatusNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ErrorStatusNullable.g.cs
deleted file mode 100644
index 6f4256b..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ErrorStatusNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class ErrorStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.ErrorStatus? 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.ErrorStatusExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.ErrorStatus)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.ErrorStatus?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ErrorStatus? 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.ErrorStatusExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf3.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf3.g.cs
new file mode 100644
index 0000000..25f8890
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf3.g.cs
@@ -0,0 +1,111 @@
+#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.");
+
+ var
+ readerCopy = reader;
+ T1? value1 = default;
+ 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(ref readerCopy, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+
+ readerCopy = reader;
+ T2? value2 = default;
+ 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(ref readerCopy, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+
+ readerCopy = reader;
+ T3? value3 = default;
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
+ value3 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+
+ var result = new global::AssemblyAI.OneOf(
+ value1,
+ value2,
+ value3
+ );
+
+ if (value1 != null)
+ {
+ 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.Deserialize(ref reader, typeInfo);
+ }
+ else if (value2 != null)
+ {
+ 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.Deserialize(ref reader, typeInfo);
+ }
+ else if (value3 != null)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
+ _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+
+ return result;
+ }
+
+ ///
+ 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);
+ }
+ else if (value.IsValue3)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ErrorStatus.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs
similarity index 57%
rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ErrorStatus.g.cs
rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs
index 6e93cb8..d118bd7 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ErrorStatus.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs
@@ -3,10 +3,10 @@
namespace AssemblyAI.JsonConverters
{
///
- public sealed class ErrorStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ public sealed class SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
{
///
- public override global::AssemblyAI.ErrorStatus Read(
+ public override global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
@@ -18,7 +18,7 @@ public sealed class ErrorStatusJsonConverter : global::System.Text.Json.Serializ
var stringValue = reader.GetString();
if (stringValue != null)
{
- return global::AssemblyAI.ErrorStatusExtensions.ToEnum(stringValue) ?? default;
+ return global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions.ToEnum(stringValue) ?? default;
}
break;
@@ -26,11 +26,11 @@ public sealed class ErrorStatusJsonConverter : global::System.Text.Json.Serializ
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
- return (global::AssemblyAI.ErrorStatus)numValue;
+ return (global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
- return default(global::AssemblyAI.ErrorStatus);
+ return default(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
@@ -42,12 +42,12 @@ public sealed class ErrorStatusJsonConverter : global::System.Text.Json.Serializ
///
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.ErrorStatus value,
+ global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
- writer.WriteStringValue(global::AssemblyAI.ErrorStatusExtensions.ToValueString(value));
+ writer.WriteStringValue(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions.ToValueString(value));
}
}
}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModelNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullable.g.cs
similarity index 60%
rename from src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModelNullable.g.cs
rename to src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullable.g.cs
index db99566..d4443cd 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModelNullable.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullable.g.cs
@@ -3,10 +3,10 @@
namespace AssemblyAI.JsonConverters
{
///
- public sealed class SpeechModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ public sealed class SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
{
///
- public override global::AssemblyAI.SpeechModel? Read(
+ public override global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
@@ -18,7 +18,7 @@ public sealed class SpeechModelNullableJsonConverter : global::System.Text.Json.
var stringValue = reader.GetString();
if (stringValue != null)
{
- return global::AssemblyAI.SpeechModelExtensions.ToEnum(stringValue);
+ return global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions.ToEnum(stringValue);
}
break;
@@ -26,11 +26,11 @@ public sealed class SpeechModelNullableJsonConverter : global::System.Text.Json.
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
- return (global::AssemblyAI.SpeechModel)numValue;
+ return (global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
- return default(global::AssemblyAI.SpeechModel?);
+ return default(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
@@ -42,7 +42,7 @@ public sealed class SpeechModelNullableJsonConverter : global::System.Text.Json.
///
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SpeechModel? value,
+ global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
@@ -53,7 +53,7 @@ public override void Write(
}
else
{
- writer.WriteStringValue(global::AssemblyAI.SpeechModelExtensions.ToValueString(value.Value));
+ writer.WriteStringValue(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions.ToValueString(value.Value));
}
}
}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel.g.cs
deleted file mode 100644
index fd3a884..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace AssemblyAI.JsonConverters
-{
- ///
- public sealed class SpeechModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::AssemblyAI.SpeechModel 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.SpeechModelExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::AssemblyAI.SpeechModel)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::AssemblyAI.SpeechModel);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::AssemblyAI.SpeechModel value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::AssemblyAI.SpeechModelExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs
index c1df58c..0079e7f 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs
@@ -26,474 +26,570 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::AssemblyAI.AudioIntelligenceModelStatus? Type0 { get; set; }
+ public global::AssemblyAI.TranscriptWebhookNotification? Type0 { get; set; }
///
///
///
- public global::AssemblyAI.AutoHighlightResult? Type1 { get; set; }
+ public global::AssemblyAI.TranscriptReadyNotification? Type1 { get; set; }
///
///
///
- public int? Type2 { get; set; }
+ public global::System.Guid? Type2 { get; set; }
///
///
///
- public float? Type3 { get; set; }
+ public global::AssemblyAI.TranscriptReadyStatus? Type3 { get; set; }
///
///
///
- public string? Type4 { get; set; }
+ public global::AssemblyAI.RedactedAudioNotification? Type4 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type5 { get; set; }
+ public global::AssemblyAI.RedactedAudioResponse? Type5 { get; set; }
///
///
///
- public global::AssemblyAI.Timestamp? Type6 { get; set; }
+ public global::AssemblyAI.RedactedAudioStatus? Type6 { get; set; }
///
///
///
- public global::AssemblyAI.AutoHighlightsResult? Type7 { get; set; }
+ public string? Type7 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type8 { get; set; }
+ public global::AssemblyAI.SubtitleFormat? Type8 { get; set; }
///
///
///
- public global::AssemblyAI.Chapter? Type9 { get; set; }
+ public global::AssemblyAI.WordSearchResponse? Type9 { get; set; }
///
///
///
- public global::AssemblyAI.ContentSafetyLabel? Type10 { get; set; }
+ public int? Type10 { get; set; }
///
///
///
- public double? Type11 { get; set; }
+ public global::System.Collections.Generic.IList? Type11 { get; set; }
///
///
///
- public global::AssemblyAI.ContentSafetyLabelResult? Type12 { get; set; }
+ public global::AssemblyAI.WordSearchMatch? Type12 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type13 { get; set; }
+ public global::System.Collections.Generic.IList>? Type13 { get; set; }
///
///
///
- public global::AssemblyAI.ContentSafetyLabelsResult? Type14 { get; set; }
+ public global::System.Collections.Generic.IList? Type14 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type15 { get; set; }
+ public global::AssemblyAI.Timestamp? Type15 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type16 { get; set; }
+ public global::AssemblyAI.TranscriptOptionalParams? Type16 { get; set; }
///
///
///
- public global::AssemblyAI.SeverityScoreSummary? Type17 { get; set; }
+ public bool? Type17 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type18 { get; set; }
+ public global::System.Collections.Generic.IList? Type18 { get; set; }
///
///
///
- public global::AssemblyAI.CreateRealtimeTemporaryTokenParams? Type19 { get; set; }
+ public global::AssemblyAI.TranscriptCustomSpelling? Type19 { get; set; }
///
///
///
- public global::AssemblyAI.Entity? Type20 { get; set; }
+ public global::System.Collections.Generic.IList? Type20 { get; set; }
///
///
///
- public global::AssemblyAI.EntityType? Type21 { get; set; }
+ public global::AssemblyAI.OneOf?, object>? Type21 { get; set; }
///
///
///
- public global::AssemblyAI.Error? Type22 { get; set; }
+ public global::AssemblyAI.AnyOf? Type22 { get; set; }
///
///
///
- public global::AssemblyAI.ErrorStatus? Type23 { get; set; }
+ public global::AssemblyAI.TranscriptLanguageCode? Type23 { get; set; }
///
///
///
- public global::AssemblyAI.LemurActionItemsParams? Type24 { get; set; }
+ public object? Type24 { get; set; }
///
///
///
- public global::AssemblyAI.LemurBaseParams? Type25 { get; set; }
+ public global::System.Collections.Generic.IList? Type25 { get; set; }
///
///
///
- public global::AssemblyAI.OneOf? Type26 { get; set; }
+ public float? Type26 { get; set; }
///
///
///
- public object? Type27 { get; set; }
+ public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? Type27 { get; set; }
///
///
///
- public global::AssemblyAI.AnyOf? Type28 { get; set; }
+ public double? Type28 { get; set; }
///
///
///
- public global::AssemblyAI.LemurModel? Type29 { get; set; }
+ public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type29 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type30 { get; set; }
+ public global::AssemblyAI.RedactPiiAudioQuality? Type30 { get; set; }
///
///
///
- public global::System.Guid? Type31 { get; set; }
+ public global::System.Collections.Generic.IList? Type31 { get; set; }
///
///
///
- public global::AssemblyAI.LemurActionItemsParamsVariant2? Type32 { get; set; }
+ public global::AssemblyAI.PiiPolicy? Type32 { get; set; }
///
///
///
- public global::AssemblyAI.LemurActionItemsResponse? Type33 { get; set; }
+ public global::AssemblyAI.OneOf? Type33 { get; set; }
///
///
///
- public global::AssemblyAI.LemurStringResponse? Type34 { get; set; }
+ public global::AssemblyAI.SubstitutionPolicy? Type34 { get; set; }
///
///
///
- public global::AssemblyAI.LemurStringResponseVariant1? Type35 { get; set; }
+ public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type35 { get; set; }
///
///
///
- public global::AssemblyAI.LemurBaseResponse? Type36 { get; set; }
+ public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type36 { get; set; }
///
///
///
- public global::AssemblyAI.LemurUsage? Type37 { get; set; }
+ public global::AssemblyAI.OneOf? Type37 { get; set; }
///
///
///
- public global::AssemblyAI.LemurQuestion? Type38 { get; set; }
+ public global::AssemblyAI.TranslationRequestBody? Type38 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type39 { get; set; }
+ public global::AssemblyAI.TranslationRequestBodyTranslation? Type39 { get; set; }
///
///
///
- public global::AssemblyAI.LemurQuestionAnswer? Type40 { get; set; }
+ public global::AssemblyAI.SpeakerIdentificationRequestBody? Type40 { get; set; }
///
///
///
- public global::AssemblyAI.LemurQuestionAnswerParams? Type41 { get; set; }
+ public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type41 { get; set; }
///
///
///
- public global::AssemblyAI.LemurQuestionAnswerParamsVariant2? Type42 { get; set; }
+ public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type42 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type43 { get; set; }
+ public global::AssemblyAI.CustomFormattingRequestBody? Type43 { get; set; }
///
///
///
- public global::AssemblyAI.LemurQuestionAnswerResponse? Type44 { get; set; }
+ public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type44 { get; set; }
///
///
///
- public global::AssemblyAI.LemurQuestionAnswerResponseVariant2? Type45 { get; set; }
+ public global::AssemblyAI.SummaryModel? Type45 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type46 { get; set; }
+ public global::AssemblyAI.SummaryType? Type46 { get; set; }
///
///
///
- public global::AssemblyAI.LemurResponse? Type47 { get; set; }
+ public global::AssemblyAI.OneOf? Type47 { get; set; }
///
///
///
- public global::AssemblyAI.LemurSummaryParams? Type48 { get; set; }
+ public global::AssemblyAI.TranscriptParams? Type48 { get; set; }
///
///
///
- public global::AssemblyAI.LemurSummaryParamsVariant2? Type49 { get; set; }
+ public global::AssemblyAI.TranscriptParamsVariant1? Type49 { get; set; }
///
///
///
- public global::AssemblyAI.LemurSummaryResponse? Type50 { get; set; }
+ public global::AssemblyAI.TranscriptBoostParam? Type50 { get; set; }
///
///
///
- public global::AssemblyAI.LemurTaskParams? Type51 { get; set; }
+ public global::AssemblyAI.TranscriptUtterance? Type51 { get; set; }
///
///
///
- public global::AssemblyAI.LemurTaskParamsVariant1? Type52 { get; set; }
+ public global::System.Collections.Generic.IList? Type52 { get; set; }
///
///
///
- public global::AssemblyAI.LemurTaskResponse? Type53 { get; set; }
+ public global::AssemblyAI.TranscriptWord? Type53 { get; set; }
///
///
///
- public global::AssemblyAI.ListTranscriptParams? Type54 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type54 { get; set; }
///
///
///
- public global::System.DateTime? Type55 { get; set; }
+ public global::AssemblyAI.TranscriptStatus? Type55 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptStatus? Type56 { get; set; }
+ public global::AssemblyAI.Transcript? Type56 { get; set; }
///
///
///
- public bool? Type57 { get; set; }
+ public global::AssemblyAI.OneOf? Type57 { get; set; }
///
///
///
- public global::AssemblyAI.PageDetails? Type58 { get; set; }
+ public global::AssemblyAI.AutoHighlightsResult2? Type58 { get; set; }
///
///
///
- public global::AssemblyAI.ParagraphsResponse? Type59 { get; set; }
+ public global::AssemblyAI.AudioIntelligenceModelStatus? Type59 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type60 { get; set; }
+ public global::System.Collections.Generic.IList? Type60 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptParagraph? Type61 { get; set; }
+ public global::AssemblyAI.AutoHighlightResult? Type61 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type62 { get; set; }
+ public global::System.Collections.Generic.IList? Type62 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptWord? Type63 { get; set; }
+ public global::System.Collections.Generic.IList? Type63 { get; set; }
///
///
///
- public global::AssemblyAI.PiiPolicy? Type64 { get; set; }
+ public global::AssemblyAI.Chapter? Type64 { get; set; }
///
///
///
- public global::AssemblyAI.PurgeLemurRequestDataResponse? Type65 { get; set; }
+ public global::AssemblyAI.OneOf? Type65 { get; set; }
///
///
///
- public global::AssemblyAI.RealtimeTemporaryTokenResponse? Type66 { get; set; }
+ public global::AssemblyAI.ContentSafetyLabelsResult? Type66 { get; set; }
///
///
///
- public global::AssemblyAI.RedactPiiAudioQuality? Type67 { get; set; }
+ public global::System.Collections.Generic.IList? Type67 { get; set; }
///
///
///
- public global::AssemblyAI.RedactedAudioNotification? Type68 { get; set; }
+ public global::AssemblyAI.ContentSafetyLabelResult? Type68 { get; set; }
///
///
///
- public global::AssemblyAI.RedactedAudioResponse? Type69 { get; set; }
+ public global::System.Collections.Generic.IList? Type69 { get; set; }
///
///
///
- public global::AssemblyAI.RedactedAudioStatus? Type70 { get; set; }
+ public global::AssemblyAI.ContentSafetyLabel? Type70 { get; set; }
///
///
///
- public global::AssemblyAI.SentencesResponse? Type71 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type71 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type72 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type72 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptSentence? Type73 { get; set; }
+ public global::AssemblyAI.SeverityScoreSummary? Type73 { get; set; }
///
///
///
- public global::AssemblyAI.Sentiment? Type74 { get; set; }
+ public global::System.Collections.Generic.IList? Type74 { get; set; }
///
///
///
- public global::AssemblyAI.SentimentAnalysisResult? Type75 { get; set; }
+ public global::AssemblyAI.Entity? Type75 { get; set; }
///
///
///
- public global::AssemblyAI.SpeechModel? Type76 { get; set; }
+ public global::AssemblyAI.EntityType? Type76 { get; set; }
///
///
///
- public global::AssemblyAI.SubstitutionPolicy? Type77 { get; set; }
+ public global::AssemblyAI.OneOf? Type77 { get; set; }
///
///
///
- public global::AssemblyAI.SubtitleFormat? Type78 { get; set; }
+ public global::AssemblyAI.TopicDetectionModelResult? Type78 { get; set; }
///
///
///
- public global::AssemblyAI.SummaryModel? Type79 { get; set; }
+ public global::System.Collections.Generic.IList? Type79 { get; set; }
///
///
///
- public global::AssemblyAI.SummaryType? Type80 { get; set; }
+ public global::AssemblyAI.TopicDetectionResult? Type80 { get; set; }
///
///
///
- public global::AssemblyAI.TopicDetectionModelResult? Type81 { get; set; }
+ public global::System.Collections.Generic.IList? Type81 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type82 { get; set; }
+ public global::AssemblyAI.TopicDetectionResultLabel? Type82 { get; set; }
///
///
///
- public global::AssemblyAI.TopicDetectionResult? Type83 { get; set; }
+ public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type83 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type84 { get; set; }
+ public global::AssemblyAI.OneOf? Type84 { get; set; }
///
///
///
- public global::AssemblyAI.TopicDetectionResultLabel? Type85 { get; set; }
+ public global::System.Collections.Generic.IList? Type85 { get; set; }
///
///
///
- public global::AssemblyAI.Transcript? Type86 { get; set; }
+ public global::AssemblyAI.SentimentAnalysisResult? Type86 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type87 { get; set; }
+ public global::AssemblyAI.Sentiment? Type87 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type88 { get; set; }
+ public global::AssemblyAI.TranscriptSpeechUnderstanding? Type88 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptCustomSpelling? Type89 { get; set; }
+ public global::AssemblyAI.OneOf? Type89 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type90 { get; set; }
+ public global::AssemblyAI.TranslationResponse? Type90 { get; set; }
///
///
///
- public global::AssemblyAI.AnyOf? Type91 { get; set; }
+ public global::AssemblyAI.TranslationResponseTranslation? Type91 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptLanguageCode? Type92 { get; set; }
+ public global::AssemblyAI.SpeakerIdentificationResponse? Type92 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type93 { get; set; }
+ public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type93 { get; set; }
///
///
///
- public byte[]? Type94 { get; set; }
+ public global::AssemblyAI.CustomFormattingResponse? Type94 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type95 { get; set; }
+ public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type95 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type96 { get; set; }
+ public global::System.Collections.Generic.IList? Type96 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type97 { get; set; }
+ public global::AssemblyAI.TranscriptTranslatedTexts? Type97 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptUtterance? Type98 { get; set; }
+ public global::AssemblyAI.TranscriptSentence? Type98 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptBoostParam? Type99 { get; set; }
+ public global::AssemblyAI.SentencesResponse? Type99 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptList? Type100 { get; set; }
+ public global::System.Collections.Generic.IList? Type100 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type101 { get; set; }
+ public global::AssemblyAI.TranscriptParagraph? Type101 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptListItem? Type102 { get; set; }
+ public global::AssemblyAI.ParagraphsResponse? Type102 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptOptionalParams? Type103 { get; set; }
+ public global::System.Collections.Generic.IList? Type103 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? Type104 { get; set; }
+ public global::AssemblyAI.PageDetails? Type104 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type105 { get; set; }
+ public global::AssemblyAI.ListTranscriptParams? Type105 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type106 { get; set; }
+ public global::System.DateTime? Type106 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptParams? Type107 { get; set; }
+ public global::AssemblyAI.TranscriptListItem? Type107 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptParamsVariant1? Type108 { get; set; }
+ public global::AssemblyAI.TranscriptList? Type108 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptReadyNotification? Type109 { get; set; }
+ public global::System.Collections.Generic.IList? Type109 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptReadyStatus? Type110 { get; set; }
+ public global::AssemblyAI.UploadedFile? Type110 { get; set; }
///
///
///
- public global::AssemblyAI.TranscriptWebhookNotification? Type111 { get; set; }
+ public global::AssemblyAI.CreateRealtimeTemporaryTokenParams? Type111 { get; set; }
///
///
///
- public global::AssemblyAI.UploadedFile? Type112 { get; set; }
+ public global::AssemblyAI.RealtimeTemporaryTokenResponse? Type112 { get; set; }
///
///
///
- public global::AssemblyAI.WordSearchMatch? Type113 { get; set; }
+ public global::AssemblyAI.PurgeLemurRequestDataResponse? Type113 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type114 { get; set; }
+ public global::AssemblyAI.LemurBaseResponse? Type114 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList>? Type115 { get; set; }
+ public global::AssemblyAI.LemurUsage? Type115 { get; set; }
///
///
///
- public global::AssemblyAI.WordSearchResponse? Type116 { get; set; }
+ public global::AssemblyAI.LemurStringResponse? Type116 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type117 { get; set; }
+ public global::AssemblyAI.LemurStringResponseVariant1? Type117 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurTaskResponse? Type118 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurSummaryResponse? Type119 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurActionItemsResponse? Type120 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurQuestionAnswerResponse? Type121 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurQuestionAnswerResponseVariant2? Type122 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type123 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurQuestionAnswer? Type124 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurResponse? Type125 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurBaseParams? Type126 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type127 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.AnyOf? Type128 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurModel? Type129 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurTaskParams? Type130 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurTaskParamsVariant1? Type131 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurSummaryParams? Type132 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurSummaryParamsVariant2? Type133 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurQuestionAnswerParams? Type134 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurQuestionAnswerParamsVariant2? Type135 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type136 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurQuestion? Type137 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurActionItemsParams? Type138 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.LemurActionItemsParamsVariant2? Type139 { get; set; }
+ ///
+ ///
+ ///
+ public global::AssemblyAI.Error? Type140 { get; set; }
+ ///
+ ///
+ ///
+ public byte[]? Type141 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.GetLemurResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.GetLemurResponse.g.cs
deleted file mode 100644
index 17ac487..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.GetLemurResponse.g.cs
+++ /dev/null
@@ -1,413 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial class LeMURClient
- {
- partial void PrepareGetLemurResponseArguments(
- global::System.Net.Http.HttpClient httpClient,
- ref string requestId);
- partial void PrepareGetLemurResponseRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string requestId);
- partial void ProcessGetLemurResponseResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessGetLemurResponseResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Retrieve LeMUR response
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Retrieve a LeMUR response that was previously generated.
- ///
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task GetLemurResponseAsync(
- string requestId,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- PrepareArguments(
- client: HttpClient);
- PrepareGetLemurResponseArguments(
- httpClient: HttpClient,
- requestId: ref requestId);
-
- var __pathBuilder = new global::AssemblyAI.PathBuilder(
- path: $"/lemur/v3/{requestId}",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- using 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
-
- foreach (var __authorization in Authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareGetLemurResponseRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- requestId: requestId);
-
- using var __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: cancellationToken).ConfigureAwait(false);
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessGetLemurResponseResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- // 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 (ReadResponseAsString)
- {
- __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
- }
- else
- {
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_400 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Unauthorized
- if ((int)__response.StatusCode == 401)
- {
- string? __content_401 = null;
- global::System.Exception? __exception_401 = null;
- global::AssemblyAI.Error? __value_401 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- else
- {
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_401 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseObject = __value_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Not found
- if ((int)__response.StatusCode == 404)
- {
- string? __content_404 = null;
- global::System.Exception? __exception_404 = null;
- global::AssemblyAI.Error? __value_404 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
- }
- else
- {
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_404 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Too many requests
- if ((int)__response.StatusCode == 429)
- {
- string? __content_429 = null;
- global::System.Exception? __exception_429 = null;
- global::AssemblyAI.Error? __value_429 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- else
- {
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_429 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_429,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_429,
- ResponseObject = __value_429,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // An error occurred while processing the request
- if ((int)__response.StatusCode == 500)
- {
- string? __content_500 = null;
- global::System.Exception? __exception_500 = null;
- global::AssemblyAI.Error? __value_500 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- else
- {
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_500 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 503)
- {
- string? __content_503 = null;
- global::System.Exception? __exception_503 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_503 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_503,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_503,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 504)
- {
- string? __content_504 = null;
- global::System.Exception? __exception_504 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_504 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_504 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_504,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_504,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
-
- if (ReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessGetLemurResponseResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- return
- global::AssemblyAI.LemurResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- return
- await global::AssemblyAI.LemurResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurQuestionAnswer.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurQuestionAnswer.g.cs
deleted file mode 100644
index f607dfc..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurQuestionAnswer.g.cs
+++ /dev/null
@@ -1,440 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial class LeMURClient
- {
- partial void PrepareLemurQuestionAnswerArguments(
- global::System.Net.Http.HttpClient httpClient,
- global::AssemblyAI.LemurQuestionAnswerParams request);
- partial void PrepareLemurQuestionAnswerRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::AssemblyAI.LemurQuestionAnswerParams request);
- partial void ProcessLemurQuestionAnswerResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessLemurQuestionAnswerResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Ask questions using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Question & Answer allows you to ask free-form questions about a single transcript or a group of transcripts.
- /// The questions can be any whose answers you find useful, such as judging whether a caller is likely to become a customer or whether all items on a meeting's agenda were covered.
- ///
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task LemurQuestionAnswerAsync(
- global::AssemblyAI.LemurQuestionAnswerParams request,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- PrepareArguments(
- client: HttpClient);
- PrepareLemurQuestionAnswerArguments(
- httpClient: HttpClient,
- request: request);
-
- var __pathBuilder = new global::AssemblyAI.PathBuilder(
- path: "/lemur/v3/generate/question-answer",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in Authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
- var __httpRequestContent = new global::System.Net.Http.StringContent(
- content: __httpRequestContentBody,
- encoding: global::System.Text.Encoding.UTF8,
- mediaType: "application/json");
- __httpRequest.Content = __httpRequestContent;
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareLemurQuestionAnswerRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- using var __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: cancellationToken).ConfigureAwait(false);
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessLemurQuestionAnswerResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- // 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 (ReadResponseAsString)
- {
- __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
- }
- else
- {
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_400 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Unauthorized
- if ((int)__response.StatusCode == 401)
- {
- string? __content_401 = null;
- global::System.Exception? __exception_401 = null;
- global::AssemblyAI.Error? __value_401 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- else
- {
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_401 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseObject = __value_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Not found
- if ((int)__response.StatusCode == 404)
- {
- string? __content_404 = null;
- global::System.Exception? __exception_404 = null;
- global::AssemblyAI.Error? __value_404 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
- }
- else
- {
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_404 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Too many requests
- if ((int)__response.StatusCode == 429)
- {
- string? __content_429 = null;
- global::System.Exception? __exception_429 = null;
- global::AssemblyAI.Error? __value_429 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- else
- {
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_429 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_429,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_429,
- ResponseObject = __value_429,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // An error occurred while processing the request
- if ((int)__response.StatusCode == 500)
- {
- string? __content_500 = null;
- global::System.Exception? __exception_500 = null;
- global::AssemblyAI.Error? __value_500 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- else
- {
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_500 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 503)
- {
- string? __content_503 = null;
- global::System.Exception? __exception_503 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_503 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_503,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_503,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 504)
- {
- string? __content_504 = null;
- global::System.Exception? __exception_504 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_504 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_504 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_504,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_504,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
-
- if (ReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessLemurQuestionAnswerResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- return
- global::AssemblyAI.LemurQuestionAnswerResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- return
- await global::AssemblyAI.LemurQuestionAnswerResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- }
-
- ///
- /// Ask questions using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Question & Answer allows you to ask free-form questions about a single transcript or a group of transcripts.
- /// The questions can be any whose answers you find useful, such as judging whether a caller is likely to become a customer or whether all items on a meeting's agenda were covered.
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task LemurQuestionAnswerAsync(
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __request = new global::AssemblyAI.LemurQuestionAnswerParams
- {
- };
-
- return await LemurQuestionAnswerAsync(
- request: __request,
- cancellationToken: cancellationToken).ConfigureAwait(false);
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurSummary.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurSummary.g.cs
deleted file mode 100644
index fe0fdad..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurSummary.g.cs
+++ /dev/null
@@ -1,440 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial class LeMURClient
- {
- partial void PrepareLemurSummaryArguments(
- global::System.Net.Http.HttpClient httpClient,
- global::AssemblyAI.LemurSummaryParams request);
- partial void PrepareLemurSummaryRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::AssemblyAI.LemurSummaryParams request);
- partial void ProcessLemurSummaryResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessLemurSummaryResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Summarize a transcript using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Custom Summary allows you to distill a piece of audio into a few impactful sentences.
- /// You can give the model context to obtain more targeted results while outputting the results in a variety of formats described in human language.
- ///
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task LemurSummaryAsync(
- global::AssemblyAI.LemurSummaryParams request,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- PrepareArguments(
- client: HttpClient);
- PrepareLemurSummaryArguments(
- httpClient: HttpClient,
- request: request);
-
- var __pathBuilder = new global::AssemblyAI.PathBuilder(
- path: "/lemur/v3/generate/summary",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in Authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
- var __httpRequestContent = new global::System.Net.Http.StringContent(
- content: __httpRequestContentBody,
- encoding: global::System.Text.Encoding.UTF8,
- mediaType: "application/json");
- __httpRequest.Content = __httpRequestContent;
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareLemurSummaryRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- using var __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: cancellationToken).ConfigureAwait(false);
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessLemurSummaryResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- // 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 (ReadResponseAsString)
- {
- __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
- }
- else
- {
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_400 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Unauthorized
- if ((int)__response.StatusCode == 401)
- {
- string? __content_401 = null;
- global::System.Exception? __exception_401 = null;
- global::AssemblyAI.Error? __value_401 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- else
- {
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_401 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseObject = __value_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Not found
- if ((int)__response.StatusCode == 404)
- {
- string? __content_404 = null;
- global::System.Exception? __exception_404 = null;
- global::AssemblyAI.Error? __value_404 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
- }
- else
- {
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_404 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Too many requests
- if ((int)__response.StatusCode == 429)
- {
- string? __content_429 = null;
- global::System.Exception? __exception_429 = null;
- global::AssemblyAI.Error? __value_429 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- else
- {
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_429 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_429,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_429,
- ResponseObject = __value_429,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // An error occurred while processing the request
- if ((int)__response.StatusCode == 500)
- {
- string? __content_500 = null;
- global::System.Exception? __exception_500 = null;
- global::AssemblyAI.Error? __value_500 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- else
- {
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_500 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 503)
- {
- string? __content_503 = null;
- global::System.Exception? __exception_503 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_503 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_503,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_503,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 504)
- {
- string? __content_504 = null;
- global::System.Exception? __exception_504 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_504 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_504 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_504,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_504,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
-
- if (ReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessLemurSummaryResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- return
- global::AssemblyAI.LemurSummaryResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- return
- await global::AssemblyAI.LemurSummaryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- }
-
- ///
- /// Summarize a transcript using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Custom Summary allows you to distill a piece of audio into a few impactful sentences.
- /// You can give the model context to obtain more targeted results while outputting the results in a variety of formats described in human language.
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task LemurSummaryAsync(
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __request = new global::AssemblyAI.LemurSummaryParams
- {
- };
-
- return await LemurSummaryAsync(
- request: __request,
- cancellationToken: cancellationToken).ConfigureAwait(false);
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurTask.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurTask.g.cs
deleted file mode 100644
index 5229ef3..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurTask.g.cs
+++ /dev/null
@@ -1,438 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial class LeMURClient
- {
- partial void PrepareLemurTaskArguments(
- global::System.Net.Http.HttpClient httpClient,
- global::AssemblyAI.LemurTaskParams request);
- partial void PrepareLemurTaskRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::AssemblyAI.LemurTaskParams request);
- partial void ProcessLemurTaskResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessLemurTaskResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Run a task using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Use the LeMUR task endpoint to input your own LLM prompt.
- ///
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task LemurTaskAsync(
- global::AssemblyAI.LemurTaskParams request,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- PrepareArguments(
- client: HttpClient);
- PrepareLemurTaskArguments(
- httpClient: HttpClient,
- request: request);
-
- var __pathBuilder = new global::AssemblyAI.PathBuilder(
- path: "/lemur/v3/generate/task",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in Authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
- var __httpRequestContent = new global::System.Net.Http.StringContent(
- content: __httpRequestContentBody,
- encoding: global::System.Text.Encoding.UTF8,
- mediaType: "application/json");
- __httpRequest.Content = __httpRequestContent;
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareLemurTaskRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- using var __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: cancellationToken).ConfigureAwait(false);
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessLemurTaskResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- // 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 (ReadResponseAsString)
- {
- __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
- }
- else
- {
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_400 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Unauthorized
- if ((int)__response.StatusCode == 401)
- {
- string? __content_401 = null;
- global::System.Exception? __exception_401 = null;
- global::AssemblyAI.Error? __value_401 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- else
- {
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_401 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseObject = __value_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Not found
- if ((int)__response.StatusCode == 404)
- {
- string? __content_404 = null;
- global::System.Exception? __exception_404 = null;
- global::AssemblyAI.Error? __value_404 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
- }
- else
- {
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_404 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Too many requests
- if ((int)__response.StatusCode == 429)
- {
- string? __content_429 = null;
- global::System.Exception? __exception_429 = null;
- global::AssemblyAI.Error? __value_429 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- else
- {
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_429 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_429,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_429,
- ResponseObject = __value_429,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // An error occurred while processing the request
- if ((int)__response.StatusCode == 500)
- {
- string? __content_500 = null;
- global::System.Exception? __exception_500 = null;
- global::AssemblyAI.Error? __value_500 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- else
- {
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_500 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 503)
- {
- string? __content_503 = null;
- global::System.Exception? __exception_503 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_503 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_503,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_503,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 504)
- {
- string? __content_504 = null;
- global::System.Exception? __exception_504 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_504 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_504 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_504,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_504,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
-
- if (ReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessLemurTaskResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- return
- global::AssemblyAI.LemurTaskResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- return
- await global::AssemblyAI.LemurTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- }
-
- ///
- /// Run a task using LeMUR
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Use the LeMUR task endpoint to input your own LLM prompt.
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task LemurTaskAsync(
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __request = new global::AssemblyAI.LemurTaskParams
- {
- };
-
- return await LemurTaskAsync(
- request: __request,
- cancellationToken: cancellationToken).ConfigureAwait(false);
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.PurgeLemurRequestData.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.PurgeLemurRequestData.g.cs
deleted file mode 100644
index 2bd62ac..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.PurgeLemurRequestData.g.cs
+++ /dev/null
@@ -1,414 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- public partial class LeMURClient
- {
- partial void PreparePurgeLemurRequestDataArguments(
- global::System.Net.Http.HttpClient httpClient,
- ref string requestId);
- partial void PreparePurgeLemurRequestDataRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string requestId);
- partial void ProcessPurgeLemurRequestDataResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessPurgeLemurRequestDataResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Purge LeMUR request data
- /// <Note>To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note>
- /// Delete the data for a previously submitted LeMUR request.
- /// The LLM response data, as well as any context provided in the original request will be removed.
- ///
- ///
- /// The token to cancel the operation with
- ///
- public async global::System.Threading.Tasks.Task PurgeLemurRequestDataAsync(
- string requestId,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- PrepareArguments(
- client: HttpClient);
- PreparePurgeLemurRequestDataArguments(
- httpClient: HttpClient,
- requestId: ref requestId);
-
- var __pathBuilder = new global::AssemblyAI.PathBuilder(
- path: $"/lemur/v3/{requestId}",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- using 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
-
- foreach (var __authorization in Authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PreparePurgeLemurRequestDataRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- requestId: requestId);
-
- using var __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: cancellationToken).ConfigureAwait(false);
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessPurgeLemurRequestDataResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- // 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 (ReadResponseAsString)
- {
- __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = global::AssemblyAI.Error.FromJson(__content_400, JsonSerializerContext);
- }
- else
- {
- var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_400 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_400 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Unauthorized
- if ((int)__response.StatusCode == 401)
- {
- string? __content_401 = null;
- global::System.Exception? __exception_401 = null;
- global::AssemblyAI.Error? __value_401 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = global::AssemblyAI.Error.FromJson(__content_401, JsonSerializerContext);
- }
- else
- {
- var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_401 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_401, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_401 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseObject = __value_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Not found
- if ((int)__response.StatusCode == 404)
- {
- string? __content_404 = null;
- global::System.Exception? __exception_404 = null;
- global::AssemblyAI.Error? __value_404 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = global::AssemblyAI.Error.FromJson(__content_404, JsonSerializerContext);
- }
- else
- {
- var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_404 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_404 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // Too many requests
- if ((int)__response.StatusCode == 429)
- {
- string? __content_429 = null;
- global::System.Exception? __exception_429 = null;
- global::AssemblyAI.Error? __value_429 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = global::AssemblyAI.Error.FromJson(__content_429, JsonSerializerContext);
- }
- else
- {
- var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_429 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_429 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_429,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_429,
- ResponseObject = __value_429,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- // An error occurred while processing the request
- if ((int)__response.StatusCode == 500)
- {
- string? __content_500 = null;
- global::System.Exception? __exception_500 = null;
- global::AssemblyAI.Error? __value_500 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = global::AssemblyAI.Error.FromJson(__content_500, JsonSerializerContext);
- }
- else
- {
- var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_500 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_500 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 503)
- {
- string? __content_503 = null;
- global::System.Exception? __exception_503 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_503 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_503 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_503,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_503,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- //
- if ((int)__response.StatusCode == 504)
- {
- string? __content_504 = null;
- global::System.Exception? __exception_504 = null;
- try
- {
- if (ReadResponseAsString)
- {
- __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- }
- else
- {
- var __contentStream_504 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_504 = __ex;
- }
-
- throw new global::AssemblyAI.ApiException(
- message: __content_504 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_504,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_504,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
-
- if (ReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessPurgeLemurRequestDataResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- return
- global::AssemblyAI.PurgeLemurRequestDataResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- return
- await global::AssemblyAI.PurgeLemurRequestDataResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::AssemblyAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.g.cs
deleted file mode 100644
index 51e3473..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.g.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- ///
- /// LeMUR related operations
- /// 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 LeMURClient : global::AssemblyAI.ILeMURClient, global::System.IDisposable
- {
- ///
- /// AssemblyAI API
- ///
- public const string DefaultBaseUrl = "https://api.assemblyai.com";
-
- private bool _disposeHttpClient = true;
-
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- public System.Uri? BaseUri => HttpClient.BaseAddress;
-
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- public bool ReadResponseAsString { get; set; }
-#if DEBUG
- = true;
-#endif
- ///
- ///
- ///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::AssemblyAI.SourceGenerationContext.Default;
-
-
- ///
- /// Creates a new instance of the LeMURClient.
- /// 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 LeMURClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- bool disposeHttpClient = true)
- {
- HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
- HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
- Authorizations = authorizations ?? new global::System.Collections.Generic.List();
- _disposeHttpClient = disposeHttpClient;
-
- 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);
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.g.cs
index e4bda9f..e593bd4 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightResult.g.cs
@@ -4,7 +4,7 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"count":1,"rank":0.08,"text":"air quality alerts","timestamps":[{"start":3978,"end":5114}]}
///
public sealed partial class AutoHighlightResult
{
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 ea91af8..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.g.cs
+++ /dev/null
@@ -1,60 +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/models/key-phrases) for more information.
- ///
- public sealed partial class AutoHighlightsResult
- {
- ///
- /// 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; }
-
- ///
- /// 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; }
-
- ///
- /// 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 temporally-sequential array of Key Phrases
- ///
- ///
- /// Either success, or unavailable in the rare case that the model failed
- ///
-#if NET7_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
-#endif
- public AutoHighlightsResult(
- global::System.Collections.Generic.IList results,
- global::AssemblyAI.AudioIntelligenceModelStatus status)
- {
- this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results));
- this.Status = status;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- public AutoHighlightsResult()
- {
- }
- }
-}
\ 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.AutoHighlightsResult2.Json.g.cs
similarity index 87%
rename from src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.Json.g.cs
rename to src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.Json.g.cs
index abe78cb..04b7e15 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.Json.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.Json.g.cs
@@ -2,7 +2,7 @@
namespace AssemblyAI
{
- public sealed partial class AutoHighlightsResult
+ public sealed partial class AutoHighlightsResult2
{
///
/// 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.AutoHighlightsResult? FromJson(
+ public static global::AssemblyAI.AutoHighlightsResult2? 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;
+ typeof(global::AssemblyAI.AutoHighlightsResult2),
+ jsonSerializerContext) as global::AssemblyAI.AutoHighlightsResult2;
}
///
@@ -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.AutoHighlightsResult? FromJson(
+ public static global::AssemblyAI.AutoHighlightsResult2? 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.AutoHighlightsResult),
- jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.AutoHighlightsResult;
+ typeof(global::AssemblyAI.AutoHighlightsResult2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.AutoHighlightsResult2;
}
///
@@ -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.AutoHighlightsResult2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.g.cs
new file mode 100644
index 0000000..26da6c8
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.g.cs
@@ -0,0 +1,61 @@
+
+#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/models/key-phrases) for more information.
+ /// Example: {"status":"success","results":[{"count":1,"rank":0.08,"text":"air quality alerts","timestamps":[{"start":3978,"end":5114}]},{"count":1,"rank":0.08,"text":"wide ranging air quality consequences","timestamps":[{"start":235388,"end":238694}]},{"count":1,"rank":0.07,"text":"more wildfires","timestamps":[{"start":230972,"end":232354}]},{"count":1,"rank":0.07,"text":"air pollution","timestamps":[{"start":156004,"end":156910}]},{"count":3,"rank":0.07,"text":"weather systems","timestamps":[{"start":47344,"end":47958},{"start":205268,"end":205818},{"start":211588,"end":213434}]},{"count":2,"rank":0.06,"text":"high levels","timestamps":[{"start":121128,"end":121646},{"start":155412,"end":155866}]},{"count":1,"rank":0.06,"text":"health conditions","timestamps":[{"start":152138,"end":152666}]},{"count":2,"rank":0.06,"text":"Peter de Carlo","timestamps":[{"start":18948,"end":19930},{"start":268298,"end":269194}]},{"count":1,"rank":0.06,"text":"New York City","timestamps":[{"start":125768,"end":126274}]},{"count":1,"rank":0.05,"text":"respiratory conditions","timestamps":[{"start":152964,"end":153786}]},{"count":3,"rank":0.05,"text":"New York","timestamps":[{"start":125768,"end":126034},{"start":171448,"end":171938},{"start":176008,"end":176322}]},{"count":3,"rank":0.05,"text":"climate change","timestamps":[{"start":229548,"end":230230},{"start":244576,"end":245162},{"start":263348,"end":263950}]},{"count":1,"rank":0.05,"text":"Johns Hopkins University Varsity","timestamps":[{"start":23972,"end":25490}]},{"count":1,"rank":0.05,"text":"heart conditions","timestamps":[{"start":153988,"end":154506}]},{"count":1,"rank":0.05,"text":"air quality warnings","timestamps":[{"start":12308,"end":13434}]}]}
+ ///
+ public sealed partial class AutoHighlightsResult2
+ {
+ ///
+ /// 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 AutoHighlightsResult2(
+ 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 AutoHighlightsResult2()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.g.cs
index 37eaec8..887c74a 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Chapter.g.cs
@@ -4,17 +4,11 @@
namespace AssemblyAI
{
///
- /// Chapter of the audio file
+ /// Chapter of the audio file
+ /// Example: {"summary":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. In some places, the air quality warnings include the warning to stay inside.","gist":"Smoggy air quality alerts across US","headline":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts across US","start":250,"end":28840}
///
public sealed partial class Chapter
{
- ///
- /// 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; }
-
///
/// An ultra-short summary (just a few words) of the content spoken in the chapter
///
@@ -29,6 +23,13 @@ public sealed partial class Chapter
[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
///
@@ -37,11 +38,11 @@ public sealed partial class Chapter
public required int Start { get; set; }
///
- /// A one paragraph summary of the content spoken during the chapter
+ /// The starting time, in milliseconds, for the chapter
///
- [global::System.Text.Json.Serialization.JsonPropertyName("summary")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("end")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required string Summary { get; set; }
+ public required int End { get; set; }
///
/// Additional properties that are not explicitly defined in the schema
@@ -52,36 +53,36 @@ public sealed partial class Chapter
///
/// Initializes a new instance of the class.
///
- ///
- /// The starting time, in milliseconds, for the chapter
- ///
///
/// 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
///
- ///
- /// A one paragraph summary of the content spoken during the chapter
+ ///
+ /// The starting time, in milliseconds, for the chapter
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public Chapter(
- int end,
string gist,
string headline,
+ string summary,
int start,
- string summary)
+ int end)
{
- this.End = end;
this.Gist = gist ?? throw new global::System.ArgumentNullException(nameof(gist));
this.Headline = headline ?? throw new global::System.ArgumentNullException(nameof(headline));
- this.Start = start;
this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary));
+ this.Start = start;
+ this.End = end;
}
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.g.cs
index 996c123..d1a5e80 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabel.g.cs
@@ -4,23 +4,23 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"label":"disasters","confidence":0.8142836093902588,"severity":0.4093044400215149}
///
public sealed partial class ContentSafetyLabel
{
///
- /// The confidence score for the topic being discussed, from 0 to 1
+ /// The label of the sensitive topic
///
- [global::System.Text.Json.Serialization.JsonPropertyName("confidence")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("label")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required double Confidence { get; set; }
+ public required string Label { get; set; }
///
- /// The label of the sensitive topic
+ /// The confidence score for the topic being discussed, from 0 to 1
///
- [global::System.Text.Json.Serialization.JsonPropertyName("label")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("confidence")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required string Label { get; set; }
+ public required double Confidence { get; set; }
///
/// How severely the topic is discussed in the section, from 0 to 1
@@ -38,12 +38,12 @@ public sealed partial class ContentSafetyLabel
///
/// Initializes a new instance of the class.
///
- ///
- /// The confidence score for the topic being discussed, from 0 to 1
- ///
///
/// 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
///
@@ -51,12 +51,12 @@ public sealed partial class ContentSafetyLabel
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ContentSafetyLabel(
- double confidence,
string label,
+ double confidence,
double severity)
{
- this.Confidence = confidence;
this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label));
+ this.Confidence = confidence;
this.Severity = severity;
}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.g.cs
index 787176d..327abb7 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelResult.g.cs
@@ -4,23 +4,23 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"label":"disasters","confidence":0.8142836093902588,"severity":0.4093044400215149}],"sentences_idx_start":0,"sentences_idx_end":5,"timestamp":{"start":250,"end":28840}}
///
public sealed partial class ContentSafetyLabelResult
{
///
- /// An array of safety labels, one per sensitive topic that was detected in the section
+ /// The transcript of the section flagged by the Content Moderation model
///
- [global::System.Text.Json.Serialization.JsonPropertyName("labels")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("text")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required global::System.Collections.Generic.IList Labels { get; set; }
+ public required string Text { get; set; }
///
- /// The sentence index at which the section ends
+ /// An array of safety labels, one per sensitive topic that was detected in the section
///
- [global::System.Text.Json.Serialization.JsonPropertyName("sentences_idx_end")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("labels")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required int SentencesIdxEnd { get; set; }
+ public required global::System.Collections.Generic.IList Labels { get; set; }
///
/// The sentence index at which the section begins
@@ -30,15 +30,17 @@ public sealed partial class ContentSafetyLabelResult
public required int SentencesIdxStart { get; set; }
///
- /// The transcript of the section flagged by the Content Moderation model
+ /// The sentence index at which the section ends
///
- [global::System.Text.Json.Serialization.JsonPropertyName("text")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("sentences_idx_end")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required string Text { get; set; }
+ public required int SentencesIdxEnd { get; set; }
///
- /// Timestamp containing a start and end property in milliseconds
+ /// Timestamp information for the section
+ /// Example: {"start":3978,"end":5114}
///
+ /// {"start":3978,"end":5114}
[global::System.Text.Json.Serialization.JsonPropertyName("timestamp")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::AssemblyAI.Timestamp Timestamp { get; set; }
@@ -52,35 +54,36 @@ public sealed partial class ContentSafetyLabelResult
///
/// 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 ends
- ///
///
/// The sentence index at which the section begins
///
- ///
- /// The transcript of the section flagged by the Content Moderation model
+ ///
+ /// The sentence index at which the section ends
///
///
- /// Timestamp containing a start and end property in milliseconds
+ /// Timestamp information for the section
+ /// Example: {"start":3978,"end":5114}
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ContentSafetyLabelResult(
+ string text,
global::System.Collections.Generic.IList labels,
- int sentencesIdxEnd,
int sentencesIdxStart,
- string text,
+ 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.SentencesIdxEnd = sentencesIdxEnd;
this.SentencesIdxStart = sentencesIdxStart;
- this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text));
+ this.SentencesIdxEnd = sentencesIdxEnd;
this.Timestamp = timestamp ?? throw new global::System.ArgumentNullException(nameof(timestamp));
}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs
index 6938bde..9403b1d 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs
@@ -5,38 +5,39 @@ namespace AssemblyAI
{
///
/// An array of results for the Content Moderation model, if it is enabled.
- /// See [Content moderation](https://www.assemblyai.com/docs/models/content-moderation) for more information.
+ /// See [Content moderation](https://www.assemblyai.com/docs/models/content-moderation) for more information.
+ /// Example: {"status":"success","results":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"label":"disasters","confidence":0.8142836093902588,"severity":0.4093044400215149}],"sentences_idx_start":0,"sentences_idx_end":5,"timestamp":{"start":250,"end":28840}}],"summary":{"disasters":0.9940800441842205,"health_issues":0.9216489289040967},"severity_score_summary":{"disasters":{"low":0.5733263024656846,"medium":0.42667369753431533,"high":0.0},"health_issues":{"low":0.22863814977924785,"medium":0.45014154926938227,"high":0.32122030095136983}}}
///
public sealed partial class ContentSafetyLabelsResult
{
///
- /// An array of results for the Content Moderation model
+ /// 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("results")]
+ [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::System.Collections.Generic.IList Results { get; set; }
+ public required global::AssemblyAI.AudioIntelligenceModelStatus Status { get; set; }
///
- /// A summary of the Content Moderation severity results for the entire audio file
+ /// An array of results for the Content Moderation model
///
- [global::System.Text.Json.Serialization.JsonPropertyName("severity_score_summary")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("results")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required global::System.Collections.Generic.Dictionary SeverityScoreSummary { get; set; }
+ public required global::System.Collections.Generic.IList Results { get; set; }
///
- /// Either success, or unavailable in the rare case that the model failed
+ /// A summary of the Content Moderation confidence results for the entire audio file
///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")]
- [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonPropertyName("summary")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required global::AssemblyAI.AudioIntelligenceModelStatus Status { get; set; }
+ public required global::System.Collections.Generic.Dictionary Summary { get; set; }
///
- /// 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
///
- [global::System.Text.Json.Serialization.JsonPropertyName("summary")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("severity_score_summary")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required global::System.Collections.Generic.Dictionary Summary { get; set; }
+ public required global::System.Collections.Generic.Dictionary SeverityScoreSummary { get; set; }
///
/// Additional properties that are not explicitly defined in the schema
@@ -47,31 +48,31 @@ public sealed partial class ContentSafetyLabelsResult
///
/// 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 severity results for the entire audio file
- ///
- ///
- /// Either success, or unavailable in the rare case that the model failed
- ///
///
/// 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::System.Collections.Generic.IList results,
- global::System.Collections.Generic.Dictionary severityScoreSummary,
global::AssemblyAI.AudioIntelligenceModelStatus status,
- global::System.Collections.Generic.Dictionary summary)
+ global::System.Collections.Generic.IList results,
+ global::System.Collections.Generic.Dictionary summary,
+ global::System.Collections.Generic.Dictionary severityScoreSummary)
{
- this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results));
- this.SeverityScoreSummary = severityScoreSummary ?? throw new global::System.ArgumentNullException(nameof(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));
}
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateRealtimeTemporaryTokenParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateRealtimeTemporaryTokenParams.g.cs
index 29deb3f..0c74ce5 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateRealtimeTemporaryTokenParams.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CreateRealtimeTemporaryTokenParams.g.cs
@@ -4,7 +4,7 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"expires_in":480}
///
public sealed partial class CreateRealtimeTemporaryTokenParams
{
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.Json.g.cs
new file mode 100644
index 0000000..a195227
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.Json.g.cs
@@ -0,0 +1,92 @@
+#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
new file mode 100644
index 0000000..13803fd
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.g.cs
@@ -0,0 +1,44 @@
+
+#nullable enable
+
+namespace AssemblyAI
+{
+ ///
+ ///
+ ///
+ 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
new file mode 100644
index 0000000..248fd82
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.Json.g.cs
@@ -0,0 +1,92 @@
+#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
new file mode 100644
index 0000000..22eab9c
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.g.cs
@@ -0,0 +1,67 @@
+
+#nullable enable
+
+namespace AssemblyAI
+{
+ ///
+ ///
+ ///
+ public sealed partial class CustomFormattingRequestBodyCustomFormatting
+ {
+ ///
+ /// Date format pattern (e.g., `"mm/dd/yyyy"`)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("date")]
+ public string? Date { get; set; }
+
+ ///
+ /// Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("phone_number")]
+ public string? PhoneNumber { get; set; }
+
+ ///
+ /// Email format pattern (e.g., `"username@domain.com"`)
+ ///
+ [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"`)
+ ///
+ ///
+ /// Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`)
+ ///
+ ///
+ /// Email format pattern (e.g., `"username@domain.com"`)
+ ///
+#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
new file mode 100644
index 0000000..fe6409f
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#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
new file mode 100644
index 0000000..08eb75c
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.g.cs
@@ -0,0 +1,43 @@
+
+#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
new file mode 100644
index 0000000..ed8a58a
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.Json.g.cs
@@ -0,0 +1,92 @@
+#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
new file mode 100644
index 0000000..40af472
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.g.cs
@@ -0,0 +1,52 @@
+
+#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
new file mode 100644
index 0000000..db71a25
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.Json.g.cs
@@ -0,0 +1,92 @@
+#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
new file mode 100644
index 0000000..bdc848b
--- /dev/null
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.g.cs
@@ -0,0 +1,18 @@
+
+#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.Entity.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Entity.g.cs
index b6103e2..7a98f22 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Entity.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Entity.g.cs
@@ -4,17 +4,11 @@
namespace AssemblyAI
{
///
- /// A detected entity
+ /// A detected entity
+ /// Example: {"entity_type":"location","text":"Canada","start":2548,"end":3130}
///
public sealed partial class Entity
{
- ///
- /// 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; }
-
///
/// The type of entity for the detected entity
///
@@ -23,6 +17,13 @@ public sealed partial class Entity
[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
///
@@ -31,11 +32,11 @@ public sealed partial class Entity
public required int Start { get; set; }
///
- /// The text for the detected entity
+ /// The ending time, in milliseconds, for the detected entity in the audio file
///
- [global::System.Text.Json.Serialization.JsonPropertyName("text")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("end")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required string Text { get; set; }
+ public required int End { get; set; }
///
/// Additional properties that are not explicitly defined in the schema
@@ -46,31 +47,31 @@ public sealed partial class Entity
///
/// Initializes a new instance of the class.
///
- ///
- /// The ending time, in milliseconds, for the detected entity in the audio file
- ///
///
/// 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 text for the detected entity
+ ///
+ /// 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(
- int end,
global::AssemblyAI.EntityType entityType,
+ string text,
int start,
- string text)
+ int end)
{
- this.End = end;
this.EntityType = entityType;
- this.Start = start;
this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text));
+ this.Start = start;
+ this.End = end;
}
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Error.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Error.g.cs
index de1a344..2974737 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Error.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Error.g.cs
@@ -4,7 +4,7 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"error":"format_text must be a Boolean"}
///
public sealed partial class Error
{
@@ -19,8 +19,7 @@ public sealed partial class Error
///
///
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
- [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.ErrorStatusJsonConverter))]
- public global::AssemblyAI.ErrorStatus? Status { get; set; }
+ public string? Status { get; set; }
///
/// Additional properties that are not explicitly defined in the schema
@@ -40,7 +39,7 @@ public sealed partial class Error
#endif
public Error(
string error1,
- global::AssemblyAI.ErrorStatus? status)
+ string? status)
{
this.Error1 = error1 ?? throw new global::System.ArgumentNullException(nameof(error1));
this.Status = status;
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorStatus.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorStatus.g.cs
deleted file mode 100644
index 1f41c11..0000000
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorStatus.g.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-
-#nullable enable
-
-namespace AssemblyAI
-{
- ///
- ///
- ///
- public enum ErrorStatus
- {
- ///
- ///
- ///
- Error,
- }
-
- ///
- /// Enum extensions to do fast conversions without the reflection.
- ///
- public static class ErrorStatusExtensions
- {
- ///
- /// Converts an enum to a string.
- ///
- public static string ToValueString(this ErrorStatus value)
- {
- return value switch
- {
- ErrorStatus.Error => "error",
- _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
- };
- }
- ///
- /// Converts an string to a enum.
- ///
- public static ErrorStatus? ToEnum(string value)
- {
- return value switch
- {
- "error" => ErrorStatus.Error,
- _ => null,
- };
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsParams.g.cs
index 3821f4b..a86921c 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsParams.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsParams.g.cs
@@ -5,12 +5,12 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"transcript_ids":["64nygnr62k-405c-4ae8-8a6b-d90b40ff3cce"],"context":"This is an interview about wildfires.","answer_format":"Bullet Points","final_model":"anthropic/claude-sonnet-4-20250514","temperature":0,"max_output_size":3000}
///
public readonly partial struct LemurActionItemsParams : global::System.IEquatable
{
///
- ///
+ /// Example: {"transcript_ids":["85f9b381-e90c-46ed-beca-7d76245d375e","7c3acd18-df4d-4432-88f5-1e89f8827eea"],"context":"This is an interview about wildfires.","final_model":"anthropic/claude-sonnet-4-20250514","temperature":0,"max_output_size":3000}
///
#if NET6_0_OR_GREATER
public global::AssemblyAI.LemurBaseParams? Value1 { get; init; }
@@ -29,37 +29,36 @@ namespace AssemblyAI
///
///
///
- public static implicit operator LemurActionItemsParams(global::AssemblyAI.LemurBaseParams value) => new LemurActionItemsParams((global::AssemblyAI.LemurBaseParams?)value);
+#if NET6_0_OR_GREATER
+ public global::AssemblyAI.LemurActionItemsParamsVariant2? Value2 { get; init; }
+#else
+ public global::AssemblyAI.LemurActionItemsParamsVariant2? Value2 { get; }
+#endif
///
///
///
- public static implicit operator global::AssemblyAI.LemurBaseParams?(LemurActionItemsParams @this) => @this.Value1;
-
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
+#endif
+ public bool IsValue2 => Value2 != null;
///
///
///
- public LemurActionItemsParams(global::AssemblyAI.LemurBaseParams? value)
- {
- Value1 = value;
- }
+ public static implicit operator LemurActionItemsParams(global::AssemblyAI.LemurBaseParams value) => new LemurActionItemsParams((global::AssemblyAI.LemurBaseParams?)value);
///
///
///
-#if NET6_0_OR_GREATER
- public global::AssemblyAI.LemurActionItemsParamsVariant2? Value2 { get; init; }
-#else
- public global::AssemblyAI.LemurActionItemsParamsVariant2? Value2 { get; }
-#endif
+ public static implicit operator global::AssemblyAI.LemurBaseParams?(LemurActionItemsParams @this) => @this.Value1;
///
///
///
-#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
-#endif
- public bool IsValue2 => Value2 != null;
+ public LemurActionItemsParams(global::AssemblyAI.LemurBaseParams? value)
+ {
+ Value1 = value;
+ }
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsResponse.g.cs
index f615bca..f9b4e42 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsResponse.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsResponse.g.cs
@@ -5,12 +5,12 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","response":"Here are some potential action items based on the transcript:\n\n- Monitor air quality levels in affected areas and issue warnings as needed.\n\n- Advise vulnerable populations like children, the elderly, and those with respiratory conditions to limit time outdoors.\n\n- Have schools cancel outdoor activities when air quality is poor.\n\n- Educate the public on health impacts of smoke inhalation and precautions to take.\n\n- Track progression of smoke plumes using weather and air quality monitoring systems.\n\n- Coordinate cross-regionally to manage smoke exposure as air masses shift.\n\n- Plan for likely increase in such events due to climate change. Expand monitoring and forecasting capabilities.\n\n- Conduct research to better understand health impacts of wildfire smoke and mitigation strategies.\n\n- Develop strategies to prevent and manage wildfires to limit air quality impacts.\n","usage":{"input_tokens":27,"output_tokens":3}}
///
public readonly partial struct LemurActionItemsResponse : global::System.IEquatable
{
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","response":"Based on the transcript, the following locations were mentioned as being affected by wildfire smoke from Canada:\n\n- Maine\n- Maryland\n- Minnesota\n- Mid Atlantic region\n- Northeast region\n- New York City\n- Baltimore\n","usage":{"input_tokens":27,"output_tokens":3}}
///
#if NET6_0_OR_GREATER
public global::AssemblyAI.LemurStringResponse? String { get; init; }
@@ -25,7 +25,6 @@ namespace AssemblyAI
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(String))]
#endif
public bool IsString => String != null;
-
///
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseParams.g.cs
index bfc02e7..3e648b9 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseParams.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseParams.g.cs
@@ -6,10 +6,24 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"transcript_ids":["85f9b381-e90c-46ed-beca-7d76245d375e","7c3acd18-df4d-4432-88f5-1e89f8827eea"],"context":"This is an interview about wildfires.","final_model":"anthropic/claude-sonnet-4-20250514","temperature":0,"max_output_size":3000}
///
public sealed partial class LemurBaseParams
{
+ ///
+ /// A list of completed transcripts with text. Up to a maximum of 100 hours of audio.
+ /// Use either transcript_ids or input_text as input into LeMUR.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("transcript_ids")]
+ public global::System.Collections.Generic.IList? TranscriptIds { get; set; }
+
+ ///
+ /// Custom formatted transcript data. Maximum size is the context limit of the selected model.
+ /// Use either transcript_ids or input_text as input into LeMUR.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("input_text")]
+ public string? InputText { get; set; }
+
///
/// Context to provide the model. This can be a string or a free-form JSON value.
///
@@ -27,13 +41,6 @@ public sealed partial class LemurBaseParams
[global::System.Text.Json.Serialization.JsonRequired]
public required global::AssemblyAI.AnyOf FinalModel { get; set; } = "default";
- ///
- /// Custom formatted transcript data. Maximum size is the context limit of the selected model.
- /// Use either transcript_ids or input_text as input into LeMUR.
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("input_text")]
- public string? InputText { get; set; }
-
///
/// Maximum output size in tokens, up to the `final_model`'s max [(see chart)](/docs/lemur/customize-parameters#change-the-maximum-output-size).
/// Default Value: 2000
@@ -45,18 +52,11 @@ public sealed partial class LemurBaseParams
/// The temperature to use for the model.
/// Higher values result in answers that are more creative, lower values are more conservative.
/// Can be any value between 0.0 and 1.0 inclusive.
- /// Default Value: 0F
+ /// Default Value: 0
///
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")]
public float? Temperature { get; set; }
- ///
- /// A list of completed transcripts with text. Up to a maximum of 100 hours of audio.
- /// Use either transcript_ids or input_text as input into LeMUR.
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("transcript_ids")]
- public global::System.Collections.Generic.IList? TranscriptIds { get; set; }
-
///
/// Additional properties that are not explicitly defined in the schema
///
@@ -66,6 +66,14 @@ public sealed partial class LemurBaseParams
///
/// Initializes a new instance of the class.
///
+ ///
+ /// A list of completed transcripts with text. Up to a maximum of 100 hours of audio.
+ /// Use either transcript_ids or input_text as input into LeMUR.
+ ///
+ ///
+ /// Custom formatted transcript data. Maximum size is the context limit of the selected model.
+ /// Use either transcript_ids or input_text as input into LeMUR.
+ ///
///
/// Context to provide the model. This can be a string or a free-form JSON value.
///
@@ -73,10 +81,6 @@ public sealed partial class LemurBaseParams
/// The model that is used for the final prompt after compression is performed.
/// Default Value: default
///
- ///
- /// Custom formatted transcript data. Maximum size is the context limit of the selected model.
- /// Use either transcript_ids or input_text as input into LeMUR.
- ///
///
/// Maximum output size in tokens, up to the `final_model`'s max [(see chart)](/docs/lemur/customize-parameters#change-the-maximum-output-size).
/// Default Value: 2000
@@ -85,29 +89,25 @@ public sealed partial class LemurBaseParams
/// The temperature to use for the model.
/// Higher values result in answers that are more creative, lower values are more conservative.
/// Can be any value between 0.0 and 1.0 inclusive.
- /// Default Value: 0F
- ///
- ///
- /// A list of completed transcripts with text. Up to a maximum of 100 hours of audio.
- /// Use either transcript_ids or input_text as input into LeMUR.
+ /// Default Value: 0
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public LemurBaseParams(
global::AssemblyAI.AnyOf finalModel,
- global::AssemblyAI.OneOf? context,
+ global::System.Collections.Generic.IList? transcriptIds,
string? inputText,
+ global::AssemblyAI.OneOf? context,
int? maxOutputSize,
- float? temperature,
- global::System.Collections.Generic.IList? transcriptIds)
+ float? temperature)
{
this.FinalModel = finalModel;
- this.Context = context;
+ this.TranscriptIds = transcriptIds;
this.InputText = inputText;
+ this.Context = context;
this.MaxOutputSize = maxOutputSize;
this.Temperature = temperature;
- this.TranscriptIds = transcriptIds;
}
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseResponse.g.cs
index e71d940..5234072 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseResponse.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurBaseResponse.g.cs
@@ -4,7 +4,7 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","usage":{"input_tokens":27,"output_tokens":3}}
///
public sealed partial class LemurBaseResponse
{
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestion.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestion.g.cs
index e15928a..b279e63 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestion.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestion.g.cs
@@ -6,21 +6,16 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"question":"Where are there wildfires?","answer_format":"List of countries in ISO 3166-1 alpha-2 format"}
///
public sealed partial class LemurQuestion
{
///
- /// How you want the answer to be returned. This can be any text. Can't be used with answer_options. Examples: "short sentence", "bullet points"
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("answer_format")]
- public string? AnswerFormat { get; set; }
-
- ///
- /// What discrete options to return. Useful for precise responses. Can't be used with answer_format. Example: ["Yes", "No"]
+ /// The question you wish to ask. For more complex questions use default model.
///
- [global::System.Text.Json.Serialization.JsonPropertyName("answer_options")]
- public global::System.Collections.Generic.IList? AnswerOptions { get; set; }
+ [global::System.Text.Json.Serialization.JsonPropertyName("question")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Question { get; set; }
///
/// Any context about the transcripts you wish to provide. This can be a string or any object.
@@ -30,11 +25,16 @@ public sealed partial class LemurQuestion
public global::AssemblyAI.OneOf? Context { get; set; }
///
- /// The question you wish to ask. For more complex questions use default model.
+ /// How you want the answer to be returned. This can be any text. Can't be used with answer_options. Examples: "short sentence", "bullet points"
///
- [global::System.Text.Json.Serialization.JsonPropertyName("question")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string Question { get; set; }
+ [global::System.Text.Json.Serialization.JsonPropertyName("answer_format")]
+ public string? AnswerFormat { get; set; }
+
+ ///
+ /// What discrete options to return. Useful for precise responses. Can't be used with answer_format. Example: ["Yes", "No"]
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("answer_options")]
+ public global::System.Collections.Generic.IList? AnswerOptions { get; set; }
///
/// Additional properties that are not explicitly defined in the schema
@@ -45,31 +45,31 @@ public sealed partial class LemurQuestion
///
/// Initializes a new instance of the class.
///
+ ///
+ /// The question you wish to ask. For more complex questions use default model.
+ ///
+ ///
+ /// Any context about the transcripts you wish to provide. This can be a string or any object.
+ ///
///
/// How you want the answer to be returned. This can be any text. Can't be used with answer_options. Examples: "short sentence", "bullet points"
///
///
/// What discrete options to return. Useful for precise responses. Can't be used with answer_format. Example: ["Yes", "No"]
///
- ///
- /// Any context about the transcripts you wish to provide. This can be a string or any object.
- ///
- ///
- /// The question you wish to ask. For more complex questions use default model.
- ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public LemurQuestion(
string question,
+ global::AssemblyAI.OneOf? context,
string? answerFormat,
- global::System.Collections.Generic.IList? answerOptions,
- global::AssemblyAI.OneOf? context)
+ global::System.Collections.Generic.IList? answerOptions)
{
this.Question = question ?? throw new global::System.ArgumentNullException(nameof(question));
+ this.Context = context;
this.AnswerFormat = answerFormat;
this.AnswerOptions = answerOptions;
- this.Context = context;
}
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswer.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswer.g.cs
index 87ac193..07b6b74 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswer.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswer.g.cs
@@ -4,23 +4,24 @@
namespace AssemblyAI
{
///
- /// An answer generated by LeMUR and its question
+ /// An answer generated by LeMUR and its question
+ /// Example: {"answer":"CA, US","question":"Where are there wildfires?"}
///
public sealed partial class LemurQuestionAnswer
{
///
- /// The answer generated by LeMUR
+ /// The question for LeMUR to answer
///
- [global::System.Text.Json.Serialization.JsonPropertyName("answer")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("question")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required string Answer { get; set; }
+ public required string Question { get; set; }
///
- /// The question for LeMUR to answer
+ /// The answer generated by LeMUR
///
- [global::System.Text.Json.Serialization.JsonPropertyName("question")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("answer")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required string Question { get; set; }
+ public required string Answer { get; set; }
///
/// Additional properties that are not explicitly defined in the schema
@@ -31,21 +32,21 @@ public sealed partial class LemurQuestionAnswer
///
/// Initializes a new instance of the class.
///
- ///
- /// The answer generated by LeMUR
- ///
///
/// The question for LeMUR to answer
///
+ ///
+ /// The answer generated by LeMUR
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public LemurQuestionAnswer(
- string answer,
- string question)
+ string question,
+ string answer)
{
- this.Answer = answer ?? throw new global::System.ArgumentNullException(nameof(answer));
this.Question = question ?? throw new global::System.ArgumentNullException(nameof(question));
+ this.Answer = answer ?? throw new global::System.ArgumentNullException(nameof(answer));
}
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerParams.g.cs
index 162cae9..7376536 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerParams.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerParams.g.cs
@@ -5,12 +5,12 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"transcript_ids":["64nygnr62k-405c-4ae8-8a6b-d90b40ff3cce"],"context":"This is an interview about wildfires.","questions":[{"question":"Where are there wildfires?","answer_format":"List of countries in ISO 3166-1 alpha-2 format","answer_options":["US","CA"]},{"question":"Is global warming affecting wildfires?","answer_options":["yes","no"]}],"final_model":"anthropic/claude-sonnet-4-20250514","temperature":0,"max_output_size":3000}
///
public readonly partial struct LemurQuestionAnswerParams : global::System.IEquatable
{
///
- ///
+ /// Example: {"transcript_ids":["85f9b381-e90c-46ed-beca-7d76245d375e","7c3acd18-df4d-4432-88f5-1e89f8827eea"],"context":"This is an interview about wildfires.","final_model":"anthropic/claude-sonnet-4-20250514","temperature":0,"max_output_size":3000}
///
#if NET6_0_OR_GREATER
public global::AssemblyAI.LemurBaseParams? Value1 { get; init; }
@@ -29,37 +29,36 @@ namespace AssemblyAI
///
///
///
- public static implicit operator LemurQuestionAnswerParams(global::AssemblyAI.LemurBaseParams value) => new LemurQuestionAnswerParams((global::AssemblyAI.LemurBaseParams?)value);
+#if NET6_0_OR_GREATER
+ public global::AssemblyAI.LemurQuestionAnswerParamsVariant2? Value2 { get; init; }
+#else
+ public global::AssemblyAI.LemurQuestionAnswerParamsVariant2? Value2 { get; }
+#endif
///
///
///
- public static implicit operator global::AssemblyAI.LemurBaseParams?(LemurQuestionAnswerParams @this) => @this.Value1;
-
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
+#endif
+ public bool IsValue2 => Value2 != null;
///
///
///
- public LemurQuestionAnswerParams(global::AssemblyAI.LemurBaseParams? value)
- {
- Value1 = value;
- }
+ public static implicit operator LemurQuestionAnswerParams(global::AssemblyAI.LemurBaseParams value) => new LemurQuestionAnswerParams((global::AssemblyAI.LemurBaseParams?)value);
///
///
///
-#if NET6_0_OR_GREATER
- public global::AssemblyAI.LemurQuestionAnswerParamsVariant2? Value2 { get; init; }
-#else
- public global::AssemblyAI.LemurQuestionAnswerParamsVariant2? Value2 { get; }
-#endif
+ public static implicit operator global::AssemblyAI.LemurBaseParams?(LemurQuestionAnswerParams @this) => @this.Value1;
///
///
///
-#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
-#endif
- public bool IsValue2 => Value2 != null;
+ public LemurQuestionAnswerParams(global::AssemblyAI.LemurBaseParams? value)
+ {
+ Value1 = value;
+ }
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerResponse.g.cs
index 02ea181..97a3b3d 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerResponse.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerResponse.g.cs
@@ -5,12 +5,12 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","response":[{"answer":"CA, US","question":"Where are there wildfires?"},{"answer":"yes","question":"Is global warming affecting wildfires?"}],"usage":{"input_tokens":27,"output_tokens":3}}
///
public readonly partial struct LemurQuestionAnswerResponse : global::System.IEquatable
{
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","usage":{"input_tokens":27,"output_tokens":3}}
///
#if NET6_0_OR_GREATER
public global::AssemblyAI.LemurBaseResponse? Value1 { get; init; }
@@ -29,37 +29,36 @@ namespace AssemblyAI
///
///
///
- public static implicit operator LemurQuestionAnswerResponse(global::AssemblyAI.LemurBaseResponse value) => new LemurQuestionAnswerResponse((global::AssemblyAI.LemurBaseResponse?)value);
+#if NET6_0_OR_GREATER
+ public global::AssemblyAI.LemurQuestionAnswerResponseVariant2? Value2 { get; init; }
+#else
+ public global::AssemblyAI.LemurQuestionAnswerResponseVariant2? Value2 { get; }
+#endif
///
///
///
- public static implicit operator global::AssemblyAI.LemurBaseResponse?(LemurQuestionAnswerResponse @this) => @this.Value1;
-
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
+#endif
+ public bool IsValue2 => Value2 != null;
///
///
///
- public LemurQuestionAnswerResponse(global::AssemblyAI.LemurBaseResponse? value)
- {
- Value1 = value;
- }
+ public static implicit operator LemurQuestionAnswerResponse(global::AssemblyAI.LemurBaseResponse value) => new LemurQuestionAnswerResponse((global::AssemblyAI.LemurBaseResponse?)value);
///
///
///
-#if NET6_0_OR_GREATER
- public global::AssemblyAI.LemurQuestionAnswerResponseVariant2? Value2 { get; init; }
-#else
- public global::AssemblyAI.LemurQuestionAnswerResponseVariant2? Value2 { get; }
-#endif
+ public static implicit operator global::AssemblyAI.LemurBaseResponse?(LemurQuestionAnswerResponse @this) => @this.Value1;
///
///
///
-#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
-#endif
- public bool IsValue2 => Value2 != null;
+ public LemurQuestionAnswerResponse(global::AssemblyAI.LemurBaseResponse? value)
+ {
+ Value1 = value;
+ }
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurResponse.g.cs
index 6af3975..5ecbd64 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurResponse.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurResponse.g.cs
@@ -10,7 +10,7 @@ namespace AssemblyAI
public readonly partial struct LemurResponse : global::System.IEquatable
{
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","response":"Based on the transcript, the following locations were mentioned as being affected by wildfire smoke from Canada:\n\n- Maine\n- Maryland\n- Minnesota\n- Mid Atlantic region\n- Northeast region\n- New York City\n- Baltimore\n","usage":{"input_tokens":27,"output_tokens":3}}
///
#if NET6_0_OR_GREATER
public global::AssemblyAI.LemurStringResponse? String { get; init; }
@@ -27,39 +27,38 @@ namespace AssemblyAI
public bool IsString => String != null;
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","response":[{"answer":"CA, US","question":"Where are there wildfires?"},{"answer":"yes","question":"Is global warming affecting wildfires?"}],"usage":{"input_tokens":27,"output_tokens":3}}
///
- public static implicit operator LemurResponse(global::AssemblyAI.LemurStringResponse value) => new LemurResponse((global::AssemblyAI.LemurStringResponse?)value);
+#if NET6_0_OR_GREATER
+ public global::AssemblyAI.LemurQuestionAnswerResponse? QuestionAnswer { get; init; }
+#else
+ public global::AssemblyAI.LemurQuestionAnswerResponse? QuestionAnswer { get; }
+#endif
///
///
///
- public static implicit operator global::AssemblyAI.LemurStringResponse?(LemurResponse @this) => @this.String;
-
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(QuestionAnswer))]
+#endif
+ public bool IsQuestionAnswer => QuestionAnswer != null;
///
///
///
- public LemurResponse(global::AssemblyAI.LemurStringResponse? value)
- {
- String = value;
- }
+ public static implicit operator LemurResponse(global::AssemblyAI.LemurStringResponse value) => new LemurResponse((global::AssemblyAI.LemurStringResponse?)value);
///
///
///
-#if NET6_0_OR_GREATER
- public global::AssemblyAI.LemurQuestionAnswerResponse? QuestionAnswer { get; init; }
-#else
- public global::AssemblyAI.LemurQuestionAnswerResponse? QuestionAnswer { get; }
-#endif
+ public static implicit operator global::AssemblyAI.LemurStringResponse?(LemurResponse @this) => @this.String;
///
///
///
-#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(QuestionAnswer))]
-#endif
- public bool IsQuestionAnswer => QuestionAnswer != null;
+ public LemurResponse(global::AssemblyAI.LemurStringResponse? value)
+ {
+ String = value;
+ }
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurStringResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurStringResponse.g.cs
index d36f9bf..da255fd 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurStringResponse.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurStringResponse.g.cs
@@ -5,7 +5,7 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","response":"Based on the transcript, the following locations were mentioned as being affected by wildfire smoke from Canada:\n\n- Maine\n- Maryland\n- Minnesota\n- Mid Atlantic region\n- Northeast region\n- New York City\n- Baltimore\n","usage":{"input_tokens":27,"output_tokens":3}}
///
public readonly partial struct LemurStringResponse : global::System.IEquatable
{
@@ -27,39 +27,38 @@ namespace AssemblyAI
public bool IsValue1 => Value1 != null;
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","usage":{"input_tokens":27,"output_tokens":3}}
///
- public static implicit operator LemurStringResponse(global::AssemblyAI.LemurStringResponseVariant1 value) => new LemurStringResponse((global::AssemblyAI.LemurStringResponseVariant1?)value);
+#if NET6_0_OR_GREATER
+ public global::AssemblyAI.LemurBaseResponse? Value2 { get; init; }
+#else
+ public global::AssemblyAI.LemurBaseResponse? Value2 { get; }
+#endif
///
///
///
- public static implicit operator global::AssemblyAI.LemurStringResponseVariant1?(LemurStringResponse @this) => @this.Value1;
-
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
+#endif
+ public bool IsValue2 => Value2 != null;
///
///
///
- public LemurStringResponse(global::AssemblyAI.LemurStringResponseVariant1? value)
- {
- Value1 = value;
- }
+ public static implicit operator LemurStringResponse(global::AssemblyAI.LemurStringResponseVariant1 value) => new LemurStringResponse((global::AssemblyAI.LemurStringResponseVariant1?)value);
///
///
///
-#if NET6_0_OR_GREATER
- public global::AssemblyAI.LemurBaseResponse? Value2 { get; init; }
-#else
- public global::AssemblyAI.LemurBaseResponse? Value2 { get; }
-#endif
+ public static implicit operator global::AssemblyAI.LemurStringResponseVariant1?(LemurStringResponse @this) => @this.Value1;
///
///
///
-#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
-#endif
- public bool IsValue2 => Value2 != null;
+ public LemurStringResponse(global::AssemblyAI.LemurStringResponseVariant1? value)
+ {
+ Value1 = value;
+ }
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryParams.g.cs
index 332bc58..2f8dbda 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryParams.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryParams.g.cs
@@ -5,12 +5,12 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"transcript_ids":["47b95ba5-8889-44d8-bc80-5de38306e582"],"context":"This is an interview about wildfires.","final_model":"anthropic/claude-sonnet-4-20250514","temperature":0,"max_output_size":3000}
///
public readonly partial struct LemurSummaryParams : global::System.IEquatable
{
///
- ///
+ /// Example: {"transcript_ids":["85f9b381-e90c-46ed-beca-7d76245d375e","7c3acd18-df4d-4432-88f5-1e89f8827eea"],"context":"This is an interview about wildfires.","final_model":"anthropic/claude-sonnet-4-20250514","temperature":0,"max_output_size":3000}
///
#if NET6_0_OR_GREATER
public global::AssemblyAI.LemurBaseParams? Value1 { get; init; }
@@ -29,37 +29,36 @@ namespace AssemblyAI
///
///
///
- public static implicit operator LemurSummaryParams(global::AssemblyAI.LemurBaseParams value) => new LemurSummaryParams((global::AssemblyAI.LemurBaseParams?)value);
+#if NET6_0_OR_GREATER
+ public global::AssemblyAI.LemurSummaryParamsVariant2? Value2 { get; init; }
+#else
+ public global::AssemblyAI.LemurSummaryParamsVariant2? Value2 { get; }
+#endif
///
///
///
- public static implicit operator global::AssemblyAI.LemurBaseParams?(LemurSummaryParams @this) => @this.Value1;
-
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
+#endif
+ public bool IsValue2 => Value2 != null;
///
///
///
- public LemurSummaryParams(global::AssemblyAI.LemurBaseParams? value)
- {
- Value1 = value;
- }
+ public static implicit operator LemurSummaryParams(global::AssemblyAI.LemurBaseParams value) => new LemurSummaryParams((global::AssemblyAI.LemurBaseParams?)value);
///
///
///
-#if NET6_0_OR_GREATER
- public global::AssemblyAI.LemurSummaryParamsVariant2? Value2 { get; init; }
-#else
- public global::AssemblyAI.LemurSummaryParamsVariant2? Value2 { get; }
-#endif
+ public static implicit operator global::AssemblyAI.LemurBaseParams?(LemurSummaryParams @this) => @this.Value1;
///
///
///
-#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
-#endif
- public bool IsValue2 => Value2 != null;
+ public LemurSummaryParams(global::AssemblyAI.LemurBaseParams? value)
+ {
+ Value1 = value;
+ }
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryResponse.g.cs
index cb1c10f..14bb0f9 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryResponse.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryResponse.g.cs
@@ -5,12 +5,12 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","response":"- Wildfires in Canada are sending smoke and air pollution across parts of the US, triggering air quality alerts from Maine to Minnesota. Concentrations of particulate matter have exceeded safety levels.\n\n- Weather systems are channeling the smoke through Pennsylvania into the Mid-Atlantic and Northeast regions. New York City has canceled outdoor activities to keep children and vulnerable groups indoors.\n\n- Very small particulate matter can enter the lungs and impact respiratory, cardiovascular and neurological health. Young children, the elderly and those with preexisting conditions are most at risk.\n\n- The conditions causing the poor air quality could get worse or shift to different areas in coming days depending on weather patterns. More wildfires may also contribute to higher concentrations.\n\n- Climate change is leading to longer and more severe fire seasons. Events of smoke traveling long distances and affecting air quality over wide areas will likely become more common in the future.\u0022\n","usage":{"input_tokens":27,"output_tokens":3}}
///
public readonly partial struct LemurSummaryResponse : global::System.IEquatable
{
///
- ///
+ /// Example: {"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","response":"Based on the transcript, the following locations were mentioned as being affected by wildfire smoke from Canada:\n\n- Maine\n- Maryland\n- Minnesota\n- Mid Atlantic region\n- Northeast region\n- New York City\n- Baltimore\n","usage":{"input_tokens":27,"output_tokens":3}}
///
#if NET6_0_OR_GREATER
public global::AssemblyAI.LemurStringResponse? String { get; init; }
@@ -25,7 +25,6 @@ namespace AssemblyAI
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(String))]
#endif
public bool IsString => String != null;
-
///
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParams.g.cs
index 318cfd4..d912465 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParams.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParams.g.cs
@@ -5,7 +5,7 @@
namespace AssemblyAI
{
///
- ///
+ /// Example: {"transcript_ids":["64nygnr62k-405c-4ae8-8a6b-d90b40ff3cce"],"prompt":"List all the locations affected by wildfires.","final_model":"anthropic/claude-sonnet-4-20250514","temperature":0,"max_output_size":3000}
///
public readonly partial struct LemurTaskParams : global::System.IEquatable
{
@@ -25,7 +25,6 @@ namespace AssemblyAI
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))]
#endif
public bool IsValue1 => Value1 != null;
-
///
///
///
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParamsVariant1.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParamsVariant1.g.cs
index 3ec468f..743b0d8 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParamsVariant1.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParamsVariant1.g.cs
@@ -9,13 +9,18 @@ namespace AssemblyAI
public sealed partial class LemurTaskParamsVariant1
{
///
- /// The model that is used for the final prompt after compression is performed.
- /// Default Value: default
+ /// Your text to prompt the model to produce a desired output, including any context you want to pass into the model.
///
- [global::System.Text.Json.Serialization.JsonPropertyName("final_model")]
- [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.LemurModelJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required global::AssemblyAI.LemurModel FinalModel { get; set; }
+ public required string Prompt { get; set; }
+
+ ///
+ /// A list of completed transcripts with text. Up to a maximum of 100 hours of audio.
+ /// Use either transcript_ids or input_text as input into LeMUR.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("transcript_ids")]
+ public global::System.Collections.Generic.IList? TranscriptIds { get; set; }
///
/// Custom formatted transcript data. Maximum size is the context limit of the selected model.
@@ -24,6 +29,15 @@ public sealed partial class LemurTaskParamsVariant1
[global::System.Text.Json.Serialization.JsonPropertyName("input_text")]
public string? InputText { get; set; }
+ ///
+ /// The model that is used for the final prompt after compression is performed.
+ /// Default Value: default
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("final_model")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.LemurModelJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::AssemblyAI.LemurModel FinalModel { get; set; }
+
///
/// Maximum output size in tokens, up to the `final_model`'s max [(see chart)](/docs/lemur/customize-parameters#change-the-maximum-output-size).
/// Default Value: 2000
@@ -31,29 +45,15 @@ public sealed partial class LemurTaskParamsVariant1
[global::System.Text.Json.Serialization.JsonPropertyName("max_output_size")]
public int? MaxOutputSize { get; set; }
- ///
- /// Your text to prompt the model to produce a desired output, including any context you want to pass into the model.
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string Prompt { get; set; }
-
///
/// The temperature to use for the model.