From c3f87790711e24ca21c4f3107ed41c4722895c9a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 3 Mar 2026 04:44:39 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/AssemblyAI/Generated/AnyOf.2.g.cs | 31 +- .../AssemblyAI..JsonSerializerContext.g.cs | 78 +- .../AssemblyAI.AssemblyAIClient.g.cs | 9 - .../AssemblyAI.IAssemblyAIClient.g.cs | 5 - ...emblyAI.ILeMURClient.GetLemurResponse.g.cs | 19 - ...lyAI.ILeMURClient.LemurQuestionAnswer.g.cs | 31 - .../AssemblyAI.ILeMURClient.LemurSummary.g.cs | 31 - .../AssemblyAI.ILeMURClient.LemurTask.g.cs | 29 - ...AI.ILeMURClient.PurgeLemurRequestData.g.cs | 20 - .../Generated/AssemblyAI.ILeMURClient.g.cs | 41 - ...AI.ITranscriptClient.DeleteTranscript.g.cs | 3 +- ...AI.ITranscriptClient.GetRedactedAudio.g.cs | 1 + ...yAI.ITranscriptClient.ListTranscripts.g.cs | 10 - ...semblyAI.ITranscriptClient.UploadFile.g.cs | 13 +- ...AI.JsonConverters.ErrorStatusNullable.g.cs | 60 - .../AssemblyAI.JsonConverters.OneOf3.g.cs | 111 ++ ...BodySpeakerIdentificationSpeakerType.g.cs} | 14 +- ...kerIdentificationSpeakerTypeNullable.g.cs} | 14 +- ...AssemblyAI.JsonConverters.SpeechModel.g.cs | 53 - ...AssemblyAI.JsonSerializerContextTypes.g.cs | 332 ++-- ...semblyAI.LeMURClient.GetLemurResponse.g.cs | 413 ---- ...blyAI.LeMURClient.LemurQuestionAnswer.g.cs | 440 ----- .../AssemblyAI.LeMURClient.LemurSummary.g.cs | 440 ----- .../AssemblyAI.LeMURClient.LemurTask.g.cs | 438 ----- ...yAI.LeMURClient.PurgeLemurRequestData.g.cs | 414 ---- .../Generated/AssemblyAI.LeMURClient.g.cs | 87 - ...AssemblyAI.Models.AutoHighlightResult.g.cs | 2 +- ...ssemblyAI.Models.AutoHighlightsResult.g.cs | 60 - ...AI.Models.AutoHighlightsResult2.Json.g.cs} | 22 +- ...semblyAI.Models.AutoHighlightsResult2.g.cs | 61 + .../Generated/AssemblyAI.Models.Chapter.g.cs | 41 +- .../AssemblyAI.Models.ContentSafetyLabel.g.cs | 24 +- ...blyAI.Models.ContentSafetyLabelResult.g.cs | 45 +- ...lyAI.Models.ContentSafetyLabelsResult.g.cs | 51 +- ...ls.CreateRealtimeTemporaryTokenParams.g.cs | 2 +- ...dels.CustomFormattingRequestBody.Json.g.cs | 92 + ...AI.Models.CustomFormattingRequestBody.g.cs | 44 + ...ttingRequestBodyCustomFormatting.Json.g.cs | 92 + ...FormattingRequestBodyCustomFormatting.g.cs | 67 + ....Models.CustomFormattingResponse.Json.g.cs | 92 + ...blyAI.Models.CustomFormattingResponse.g.cs | 43 + ...rmattingResponseCustomFormatting.Json.g.cs | 92 + ...tomFormattingResponseCustomFormatting.g.cs | 52 + ...gResponseCustomFormattingMapping.Json.g.cs | 92 + ...attingResponseCustomFormattingMapping.g.cs | 18 + .../Generated/AssemblyAI.Models.Entity.g.cs | 41 +- .../Generated/AssemblyAI.Models.Error.g.cs | 7 +- .../AssemblyAI.Models.ErrorStatus.g.cs | 45 - ...emblyAI.Models.LemurActionItemsParams.g.cs | 35 +- ...blyAI.Models.LemurActionItemsResponse.g.cs | 5 +- .../AssemblyAI.Models.LemurBaseParams.g.cs | 60 +- .../AssemblyAI.Models.LemurBaseResponse.g.cs | 2 +- .../AssemblyAI.Models.LemurQuestion.g.cs | 46 +- ...AssemblyAI.Models.LemurQuestionAnswer.g.cs | 27 +- ...lyAI.Models.LemurQuestionAnswerParams.g.cs | 35 +- ...AI.Models.LemurQuestionAnswerResponse.g.cs | 35 +- .../AssemblyAI.Models.LemurResponse.g.cs | 35 +- ...AssemblyAI.Models.LemurStringResponse.g.cs | 35 +- .../AssemblyAI.Models.LemurSummaryParams.g.cs | 35 +- ...ssemblyAI.Models.LemurSummaryResponse.g.cs | 5 +- .../AssemblyAI.Models.LemurTaskParams.g.cs | 3 +- ...mblyAI.Models.LemurTaskParamsVariant1.g.cs | 72 +- .../AssemblyAI.Models.LemurTaskResponse.g.cs | 5 +- ...ssemblyAI.Models.ListTranscriptParams.g.cs | 60 +- .../AssemblyAI.Models.PageDetails.g.cs | 53 +- .../AssemblyAI.Models.ParagraphsResponse.g.cs | 30 +- ....Models.PurgeLemurRequestDataResponse.g.cs | 28 +- ...Models.RealtimeTemporaryTokenResponse.g.cs | 2 +- ...lyAI.Models.RedactedAudioNotification.g.cs | 3 +- ...semblyAI.Models.RedactedAudioResponse.g.cs | 22 +- .../AssemblyAI.Models.SentencesResponse.g.cs | 30 +- ...mblyAI.Models.SentimentAnalysisResult.g.cs | 73 +- ...ssemblyAI.Models.SeverityScoreSummary.g.cs | 22 +- ...SpeakerIdentificationRequestBody.Json.g.cs | 92 + ...dels.SpeakerIdentificationRequestBody.g.cs | 44 + ...RequestBodySpeakerIdentification.Json.g.cs | 92 + ...ationRequestBodySpeakerIdentification.g.cs | 58 + ...tBodySpeakerIdentificationSpeakerType.g.cs | 51 + ...ls.SpeakerIdentificationResponse.Json.g.cs | 92 + ....Models.SpeakerIdentificationResponse.g.cs | 43 + ...ionResponseSpeakerIdentification.Json.g.cs | 92 + ...ficationResponseSpeakerIdentification.g.cs | 43 + .../AssemblyAI.Models.SpeechModel.g.cs | 57 - .../AssemblyAI.Models.Timestamp.g.cs | 27 +- ...lyAI.Models.TopicDetectionModelResult.g.cs | 27 +- ...ssemblyAI.Models.TopicDetectionResult.g.cs | 28 +- ...lyAI.Models.TopicDetectionResultLabel.g.cs | 24 +- .../AssemblyAI.Models.Transcript.g.cs | 229 ++- ...blyAI.Models.TranscriptCustomSpelling.g.cs | 3 +- ...ls.TranscriptLanguageDetectionOptions.g.cs | 32 +- .../AssemblyAI.Models.TranscriptList.g.cs | 10 +- .../AssemblyAI.Models.TranscriptListItem.g.cs | 90 +- ...blyAI.Models.TranscriptOptionalParams.g.cs | 166 +- ...ptionalParamsLanguageDetectionOptions.g.cs | 32 +- ...ranscriptOptionalParamsSpeakerOptions.g.cs | 28 +- ...ptionalParamsSpeechUnderstanding.Json.g.cs | 92 + ...riptOptionalParamsSpeechUnderstanding.g.cs | 47 + ...AssemblyAI.Models.TranscriptParagraph.g.cs | 52 +- .../AssemblyAI.Models.TranscriptParams.g.cs | 37 +- ...AI.Models.TranscriptReadyNotification.g.cs | 29 +- .../AssemblyAI.Models.TranscriptSentence.g.cs | 80 +- ...ls.TranscriptSpeechUnderstanding.Json.g.cs | 92 + ....Models.TranscriptSpeechUnderstanding.g.cs | 56 + ...Models.TranscriptTranslatedTexts.Json.g.cs | 92 + ...lyAI.Models.TranscriptTranslatedTexts.g.cs | 45 + ...AssemblyAI.Models.TranscriptUtterance.g.cs | 79 +- ...anscriptUtteranceTranslatedTexts.Json.g.cs | 92 + ...ls.TranscriptUtteranceTranslatedTexts.g.cs | 18 + ....Models.TranscriptWebhookNotification.g.cs | 36 +- .../AssemblyAI.Models.TranscriptWord.g.cs | 60 +- ...AI.Models.TranslationRequestBody.Json.g.cs | 92 + ...emblyAI.Models.TranslationRequestBody.g.cs | 44 + ...ranslationRequestBodyTranslation.Json.g.cs | 92 + ...els.TranslationRequestBodyTranslation.g.cs | 72 + ...blyAI.Models.TranslationResponse.Json.g.cs | 92 + ...AssemblyAI.Models.TranslationResponse.g.cs | 43 + ...s.TranslationResponseTranslation.Json.g.cs | 92 + ...Models.TranslationResponseTranslation.g.cs | 43 + .../AssemblyAI.Models.UploadedFile.g.cs | 2 +- .../AssemblyAI.Models.WordSearchMatch.g.cs | 48 +- .../AssemblyAI.Models.WordSearchResponse.g.cs | 26 +- ...yAI.TranscriptClient.DeleteTranscript.g.cs | 3 +- ...yAI.TranscriptClient.GetRedactedAudio.g.cs | 1 + ...emblyAI.TranscriptClient.GetSubtitles.g.cs | 2 +- ...lyAI.TranscriptClient.ListTranscripts.g.cs | 45 +- ...ssemblyAI.TranscriptClient.UploadFile.g.cs | 67 +- ...ssemblyAI.TranscriptClient.WordSearch.g.cs | 2 +- src/libs/AssemblyAI/Generated/OneOf.2.g.cs | 31 +- .../AssemblyAI/Generated/OneOf.3.Json.g.cs | 92 + src/libs/AssemblyAI/Generated/OneOf.3.g.cs | 272 +++ src/libs/AssemblyAI/openapi.yaml | 1739 ++++++++++------- 131 files changed, 5453 insertions(+), 4694 deletions(-) delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.GetLemurResponse.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurQuestionAnswer.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurSummary.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.LemurTask.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.PurgeLemurRequestData.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.ILeMURClient.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.ErrorStatusNullable.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf3.g.cs rename src/libs/AssemblyAI/Generated/{AssemblyAI.JsonConverters.ErrorStatus.g.cs => AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs} (57%) rename src/libs/AssemblyAI/Generated/{AssemblyAI.JsonConverters.SpeechModelNullable.g.cs => AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeNullable.g.cs} (60%) delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.GetLemurResponse.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurQuestionAnswer.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurSummary.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.LemurTask.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.PurgeLemurRequestData.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.LeMURClient.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult.g.cs rename src/libs/AssemblyAI/Generated/{AssemblyAI.Models.AutoHighlightsResult.Json.g.cs => AssemblyAI.Models.AutoHighlightsResult2.Json.g.cs} (87%) create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.AutoHighlightsResult2.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBody.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingRequestBodyCustomFormatting.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponse.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormatting.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.CustomFormattingResponseCustomFormattingMapping.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.ErrorStatus.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.g.cs delete mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.g.cs create mode 100644 src/libs/AssemblyAI/Generated/OneOf.3.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/OneOf.3.g.cs 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.
/// 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 /// @@ -63,48 +63,48 @@ public sealed partial class LemurTaskParamsVariant1 /// /// Initializes a new instance of the class. /// - /// - /// 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. + /// + /// + /// 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. /// + /// + /// The model that is used for the final prompt after compression is performed.
+ /// Default Value: default + /// /// /// 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 /// - /// - /// Your text to prompt the model to produce a desired output, including any context you want to pass into the model. - /// /// /// 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 LemurTaskParamsVariant1( - global::AssemblyAI.LemurModel finalModel, string prompt, + global::AssemblyAI.LemurModel finalModel, + global::System.Collections.Generic.IList? transcriptIds, string? inputText, int? maxOutputSize, - float? temperature, - global::System.Collections.Generic.IList? transcriptIds) + float? temperature) { - this.FinalModel = finalModel; this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); + this.FinalModel = finalModel; + this.TranscriptIds = transcriptIds; this.InputText = inputText; this.MaxOutputSize = maxOutputSize; this.Temperature = temperature; - this.TranscriptIds = transcriptIds; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskResponse.g.cs index e78452d..8428a8b 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskResponse.g.cs @@ -5,12 +5,12 @@ 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 LemurTaskResponse : 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.ListTranscriptParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListTranscriptParams.g.cs index 4a1ce94..5b1b3be 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListTranscriptParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ListTranscriptParams.g.cs @@ -4,21 +4,23 @@ namespace AssemblyAI { /// - /// + /// Example: {"after_id":"a7c5cafd-2c2e-4bdd-b0b2-69dade2f7a1b","before_id":"9ea68fd3-f953-42c1-9742-976c447fb463","created_on":"2023-11-03","limit":2,"status":"completed","throttled_only":false} /// public sealed partial class ListTranscriptParams { /// - /// Get transcripts that were created after this transcript ID + /// Maximum amount of transcripts to retrieve
+ /// Default Value: 10 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("after_id")] - public global::System.Guid? AfterId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } /// - /// Get transcripts that were created before this transcript ID + /// Filter by transcript status /// - [global::System.Text.Json.Serialization.JsonPropertyName("before_id")] - public global::System.Guid? BeforeId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptStatusJsonConverter))] + public global::AssemblyAI.TranscriptStatus? Status { get; set; } /// /// Only get transcripts created on this date @@ -27,18 +29,16 @@ public sealed partial class ListTranscriptParams public global::System.DateTime? CreatedOn { get; set; } /// - /// Maximum amount of transcripts to retrieve
- /// Default Value: 10 + /// Get transcripts that were created before this transcript ID ///
- [global::System.Text.Json.Serialization.JsonPropertyName("limit")] - public int? Limit { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("before_id")] + public global::System.Guid? BeforeId { get; set; } /// - /// The status of your transcript. Possible values are queued, processing, completed, or error. + /// Get transcripts that were created after this transcript ID /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptStatusJsonConverter))] - public global::AssemblyAI.TranscriptStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("after_id")] + public global::System.Guid? AfterId { get; set; } /// /// Only get throttled transcripts, overrides the status filter
@@ -56,21 +56,21 @@ public sealed partial class ListTranscriptParams /// /// Initializes a new instance of the class. /// - /// - /// Get transcripts that were created after this transcript ID + /// + /// Maximum amount of transcripts to retrieve
+ /// Default Value: 10 /// - /// - /// Get transcripts that were created before this transcript ID + /// + /// Filter by transcript status /// /// /// Only get transcripts created on this date /// - /// - /// Maximum amount of transcripts to retrieve
- /// Default Value: 10 + /// + /// Get transcripts that were created before this transcript ID /// - /// - /// The status of your transcript. Possible values are queued, processing, completed, or error. + /// + /// Get transcripts that were created after this transcript ID /// /// /// Only get throttled transcripts, overrides the status filter
@@ -80,18 +80,18 @@ public sealed partial class ListTranscriptParams [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListTranscriptParams( - global::System.Guid? afterId, - global::System.Guid? beforeId, - global::System.DateTime? createdOn, int? limit, global::AssemblyAI.TranscriptStatus? status, + global::System.DateTime? createdOn, + global::System.Guid? beforeId, + global::System.Guid? afterId, bool? throttledOnly) { - this.AfterId = afterId; - this.BeforeId = beforeId; - this.CreatedOn = createdOn; this.Limit = limit; this.Status = status; + this.CreatedOn = createdOn; + this.BeforeId = beforeId; + this.AfterId = afterId; this.ThrottledOnly = throttledOnly; } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs index 13036c7..514a70d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PageDetails.g.cs @@ -4,30 +4,31 @@ namespace AssemblyAI { /// - /// Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts. + /// Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.
+ /// Example: {"limit":10,"result_count":10,"current_url":"https://api.assemblyai.com/v2/transcript?limit=10","prev_url":"https://api.assemblyai.com/v2/transcript?limit=10\u0026before_id=62npeahu2b-a8ea-4112-854c-69542c20d90c","next_url":"https://api.assemblyai.com/v2/transcript?limit=10\u0026after_id=62nfw3mlar-01ad-4631-92f6-629929496eed"} ///
public sealed partial class PageDetails { /// - /// The URL used to retrieve the current page of transcripts + /// The number of results this page is limited to /// - [global::System.Text.Json.Serialization.JsonPropertyName("current_url")] + [global::System.Text.Json.Serialization.JsonPropertyName("limit")] [global::System.Text.Json.Serialization.JsonRequired] - public required string CurrentUrl { get; set; } + public required int Limit { get; set; } /// - /// The number of results this page is limited to + /// The actual number of results in the page /// - [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + [global::System.Text.Json.Serialization.JsonPropertyName("result_count")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Limit { get; set; } + public required int ResultCount { get; set; } /// - /// The URL to the next page of transcripts. The next URL always points to a page with newer transcripts. + /// The URL used to retrieve the current page of transcripts /// - [global::System.Text.Json.Serialization.JsonPropertyName("next_url")] + [global::System.Text.Json.Serialization.JsonPropertyName("current_url")] [global::System.Text.Json.Serialization.JsonRequired] - public required string? NextUrl { get; set; } + public required string CurrentUrl { get; set; } /// /// The URL to the next page of transcripts. The previous URL always points to a page with older transcripts. @@ -37,11 +38,11 @@ public sealed partial class PageDetails public required string? PrevUrl { get; set; } /// - /// The actual number of results in the page + /// The URL to the next page of transcripts. The next URL always points to a page with newer transcripts. /// - [global::System.Text.Json.Serialization.JsonPropertyName("result_count")] + [global::System.Text.Json.Serialization.JsonPropertyName("next_url")] [global::System.Text.Json.Serialization.JsonRequired] - public required int ResultCount { get; set; } + public required string? NextUrl { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,36 +53,36 @@ public sealed partial class PageDetails /// /// Initializes a new instance of the class. /// - /// - /// The URL used to retrieve the current page of transcripts - /// /// /// The number of results this page is limited to /// - /// - /// The URL to the next page of transcripts. The next URL always points to a page with newer transcripts. + /// + /// The actual number of results in the page + /// + /// + /// The URL used to retrieve the current page of transcripts /// /// /// The URL to the next page of transcripts. The previous URL always points to a page with older transcripts. /// - /// - /// The actual number of results in the page + /// + /// The URL to the next page of transcripts. The next URL always points to a page with newer transcripts. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PageDetails( - string currentUrl, int limit, - string? nextUrl, + int resultCount, + string currentUrl, string? prevUrl, - int resultCount) + string? nextUrl) { - this.CurrentUrl = currentUrl ?? throw new global::System.ArgumentNullException(nameof(currentUrl)); this.Limit = limit; - this.NextUrl = nextUrl ?? throw new global::System.ArgumentNullException(nameof(nextUrl)); - this.PrevUrl = prevUrl ?? throw new global::System.ArgumentNullException(nameof(prevUrl)); this.ResultCount = resultCount; + this.CurrentUrl = currentUrl ?? throw new global::System.ArgumentNullException(nameof(currentUrl)); + this.PrevUrl = prevUrl ?? throw new global::System.ArgumentNullException(nameof(prevUrl)); + this.NextUrl = nextUrl ?? throw new global::System.ArgumentNullException(nameof(nextUrl)); } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.g.cs index f32119c..d1fbf08 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ParagraphsResponse.g.cs @@ -4,16 +4,16 @@ namespace AssemblyAI { /// - /// + /// Example: {"paragraphs":[{"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 Decarlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Good morning, professor.","start":250,"end":26950,"confidence":0.73033,"words":[{"text":"Smoke","start":250,"end":650,"confidence":0.73033,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"from","start":730,"end":1022,"confidence":1,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"hundreds","start":1076,"end":1466,"confidence":0.99992,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"of","start":1498,"end":1646,"confidence":1,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}]},{"text":"Good morning. So what is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there\u0027s a couple of things. The season has been pretty dry already, and then the fact that we\u0027re getting hit in the US. Is because there\u0027s a couple of weather systems that are essentially channeling the smoke from those Canadian wildfires through Pennsylvania into the Mid Atlantic and the Northeast and kind of just dropping the smoke there.","start":27850,"end":56190,"confidence":0.99667,"words":[{"text":"Good","start":27850,"end":28262,"confidence":0.99667,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"morning.","start":28316,"end":28920,"confidence":0.99742,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"So","start":29290,"end":29702,"confidence":0.94736,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}]}],"id":"d5a3d302-066e-43fb-b63b-8f57baf185db","confidence":0.9578730257009361,"audio_duration":281} /// public sealed partial class ParagraphsResponse { /// - /// The duration of the audio file in seconds + /// The unique identifier of your transcript /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_duration")] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required double AudioDuration { get; set; } + public required global::System.Guid Id { get; set; } /// /// The confidence score for the transcript @@ -23,11 +23,11 @@ public sealed partial class ParagraphsResponse public required double Confidence { get; set; } /// - /// The unique identifier of your transcript + /// The duration of the audio file in seconds /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonPropertyName("audio_duration")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } + public required double AudioDuration { get; set; } /// /// An array of paragraphs in the transcript @@ -45,14 +45,14 @@ public sealed partial class ParagraphsResponse /// /// Initializes a new instance of the class. /// - /// - /// The duration of the audio file in seconds + /// + /// The unique identifier of your transcript /// /// /// The confidence score for the transcript /// - /// - /// The unique identifier of your transcript + /// + /// The duration of the audio file in seconds /// /// /// An array of paragraphs in the transcript @@ -61,14 +61,14 @@ public sealed partial class ParagraphsResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ParagraphsResponse( - double audioDuration, - double confidence, global::System.Guid id, + double confidence, + double audioDuration, global::System.Collections.Generic.IList paragraphs) { - this.AudioDuration = audioDuration; - this.Confidence = confidence; this.Id = id; + this.Confidence = confidence; + this.AudioDuration = audioDuration; this.Paragraphs = paragraphs ?? throw new global::System.ArgumentNullException(nameof(paragraphs)); } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PurgeLemurRequestDataResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PurgeLemurRequestDataResponse.g.cs index ab7010d..1c78c84 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PurgeLemurRequestDataResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.PurgeLemurRequestDataResponse.g.cs @@ -4,17 +4,10 @@ namespace AssemblyAI { /// - /// + /// Example: {"request_id":"914fe7e4-f10a-4364-8946-34614c2873f6","request_id_to_purge":"b7eb03ec-1650-4181-949b-75d9de317de1","deleted":true} /// public sealed partial class PurgeLemurRequestDataResponse { - /// - /// Whether the request data was deleted - /// - [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Deleted { get; set; } - /// /// The ID of the deletion request of the LeMUR request /// @@ -29,6 +22,13 @@ public sealed partial class PurgeLemurRequestDataResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid RequestIdToPurge { get; set; } + /// + /// Whether the request data was deleted + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Deleted { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -38,26 +38,26 @@ public sealed partial class PurgeLemurRequestDataResponse /// /// Initializes a new instance of the class. /// - /// - /// Whether the request data was deleted - /// /// /// The ID of the deletion request of the LeMUR request /// /// /// The ID of the LeMUR request to purge the data for /// + /// + /// Whether the request data was deleted + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PurgeLemurRequestDataResponse( - bool deleted, global::System.Guid requestId, - global::System.Guid requestIdToPurge) + global::System.Guid requestIdToPurge, + bool deleted) { - this.Deleted = deleted; this.RequestId = requestId; this.RequestIdToPurge = requestIdToPurge; + this.Deleted = deleted; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RealtimeTemporaryTokenResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RealtimeTemporaryTokenResponse.g.cs index 9a3df47..3d696fb 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RealtimeTemporaryTokenResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RealtimeTemporaryTokenResponse.g.cs @@ -4,7 +4,7 @@ namespace AssemblyAI { /// - /// + /// Example: {"token":"fe4145dd1e7a2e149488dcd2d553a8018a89833fc5084837d66fd1bcf5a105d4"} /// public sealed partial class RealtimeTemporaryTokenResponse { diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs index c032103..ab62325 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs @@ -10,7 +10,7 @@ namespace AssemblyAI public readonly partial struct RedactedAudioNotification : global::System.IEquatable { /// - /// + /// Example: {"redacted_audio_url":"https://s3.us-west-2.amazonaws.com/api.assembly.ai.usw2/redacted-audio/785efd9e-0e20-45e1-967b-3db17770ed9f.wav?AWSAccessKeyId=aws-access-key0id\u0026Signature=signature\u0026x-amz-security-token=security-token\u0026Expires=1698966551","status":"redacted_audio_ready"} /// #if NET6_0_OR_GREATER public global::AssemblyAI.RedactedAudioResponse? Response { get; init; } @@ -25,7 +25,6 @@ namespace AssemblyAI [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Response))] #endif public bool IsResponse => Response != null; - /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.g.cs index b17c99e..2e78d9d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioResponse.g.cs @@ -4,17 +4,10 @@ namespace AssemblyAI { /// - /// + /// Example: {"redacted_audio_url":"https://s3.us-west-2.amazonaws.com/api.assembly.ai.usw2/redacted-audio/785efd9e-0e20-45e1-967b-3db17770ed9f.wav?AWSAccessKeyId=aws-access-key0id\u0026Signature=signature\u0026x-amz-security-token=security-token\u0026Expires=1698966551","status":"redacted_audio_ready"} /// public sealed partial class RedactedAudioResponse { - /// - /// The URL of the redacted audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("redacted_audio_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string RedactedAudioUrl { get; set; } - /// /// The status of the redacted audio /// @@ -22,6 +15,13 @@ public sealed partial class RedactedAudioResponse [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.RedactedAudioStatusJsonConverter))] public global::AssemblyAI.RedactedAudioStatus Status { get; set; } + /// + /// The URL of the redacted audio file + /// + [global::System.Text.Json.Serialization.JsonPropertyName("redacted_audio_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string RedactedAudioUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -31,12 +31,12 @@ public sealed partial class RedactedAudioResponse /// /// Initializes a new instance of the class. /// - /// - /// The URL of the redacted audio file - /// /// /// The status of the redacted audio /// + /// + /// The URL of the redacted audio file + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.g.cs index cc7dfe3..d240b07 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentencesResponse.g.cs @@ -4,16 +4,16 @@ namespace AssemblyAI { /// - /// + /// Example: {"sentences":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.","start":250,"end":6350,"confidence":0.72412,"words":[{"text":"Smoke","start":250,"end":650,"confidence":0.72412,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"from","start":730,"end":1022,"confidence":0.99996,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"hundreds","start":1076,"end":1466,"confidence":0.99992,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"of","start":1498,"end":1646,"confidence":1,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}],"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"Skylines from Maine to Maryland to Minnesota are gray and smoggy.","start":6500,"end":11050,"confidence":0.99819,"words":[{"text":"Skylines","start":6500,"end":7306,"confidence":0.99819,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"from","start":7338,"end":7534,"confidence":0.99987,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"Maine","start":7572,"end":7962,"confidence":0.9972,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"to","start":8026,"end":8206,"confidence":1,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"Maryland","start":8228,"end":8650,"confidence":0.5192,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"to","start":8730,"end":8926,"confidence":1,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}],"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}],"id":"d5a3d302-066e-43fb-b63b-8f57baf185db","confidence":0.9579390654205628,"audio_duration":281} /// public sealed partial class SentencesResponse { /// - /// The duration of the audio file in seconds + /// The unique identifier for the transcript /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_duration")] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required double AudioDuration { get; set; } + public required global::System.Guid Id { get; set; } /// /// The confidence score for the transcript @@ -23,11 +23,11 @@ public sealed partial class SentencesResponse public required double Confidence { get; set; } /// - /// The unique identifier for the transcript + /// The duration of the audio file in seconds /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonPropertyName("audio_duration")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } + public required double AudioDuration { get; set; } /// /// An array of sentences in the transcript @@ -45,14 +45,14 @@ public sealed partial class SentencesResponse /// /// Initializes a new instance of the class. /// - /// - /// The duration of the audio file in seconds + /// + /// The unique identifier for the transcript /// /// /// The confidence score for the transcript /// - /// - /// The unique identifier for the transcript + /// + /// The duration of the audio file in seconds /// /// /// An array of sentences in the transcript @@ -61,14 +61,14 @@ public sealed partial class SentencesResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SentencesResponse( - double audioDuration, - double confidence, global::System.Guid id, + double confidence, + double audioDuration, global::System.Collections.Generic.IList sentences) { - this.AudioDuration = audioDuration; - this.Confidence = confidence; this.Id = id; + this.Confidence = confidence; + this.AudioDuration = audioDuration; this.Sentences = sentences ?? throw new global::System.ArgumentNullException(nameof(sentences)); } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs index b958774..1305e51 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SentimentAnalysisResult.g.cs @@ -4,22 +4,24 @@ namespace AssemblyAI { /// - /// The result of the Sentiment Analysis model + /// The result of the Sentiment Analysis model
+ /// Example: {"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.","start":250,"end":6350,"sentiment":"NEGATIVE","confidence":0.8181032538414001,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"} ///
public sealed partial class SentimentAnalysisResult { /// - /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + /// The transcript of the sentence /// - [global::System.Text.Json.Serialization.JsonPropertyName("channel")] - public string? Channel { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } /// - /// The confidence score for the detected sentiment of the sentence, from 0 to 1 + /// The starting time, in milliseconds, of the sentence /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + [global::System.Text.Json.Serialization.JsonPropertyName("start")] [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } + public required int Start { get; set; } /// /// The ending time, in milliseconds, of the sentence @@ -29,7 +31,7 @@ public sealed partial class SentimentAnalysisResult public required int End { get; set; } /// - /// + /// The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE /// [global::System.Text.Json.Serialization.JsonPropertyName("sentiment")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SentimentJsonConverter))] @@ -37,25 +39,24 @@ public sealed partial class SentimentAnalysisResult public required global::AssemblyAI.Sentiment Sentiment { get; set; } /// - /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null + /// The confidence score for the detected sentiment of the sentence, from 0 to 1 /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] [global::System.Text.Json.Serialization.JsonRequired] - public required string? Speaker { get; set; } + public required double Confidence { get; set; } /// - /// The starting time, in milliseconds, of the sentence + /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("channel")] + public string? Channel { get; set; } /// - /// The transcript of the sentence + /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } + public required string? Speaker { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -66,43 +67,45 @@ public sealed partial class SentimentAnalysisResult /// /// Initializes a new instance of the class. /// - /// - /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + /// + /// The transcript of the sentence /// - /// - /// The confidence score for the detected sentiment of the sentence, from 0 to 1 + /// + /// The starting time, in milliseconds, of the sentence /// /// /// The ending time, in milliseconds, of the sentence /// - /// - /// - /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null + /// + /// The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE /// - /// - /// The starting time, in milliseconds, of the sentence + /// + /// The confidence score for the detected sentiment of the sentence, from 0 to 1 /// - /// - /// The transcript of the sentence + /// + /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + /// + /// + /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SentimentAnalysisResult( - double confidence, + string text, + int start, int end, global::AssemblyAI.Sentiment sentiment, + double confidence, string? speaker, - int start, - string text, string? channel) { - this.Confidence = confidence; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Start = start; this.End = end; this.Sentiment = sentiment; + this.Confidence = confidence; this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); - this.Start = start; - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Channel = channel; } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs index 15991f7..3ec62ed 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs @@ -4,30 +4,30 @@ namespace AssemblyAI { /// - /// + /// Example: {"low":0.5733263024656846,"medium":0.42667369753431533,"high":0.0} /// public sealed partial class SeverityScoreSummary { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("high")] + [global::System.Text.Json.Serialization.JsonPropertyName("low")] [global::System.Text.Json.Serialization.JsonRequired] - public required double High { get; set; } + public required double Low { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("low")] + [global::System.Text.Json.Serialization.JsonPropertyName("medium")] [global::System.Text.Json.Serialization.JsonRequired] - public required double Low { get; set; } + public required double Medium { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("medium")] + [global::System.Text.Json.Serialization.JsonPropertyName("high")] [global::System.Text.Json.Serialization.JsonRequired] - public required double Medium { get; set; } + public required double High { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,20 +38,20 @@ public sealed partial class SeverityScoreSummary /// /// Initializes a new instance of the class. /// - /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SeverityScoreSummary( - double high, double low, - double medium) + double medium, + double high) { - this.High = high; this.Low = low; this.Medium = medium; + this.High = high; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.Json.g.cs new file mode 100644 index 0000000..8e99dfc --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SpeakerIdentificationRequestBody + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.SpeakerIdentificationRequestBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), + jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationRequestBody; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.SpeakerIdentificationRequestBody? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.SpeakerIdentificationRequestBody), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationRequestBody; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.g.cs new file mode 100644 index 0000000..73bbdfa --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBody.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class SpeakerIdentificationRequestBody + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speaker_identification")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification SpeakerIdentification { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SpeakerIdentificationRequestBody( + global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification speakerIdentification) + { + this.SpeakerIdentification = speakerIdentification ?? throw new global::System.ArgumentNullException(nameof(speakerIdentification)); + } + + /// + /// Initializes a new instance of the class. + /// + public SpeakerIdentificationRequestBody() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.Json.g.cs new file mode 100644 index 0000000..5883ba9 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SpeakerIdentificationRequestBodySpeakerIdentification + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification), + jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.g.cs new file mode 100644 index 0000000..3712711 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentification.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class SpeakerIdentificationRequestBodySpeakerIdentification + { + /// + /// Type of speaker identification + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speaker_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType SpeakerType { get; set; } + + /// + /// Required if speaker_type is "role". Each value must be 35 characters or less. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("known_values")] + public global::System.Collections.Generic.IList? KnownValues { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Type of speaker identification + /// + /// + /// Required if speaker_type is "role". Each value must be 35 characters or less. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SpeakerIdentificationRequestBodySpeakerIdentification( + global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType speakerType, + global::System.Collections.Generic.IList? knownValues) + { + this.SpeakerType = speakerType; + this.KnownValues = knownValues; + } + + /// + /// Initializes a new instance of the class. + /// + public SpeakerIdentificationRequestBodySpeakerIdentification() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs new file mode 100644 index 0000000..10dc778 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Type of speaker identification + /// + public enum SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType + { + /// + /// + /// + Role, + /// + /// + /// + Name, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType value) + { + return value switch + { + SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.Role => "role", + SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.Name => "name", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? ToEnum(string value) + { + return value switch + { + "role" => SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.Role, + "name" => SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType.Name, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.Json.g.cs new file mode 100644 index 0000000..293e562 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SpeakerIdentificationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.SpeakerIdentificationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SpeakerIdentificationResponse), + jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.SpeakerIdentificationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.SpeakerIdentificationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.g.cs new file mode 100644 index 0000000..1655f68 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponse.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class SpeakerIdentificationResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speaker_identification")] + public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? SpeakerIdentification { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SpeakerIdentificationResponse( + global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? speakerIdentification) + { + this.SpeakerIdentification = speakerIdentification; + } + + /// + /// Initializes a new instance of the class. + /// + public SpeakerIdentificationResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.Json.g.cs new file mode 100644 index 0000000..fab580b --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class SpeakerIdentificationResponseSpeakerIdentification + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification), + jsonSerializerContext) as global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.g.cs new file mode 100644 index 0000000..82dedb4 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeakerIdentificationResponseSpeakerIdentification.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class SpeakerIdentificationResponseSpeakerIdentification + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + public string? Status { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SpeakerIdentificationResponseSpeakerIdentification( + string? status) + { + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public SpeakerIdentificationResponseSpeakerIdentification() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs deleted file mode 100644 index f0e2f92..0000000 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace AssemblyAI -{ - /// - /// The speech model to use for the transcription. - /// - public enum SpeechModel - { - /// - /// - /// - Best, - /// - /// - /// - Slam1, - /// - /// - /// - Universal, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SpeechModelExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SpeechModel value) - { - return value switch - { - SpeechModel.Best => "best", - SpeechModel.Slam1 => "slam-1", - SpeechModel.Universal => "universal", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SpeechModel? ToEnum(string value) - { - return value switch - { - "best" => SpeechModel.Best, - "slam-1" => SpeechModel.Slam1, - "universal" => SpeechModel.Universal, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.g.cs index a5d7a3b..9e3a148 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Timestamp.g.cs @@ -4,23 +4,24 @@ namespace AssemblyAI { /// - /// Timestamp containing a start and end property in milliseconds + /// Timestamp containing a start and end property in milliseconds
+ /// Example: {"start":3978,"end":5114} ///
public sealed partial class Timestamp { /// - /// The end time in milliseconds + /// The start time in milliseconds /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] + [global::System.Text.Json.Serialization.JsonPropertyName("start")] [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } + public required int Start { get; set; } /// - /// The start time in milliseconds + /// The end time in milliseconds /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] + [global::System.Text.Json.Serialization.JsonPropertyName("end")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } + public required int End { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,21 +32,21 @@ public sealed partial class Timestamp /// /// Initializes a new instance of the class. /// - /// - /// The end time in milliseconds - /// /// /// The start time in milliseconds /// + /// + /// The end time in milliseconds + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Timestamp( - int end, - int start) + int start, + int end) { - this.End = end; this.Start = start; + this.End = end; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs index e466090..47a14fc 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs @@ -5,24 +5,25 @@ namespace AssemblyAI { /// /// The result of the Topic Detection model, if it is enabled.
- /// See [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) for more information. + /// See [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) 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":[{"relevance":0.988274097442627,"label":"Home\u0026Garden\u003EIndoorEnvironmentalQuality"},{"relevance":0.5821335911750793,"label":"NewsAndPolitics\u003EWeather"},{"relevance":0.0042327106930315495,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth"},{"relevance":0.0033971222583204508,"label":"NewsAndPolitics\u003EDisasters"},{"relevance":0.002469958271831274,"label":"BusinessAndFinance\u003EBusiness\u003EGreenSolutions"},{"relevance":0.0014376690378412604,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ECancer"},{"relevance":0.0014294233405962586,"label":"Science\u003EEnvironment"},{"relevance":0.001234519761055708,"label":"Travel\u003ETravelLocations\u003EPolarTravel"},{"relevance":0.0010231725173071027,"label":"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu"},{"relevance":0.0007445293595083058,"label":"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry"}],"timestamp":{"start":250,"end":28840}}],"summary":{"NewsAndPolitics\u003EWeather":1.0,"Home\u0026Garden\u003EIndoorEnvironmentalQuality":0.9043831825256348,"Science\u003EEnvironment":0.16117265820503235,"BusinessAndFinance\u003EIndustries\u003EEnvironmentalServicesIndustry":0.14393523335456848,"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth":0.11401086300611496,"BusinessAndFinance\u003EBusiness\u003EGreenSolutions":0.06348437070846558,"NewsAndPolitics\u003EDisasters":0.05041387677192688,"Travel\u003ETravelLocations\u003EPolarTravel":0.01308488193899393,"HealthyLiving":0.008222488686442375,"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu":0.0022315620444715023,"MedicalHealth\u003EDiseasesAndConditions\u003EHeartAndCardiovascularDiseases":0.00213034451007843,"HealthyLiving\u003EWellness\u003ESmokingCessation":0.001540527562610805,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries":0.0013950627762824297,"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry":0.0012570273829624057,"MedicalHealth\u003EDiseasesAndConditions\u003ECancer":0.001097781932912767,"MedicalHealth\u003EDiseasesAndConditions\u003EAllergies":0.0010148967849090695,"MedicalHealth\u003EDiseasesAndConditions\u003EMentalHealth":0.000717321818228811,"Style\u0026Fashion\u003EPersonalCare\u003EDeodorantAndAntiperspirant":0.0006022014422342181,"Technology\u0026Computing\u003EComputing\u003EComputerNetworking":0.0005461975233629346,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries\u003EFirstAid":0.0004885646631009877}} ///
public sealed partial class TopicDetectionModelResult { /// - /// An array of results for the Topic Detection model + /// The status of the Topic Detection model. Either success, or unavailable in the rare case that the model failed. /// - [global::System.Text.Json.Serialization.JsonPropertyName("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; } /// - /// Either success, or unavailable in the rare case that the model failed + /// An array of results for the Topic Detection model /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonPropertyName("results")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.AudioIntelligenceModelStatus Status { get; set; } + public required global::System.Collections.Generic.IList Results { get; set; } /// /// The overall relevance of topic to the entire audio file @@ -40,12 +41,12 @@ public sealed partial class TopicDetectionModelResult /// /// Initializes a new instance of the class. /// + /// + /// The status of the Topic Detection model. Either success, or unavailable in the rare case that the model failed. + /// /// /// An array of results for the Topic Detection model /// - /// - /// Either success, or unavailable in the rare case that the model failed - /// /// /// The overall relevance of topic to the entire audio file /// @@ -53,12 +54,12 @@ public sealed partial class TopicDetectionModelResult [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TopicDetectionModelResult( - global::System.Collections.Generic.IList results, global::AssemblyAI.AudioIntelligenceModelStatus status, + global::System.Collections.Generic.IList results, global::System.Collections.Generic.Dictionary summary) { - this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Status = status; + this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.g.cs index a228bc3..1ef4189 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResult.g.cs @@ -4,16 +4,11 @@ namespace AssemblyAI { /// - /// The result of the topic detection model + /// The result of the topic detection model
+ /// 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":[{"relevance":0.988274097442627,"label":"Home\u0026Garden\u003EIndoorEnvironmentalQuality"},{"relevance":0.5821335911750793,"label":"NewsAndPolitics\u003EWeather"},{"relevance":0.0042327106930315495,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth"},{"relevance":0.0033971222583204508,"label":"NewsAndPolitics\u003EDisasters"},{"relevance":0.002469958271831274,"label":"BusinessAndFinance\u003EBusiness\u003EGreenSolutions"},{"relevance":0.0014376690378412604,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ECancer"},{"relevance":0.0014294233405962586,"label":"Science\u003EEnvironment"},{"relevance":0.001234519761055708,"label":"Travel\u003ETravelLocations\u003EPolarTravel"},{"relevance":0.0010231725173071027,"label":"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu"},{"relevance":0.0007445293595083058,"label":"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry"}],"timestamp":{"start":250,"end":28840}} ///
public sealed partial class TopicDetectionResult { - /// - /// An array of detected topics in the text - /// - [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - public global::System.Collections.Generic.IList? Labels { get; set; } - /// /// The text in the transcript in which a detected topic occurs /// @@ -22,8 +17,16 @@ public sealed partial class TopicDetectionResult public required string Text { get; set; } /// - /// Timestamp containing a start and end property in milliseconds + /// An array of detected topics in the text + /// + [global::System.Text.Json.Serialization.JsonPropertyName("labels")] + public global::System.Collections.Generic.IList? Labels { get; set; } + + /// + /// Timestamp containing a start and end property in milliseconds
+ /// Example: {"start":3978,"end":5114} ///
+ /// {"start":3978,"end":5114} [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")] public global::AssemblyAI.Timestamp? Timestamp { get; set; } @@ -36,14 +39,15 @@ public sealed partial class TopicDetectionResult /// /// Initializes a new instance of the class. /// - /// - /// An array of detected topics in the text - /// /// /// The text in the transcript in which a detected topic occurs /// + /// + /// An array of detected topics in the text + /// /// - /// Timestamp containing a start and end property in milliseconds + /// Timestamp containing a start and end property in milliseconds
+ /// Example: {"start":3978,"end":5114} /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabel.g.cs index d839a3c..81eefa0 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabel.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionResultLabel.g.cs @@ -9,18 +9,18 @@ namespace AssemblyAI public sealed partial class TopicDetectionResultLabel { /// - /// The IAB taxonomical label for the label of the detected topic, where > denotes supertopic/subtopic relationship + /// How relevant the detected topic is of a detected topic /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonPropertyName("relevance")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Label { get; set; } + public required double Relevance { get; set; } /// - /// How relevant the detected topic is of a detected topic + /// The IAB taxonomical label for the label of the detected topic, where > denotes supertopic/subtopic relationship /// - [global::System.Text.Json.Serialization.JsonPropertyName("relevance")] + [global::System.Text.Json.Serialization.JsonPropertyName("label")] [global::System.Text.Json.Serialization.JsonRequired] - public required double Relevance { get; set; } + public required string Label { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,21 +31,21 @@ public sealed partial class TopicDetectionResultLabel /// /// Initializes a new instance of the class. /// - /// - /// The IAB taxonomical label for the label of the detected topic, where > denotes supertopic/subtopic relationship - /// /// /// How relevant the detected topic is of a detected topic /// + /// + /// The IAB taxonomical label for the label of the detected topic, where > denotes supertopic/subtopic relationship + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TopicDetectionResultLabel( - string label, - double relevance) + double relevance, + string label) { - this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); this.Relevance = relevance; + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs index 6574428..48e07b8 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs @@ -6,17 +6,11 @@ namespace AssemblyAI { /// - /// A transcript object + /// A transcript object
+ /// Example: {"id":"9ea68fd3-f953-42c1-9742-976c447fb463","speech_model":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","language_model":"assemblyai_default","acoustic_model":"assemblyai_default","language_code":"en_us","language_detection":true,"language_confidence_threshold":0.7,"language_confidence":0.9959,"status":"completed","audio_url":"https://assembly.ai/wildfires.mp3","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. What is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there\u0027s a couple of things. The season has been pretty dry already. And then the fact that we\u0027re getting hit in the US. Is because there\u0027s a couple of weather systems that are essentially channeling the smoke from those Canadian wildfires through Pennsylvania into the Mid Atlantic and the Northeast and kind of just dropping the smoke there. So what is it in this haze that makes it harmful? And I\u0027m assuming it is harmful. It is. The levels outside right now in Baltimore are considered unhealthy. And most of that is due to what\u0027s called particulate matter, which are tiny particles, microscopic smaller than the width of your hair that can get into your lungs and impact your respiratory system, your cardiovascular system, and even your neurological your brain. What makes this particularly harmful? Is it the volume of particulant? Is it something in particular? What is it exactly? Can you just drill down on that a little bit more? Yeah. So the concentration of particulate matter I was looking at some of the monitors that we have was reaching levels of what are, in science, big 150 micrograms per meter cubed, which is more than ten times what the annual average should be and about four times higher than what you\u0027re supposed to have on a 24 hours average. And so the concentrations of these particles in the air are just much, much higher than we typically see. And exposure to those high levels can lead to a host of health problems. And who is most vulnerable? I noticed that in New York City, for example, they\u0027re canceling outdoor activities. And so here it is in the early days of summer, and they have to keep all the kids inside. So who tends to be vulnerable in a situation like this? It\u0027s the youngest. So children, obviously, whose bodies are still developing. The elderly, who are their bodies are more in decline and they\u0027re more susceptible to the health impacts of breathing, the poor air quality. And then people who have preexisting health conditions, people with respiratory conditions or heart conditions can be triggered by high levels of air pollution. Could this get worse? That\u0027s a good question. In some areas, it\u0027s much worse than others. And it just depends on kind of where the smoke is concentrated. I think New York has some of the higher concentrations right now, but that\u0027s going to change as that air moves away from the New York area. But over the course of the next few days, we will see different areas being hit at different times with the highest concentrations. I was going to ask you about more fires start burning. I don\u0027t expect the concentrations to go up too much higher. I was going to ask you how and you started to answer this, but how much longer could this last? Or forgive me if I\u0027m asking you to speculate, but what do you think? Well, I think the fires are going to burn for a little bit longer, but the key for us in the US. Is the weather system changing. And so right now, it\u0027s kind of the weather systems that are pulling that air into our mid Atlantic and Northeast region. As those weather systems change and shift, we\u0027ll see that smoke going elsewhere and not impact us in this region as much. And so I think that\u0027s going to be the defining factor. And I think the next couple of days we\u0027re going to see a shift in that weather pattern and start to push the smoke away from where we are. And finally, with the impacts of climate change, we are seeing more wildfires. Will we be seeing more of these kinds of wide ranging air quality consequences or circumstances? I mean, that is one of the predictions for climate change. Looking into the future, the fire season is starting earlier and lasting longer, and we\u0027re seeing more frequent fires. So, yeah, this is probably something that we\u0027ll be seeing more frequently. This tends to be much more of an issue in the Western US. So the eastern US. Getting hit right now is a little bit new. But yeah, I think with climate change moving forward, this is something that is going to happen more frequently. That\u0027s Peter De Carlo, associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Sergeant Carlo, thanks so much for joining us and sharing this expertise with us. Thank you for having me.","words":[{"text":"Smoke","start":250,"end":650,"confidence":0.97465,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"from","start":730,"end":1022,"confidence":0.99999,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"hundreds","start":1076,"end":1418,"confidence":0.99844,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"of","start":1434,"end":1614,"confidence":0.84,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"wildfires","start":1652,"end":2346,"confidence":0.89572,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"in","start":2378,"end":2526,"confidence":0.99994,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"Canada","start":2548,"end":3130,"confidence":0.93953,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"is","start":3210,"end":3454,"confidence":0.999,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"triggering","start":3492,"end":3946,"confidence":0.74794,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"air","start":3978,"end":4174,"confidence":1.0,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"quality","start":4212,"end":4558,"confidence":0.88077,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"alerts","start":4644,"end":5114,"confidence":0.94814,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"throughout","start":5162,"end":5466,"confidence":0.99726,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"the","start":5498,"end":5694,"confidence":0.79,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"US.","start":5732,"end":6382,"confidence":0.89,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}],"utterances":[{"confidence":0.9359033333333334,"end":26950,"speaker":"A","start":250,"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.","words":[{"text":"Smoke","start":250,"end":650,"confidence":0.97503,"speaker":"A"},{"text":"from","start":730,"end":1022,"confidence":0.99999,"speaker":"A"},{"text":"hundreds","start":1076,"end":1418,"confidence":0.99843,"speaker":"A"},{"text":"of","start":1434,"end":1614,"confidence":0.85,"speaker":"A"},{"text":"wildfires","start":1652,"end":2346,"confidence":0.89657,"speaker":"A"},{"text":"in","start":2378,"end":2526,"confidence":0.99994,"speaker":"A"},{"text":"Canada","start":2548,"end":3130,"confidence":0.93864,"speaker":"A"},{"text":"is","start":3210,"end":3454,"confidence":0.999,"speaker":"A"},{"text":"triggering","start":3492,"end":3946,"confidence":0.75366,"speaker":"A"},{"text":"air","start":3978,"end":4174,"confidence":1.0,"speaker":"A"},{"text":"quality","start":4212,"end":4558,"confidence":0.87745,"speaker":"A"},{"text":"alerts","start":4644,"end":5114,"confidence":0.94739,"speaker":"A"},{"text":"throughout","start":5162,"end":5466,"confidence":0.99726,"speaker":"A"},{"text":"the","start":5498,"end":5694,"confidence":0.79,"speaker":"A"},{"text":"US.","start":5732,"end":6382,"confidence":0.88,"speaker":"A"}]}],"confidence":0.9404651451800253,"audio_duration":281,"punctuate":true,"format_text":true,"multichannel":false,"webhook_url":"https://your-webhook-url.tld/path","webhook_status_code":200,"webhook_auth":true,"webhook_auth_header_name":"webhook-secret","auto_highlights_result":{"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}]}]},"auto_highlights":true,"audio_start_from":10,"audio_end_at":280,"filter_profanity":true,"redact_pii":true,"redact_pii_audio":true,"redact_pii_audio_quality":"mp3","redact_pii_policies":["us_social_security_number","credit_card_number"],"redact_pii_sub":"hash","speaker_labels":true,"content_safety":true,"iab_categories":true,"content_safety_labels":{"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}}},"iab_categories_result":{"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":[{"relevance":0.988274097442627,"label":"Home\u0026Garden\u003EIndoorEnvironmentalQuality"},{"relevance":0.5821335911750793,"label":"NewsAndPolitics\u003EWeather"},{"relevance":0.0042327106930315495,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth"},{"relevance":0.0033971222583204508,"label":"NewsAndPolitics\u003EDisasters"},{"relevance":0.002469958271831274,"label":"BusinessAndFinance\u003EBusiness\u003EGreenSolutions"},{"relevance":0.0014376690378412604,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ECancer"},{"relevance":0.0014294233405962586,"label":"Science\u003EEnvironment"},{"relevance":0.001234519761055708,"label":"Travel\u003ETravelLocations\u003EPolarTravel"},{"relevance":0.0010231725173071027,"label":"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu"},{"relevance":0.0007445293595083058,"label":"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry"}],"timestamp":{"start":250,"end":28840}}],"summary":{"NewsAndPolitics\u003EWeather":1.0,"Home\u0026Garden\u003EIndoorEnvironmentalQuality":0.9043831825256348,"Science\u003EEnvironment":0.16117265820503235,"BusinessAndFinance\u003EIndustries\u003EEnvironmentalServicesIndustry":0.14393523335456848,"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth":0.11401086300611496,"BusinessAndFinance\u003EBusiness\u003EGreenSolutions":0.06348437070846558,"NewsAndPolitics\u003EDisasters":0.05041387677192688,"Travel\u003ETravelLocations\u003EPolarTravel":0.01308488193899393,"HealthyLiving":0.008222488686442375,"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu":0.0022315620444715023,"MedicalHealth\u003EDiseasesAndConditions\u003EHeartAndCardiovascularDiseases":0.00213034451007843,"HealthyLiving\u003EWellness\u003ESmokingCessation":0.001540527562610805,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries":0.0013950627762824297,"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry":0.0012570273829624057,"MedicalHealth\u003EDiseasesAndConditions\u003ECancer":0.001097781932912767,"MedicalHealth\u003EDiseasesAndConditions\u003EAllergies":0.0010148967849090695,"MedicalHealth\u003EDiseasesAndConditions\u003EMentalHealth":0.000717321818228811,"Style\u0026Fashion\u003EPersonalCare\u003EDeodorantAndAntiperspirant":0.0006022014422342181,"Technology\u0026Computing\u003EComputing\u003EComputerNetworking":0.0005461975233629346,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries\u003EFirstAid":0.0004885646631009877}},"custom_spelling":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","throttled":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","auto_chapters":true,"summarization":true,"summary_type":"bullets","summary_model":"informative","custom_topics":true,"topics":[],"speech_threshold":0.5,"disfluencies":false,"sentiment_analysis":true,"chapters":[{"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},{"summary":"Air pollution levels in Baltimore are considered unhealthy. Exposure to high levels can lead to a host of health problems. With climate change, we are seeing more wildfires. Will we be seeing more of these kinds of wide ranging air quality consequences?","gist":"What is it about the conditions right now that have caused this round","headline":"High particulate matter in wildfire smoke can lead to serious health problems","start":29610,"end":280340}],"sentiment_analysis_results":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","entity_detection":true,"entities":[{"entity_type":"location","text":"Canada","start":2548,"end":3130},{"entity_type":"location","text":"the US","start":5498,"end":6382},{"entity_type":"location","text":"Maine","start":7492,"end":7914},{"entity_type":"location","text":"Maryland","start":8212,"end":8634},{"entity_type":"location","text":"Minnesota","start":8932,"end":9578},{"entity_type":"person_name","text":"Peter de Carlo","start":18948,"end":19930},{"entity_type":"occupation","text":"associate professor","start":20292,"end":21194},{"entity_type":"organization","text":"Department of Environmental Health and Engineering","start":21508,"end":23706},{"entity_type":"organization","text":"Johns Hopkins University Varsity","start":23972,"end":25490},{"entity_type":"occupation","text":"professor","start":26076,"end":26950},{"entity_type":"location","text":"the US","start":45184,"end":45898},{"entity_type":"nationality","text":"Canadian","start":49728,"end":50086}],"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.\\n- Air pollution levels in Baltimore are considered unhealthy. Exposure to high levels can lead to a host of health problems. With climate change, we are seeing more wildfires. Will we be seeing more of these kinds of wide ranging air quality consequences?","speakers_expected":2} ///
public sealed partial class Transcript { - /// - /// The acoustic model that was used for the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("acoustic_model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AcousticModel { get; set; } - /// /// The number of audio channels in the audio file. This is only present when multichannel is enabled. /// @@ -66,7 +60,8 @@ public sealed partial class Transcript /// See [Key Phrases](https://www.assemblyai.com/docs/models/key-phrases) for more information. ///
[global::System.Text.Json.Serialization.JsonPropertyName("auto_highlights_result")] - public object? AutoHighlightsResult { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? AutoHighlightsResult { get; set; } /// /// An array of temporally sequential chapters for the audio file @@ -91,7 +86,8 @@ public sealed partial class Transcript /// See [Content moderation](https://www.assemblyai.com/docs/models/content-moderation) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("content_safety_labels")] - public object? ContentSafetyLabels { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? ContentSafetyLabels { get; set; } /// /// Customize how words are spelled and formatted using to and from values @@ -99,26 +95,12 @@ public sealed partial class Transcript [global::System.Text.Json.Serialization.JsonPropertyName("custom_spelling")] public global::System.Collections.Generic.IList? CustomSpelling { get; set; } - /// - /// Whether custom topics is enabled, either true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_topics")] - [global::System.Obsolete("This property marked as deprecated.")] - public bool? CustomTopics { get; set; } - /// /// Transcribe Filler Words, like "umm", in your media file; can be true or false /// [global::System.Text.Json.Serialization.JsonPropertyName("disfluencies")] public bool? Disfluencies { get; set; } - /// - /// Whether [Dual channel transcription](https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription) was enabled in the transcription request, either true or false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dual_channel")] - [global::System.Obsolete("This property marked as deprecated.")] - public bool? DualChannel { get; set; } - /// /// An array of results for the Entity Detection model, if it is enabled.
/// See [Entity detection](https://www.assemblyai.com/docs/models/entity-detection) for more information. @@ -161,7 +143,8 @@ public sealed partial class Transcript /// See [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) for more information. ///
[global::System.Text.Json.Serialization.JsonPropertyName("iab_categories_result")] - public object? IabCategoriesResult { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? IabCategoriesResult { get; set; } /// /// The unique identifier of your transcript @@ -171,7 +154,7 @@ public sealed partial class Transcript public required global::System.Guid Id { get; set; } /// - /// Improve accuracy with up to 200 (for Universal) or 1000 (for Slam-1) domain-specific words or phrases (maximum 6 words per phrase). + /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3-Pro) domain-specific words or phrases (maximum 6 words per phrase). /// [global::System.Text.Json.Serialization.JsonPropertyName("keyterms_prompt")] public global::System.Collections.Generic.IList? KeytermsPrompt { get; set; } @@ -185,6 +168,13 @@ public sealed partial class Transcript [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter))] public global::AssemblyAI.AnyOf? LanguageCode { get; set; } + /// + /// The language codes of your audio file. Used for [Code switching](/docs/speech-to-text/pre-recorded-audio/code-switching)
+ /// One of the values specified must be `en`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("language_codes")] + public global::System.Collections.Generic.IList? LanguageCodes { get; set; } + /// /// The confidence score for the detected language, between 0.0 (low confidence) and 1.0 (high confidence) /// @@ -201,7 +191,7 @@ public sealed partial class Transcript public required float? LanguageConfidenceThreshold { get; set; } /// - /// Whether [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection) is enabled, either true or false + /// Whether [Automatic language detection](/docs/pre-recorded-audio/automatic-language-detection) is enabled, either true or false /// [global::System.Text.Json.Serialization.JsonPropertyName("language_detection")] public bool? LanguageDetection { get; set; } @@ -212,13 +202,6 @@ public sealed partial class Transcript [global::System.Text.Json.Serialization.JsonPropertyName("language_detection_options")] public global::AssemblyAI.TranscriptLanguageDetectionOptions? LanguageDetectionOptions { get; set; } - /// - /// The language model that was used for the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language_model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string LanguageModel { get; set; } - /// /// Whether [Multichannel transcription](https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription) was enabled in the transcription request, either true or false /// @@ -226,10 +209,10 @@ public sealed partial class Transcript public bool? Multichannel { get; set; } /// - /// This parameter does not currently have any functionality attached to it. + /// Provide natural language prompting of up to 1,500 words of contextual information to the model.
+ /// Note: This parameter is only supported for the Universal-3-Pro model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Obsolete("This property marked as deprecated.")] public string? Prompt { get; set; } /// @@ -257,7 +240,8 @@ public sealed partial class Transcript /// See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_quality")] - public object? RedactPiiAudioQuality { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? RedactPiiAudioQuality { get; set; } /// /// The list of PII Redaction policies that were enabled, if PII Redaction is enabled.
@@ -267,7 +251,7 @@ public sealed partial class Transcript public global::System.Collections.Generic.IList? RedactPiiPolicies { get; set; } /// - /// The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. + /// The replacement logic for detected PII, can be `entity_type` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. /// [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_sub")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SubstitutionPolicyJsonConverter))] @@ -299,11 +283,16 @@ public sealed partial class Transcript public int? SpeakersExpected { get; set; } /// - /// The speech model used for the transcription. When `null`, the `universal` model is used. + /// The speech model that was actually used for the transcription. /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object? SpeechModel { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("speech_model_used")] + public string? SpeechModelUsed { get; set; } + + /// + /// List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speech_models")] + public global::System.Collections.Generic.IList? SpeechModels { get; set; } /// /// Defaults to null. Reject audio files that contain less than this fraction of speech.
@@ -313,11 +302,10 @@ public sealed partial class Transcript public float? SpeechThreshold { get; set; } /// - /// Whether speed boost is enabled + /// Enable speech understanding tasks like translation, speaker identification, and custom formatting /// - [global::System.Text.Json.Serialization.JsonPropertyName("speed_boost")] - [global::System.Obsolete("This property marked as deprecated.")] - public bool? SpeedBoost { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("speech_understanding")] + public global::AssemblyAI.TranscriptSpeechUnderstanding? SpeechUnderstanding { get; set; } /// /// The status of your transcript. Possible values are queued, processing, completed, or error. @@ -353,6 +341,13 @@ public sealed partial class Transcript [global::System.Text.Json.Serialization.JsonPropertyName("summary_type")] public string? SummaryType { get; set; } + /// + /// The temperature that was used for the model's response.
+ /// Note: This parameter can only be used with the Universal-3-Pro model. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public double? Temperature { get; set; } + /// /// The textual transcript of your media file /// @@ -365,12 +360,6 @@ public sealed partial class Transcript [global::System.Text.Json.Serialization.JsonPropertyName("throttled")] public bool? Throttled { get; set; } - /// - /// The list of custom topics provided if custom topics is enabled - /// - [global::System.Text.Json.Serialization.JsonPropertyName("topics")] - public global::System.Collections.Generic.IList? Topics { get; set; } - /// /// When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
/// See [Speaker diarization](https://www.assemblyai.com/docs/speech-to-text/speaker-diarization) and [Multichannel transcription](https://www.assemblyai.com/docs/speech-to-text/speech-recognition#multichannel-transcription) for more information. @@ -412,6 +401,55 @@ public sealed partial class Transcript [global::System.Text.Json.Serialization.JsonPropertyName("words")] public global::System.Collections.Generic.IList? Words { get; set; } + /// + /// This parameter does not currently have any functionality attached to it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("acoustic_model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AcousticModel { get; set; } + + /// + /// This parameter does not currently have any functionality attached to it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_topics")] + [global::System.Obsolete("This property marked as deprecated.")] + public bool? CustomTopics { get; set; } + + /// + /// This parameter does not currently have any functionality attached to it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language_model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string LanguageModel { get; set; } + + /// + /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AssemblyAI.OneOf SpeechModel { get; set; } + + /// + /// This parameter does not currently have any functionality attached to it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speed_boost")] + [global::System.Obsolete("This property marked as deprecated.")] + public bool? SpeedBoost { get; set; } + + /// + /// This parameter does not currently have any functionality attached to it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("topics")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::System.Collections.Generic.IList? Topics { get; set; } + + /// + /// Translated text keyed by language code + /// + [global::System.Text.Json.Serialization.JsonPropertyName("translated_texts")] + public global::AssemblyAI.TranscriptTranslatedTexts? TranslatedTexts { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -421,9 +459,6 @@ public sealed partial class Transcript /// /// Initializes a new instance of the class. /// - /// - /// The acoustic model that was used for the transcript - /// /// /// The number of audio channels in the audio file. This is only present when multichannel is enabled. /// @@ -495,13 +530,17 @@ public sealed partial class Transcript /// The unique identifier of your transcript /// /// - /// Improve accuracy with up to 200 (for Universal) or 1000 (for Slam-1) domain-specific words or phrases (maximum 6 words per phrase). + /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3-Pro) domain-specific words or phrases (maximum 6 words per phrase). /// /// /// The language of your audio file.
/// Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
/// The default value is 'en_us'. /// + /// + /// The language codes of your audio file. Used for [Code switching](/docs/speech-to-text/pre-recorded-audio/code-switching)
+ /// One of the values specified must be `en`. + /// /// /// The confidence score for the detected language, between 0.0 (low confidence) and 1.0 (high confidence) /// @@ -510,17 +549,18 @@ public sealed partial class Transcript /// An error will be returned if the language confidence is below this threshold. /// /// - /// Whether [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection) is enabled, either true or false + /// Whether [Automatic language detection](/docs/pre-recorded-audio/automatic-language-detection) is enabled, either true or false /// /// /// Specify options for Automatic Language Detection. /// - /// - /// The language model that was used for the transcript - /// /// /// Whether [Multichannel transcription](https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription) was enabled in the transcription request, either true or false /// + /// + /// Provide natural language prompting of up to 1,500 words of contextual information to the model.
+ /// Note: This parameter is only supported for the Universal-3-Pro model. + /// /// /// Whether Automatic Punctuation is enabled, either true or false /// @@ -540,7 +580,7 @@ public sealed partial class Transcript /// See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. /// /// - /// The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. + /// The replacement logic for detected PII, can be `entity_type` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. /// /// /// Whether [Sentiment Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis) is enabled, can be true or false @@ -555,13 +595,19 @@ public sealed partial class Transcript /// /// Tell the speaker label model how many speakers it should attempt to identify. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details. /// - /// - /// The speech model used for the transcription. When `null`, the `universal` model is used. + /// + /// The speech model that was actually used for the transcription. + /// + /// + /// List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. /// /// /// Defaults to null. Reject audio files that contain less than this fraction of speech.
/// Valid values are in the range [0, 1] inclusive. /// + /// + /// Enable speech understanding tasks like translation, speaker identification, and custom formatting + /// /// /// The status of your transcript. Possible values are queued, processing, completed, or error. /// @@ -578,15 +624,16 @@ public sealed partial class Transcript /// /// The type of summary generated, if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled /// + /// + /// The temperature that was used for the model's response.
+ /// Note: This parameter can only be used with the Universal-3-Pro model. + /// /// /// The textual transcript of your media file /// /// /// True while a request is throttled and false when a request is no longer throttled /// - /// - /// The list of custom topics provided if custom topics is enabled - /// /// /// When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
/// See [Speaker diarization](https://www.assemblyai.com/docs/speech-to-text/speaker-diarization) and [Multichannel transcription](https://www.assemblyai.com/docs/speech-to-text/speech-recognition#multichannel-transcription) for more information. @@ -609,32 +656,44 @@ public sealed partial class Transcript /// An array of temporally-sequential word objects, one for each word in the transcript.
/// See [Speech recognition](https://www.assemblyai.com/docs/models/speech-recognition) for more information. /// + /// + /// This parameter does not currently have any functionality attached to it. + /// + /// + /// This parameter does not currently have any functionality attached to it. + /// + /// + /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). + /// + /// + /// Translated text keyed by language code + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Transcript( - string acousticModel, string audioUrl, bool autoHighlights, global::System.Guid id, double? languageConfidence, float? languageConfidenceThreshold, - string languageModel, bool redactPii, - object? speechModel, global::AssemblyAI.TranscriptStatus status, bool summarization, bool webhookAuth, + string acousticModel, + string languageModel, + global::AssemblyAI.OneOf speechModel, int? audioChannels, int? audioDuration, int? audioEndAt, int? audioStartFrom, bool? autoChapters, - object? autoHighlightsResult, + global::AssemblyAI.OneOf? autoHighlightsResult, global::System.Collections.Generic.IList? chapters, double? confidence, bool? contentSafety, - object? contentSafetyLabels, + global::AssemblyAI.OneOf? contentSafetyLabels, global::System.Collections.Generic.IList? customSpelling, bool? disfluencies, global::System.Collections.Generic.IList? entities, @@ -643,46 +702,52 @@ public Transcript( bool? filterProfanity, bool? formatText, bool? iabCategories, - object? iabCategoriesResult, + global::AssemblyAI.OneOf? iabCategoriesResult, global::System.Collections.Generic.IList? keytermsPrompt, global::AssemblyAI.AnyOf? languageCode, + global::System.Collections.Generic.IList? languageCodes, bool? languageDetection, global::AssemblyAI.TranscriptLanguageDetectionOptions? languageDetectionOptions, bool? multichannel, + string? prompt, bool? punctuate, bool? redactPiiAudio, - object? redactPiiAudioQuality, + global::AssemblyAI.OneOf? redactPiiAudioQuality, global::System.Collections.Generic.IList? redactPiiPolicies, global::AssemblyAI.SubstitutionPolicy? redactPiiSub, bool? sentimentAnalysis, global::System.Collections.Generic.IList? sentimentAnalysisResults, bool? speakerLabels, int? speakersExpected, + string? speechModelUsed, + global::System.Collections.Generic.IList? speechModels, float? speechThreshold, + global::AssemblyAI.TranscriptSpeechUnderstanding? speechUnderstanding, string? summary, string? summaryModel, string? summaryType, + double? temperature, string? text, bool? throttled, - global::System.Collections.Generic.IList? topics, global::System.Collections.Generic.IList? utterances, string? webhookAuthHeaderName, int? webhookStatusCode, string? webhookUrl, - global::System.Collections.Generic.IList? words) + global::System.Collections.Generic.IList? words, + global::AssemblyAI.TranscriptTranslatedTexts? translatedTexts) { - this.AcousticModel = acousticModel ?? throw new global::System.ArgumentNullException(nameof(acousticModel)); this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); this.AutoHighlights = autoHighlights; this.Id = id; this.LanguageConfidence = languageConfidence; this.LanguageConfidenceThreshold = languageConfidenceThreshold; - this.LanguageModel = languageModel ?? throw new global::System.ArgumentNullException(nameof(languageModel)); this.RedactPii = redactPii; - this.SpeechModel = speechModel ?? throw new global::System.ArgumentNullException(nameof(speechModel)); this.Status = status; this.Summarization = summarization; this.WebhookAuth = webhookAuth; + this.AcousticModel = acousticModel ?? throw new global::System.ArgumentNullException(nameof(acousticModel)); + this.LanguageModel = languageModel ?? throw new global::System.ArgumentNullException(nameof(languageModel)); + this.SpeechModel = speechModel; this.AudioChannels = audioChannels; this.AudioDuration = audioDuration; this.AudioEndAt = audioEndAt; @@ -704,9 +769,11 @@ public Transcript( this.IabCategoriesResult = iabCategoriesResult; this.KeytermsPrompt = keytermsPrompt; this.LanguageCode = languageCode; + this.LanguageCodes = languageCodes; this.LanguageDetection = languageDetection; this.LanguageDetectionOptions = languageDetectionOptions; this.Multichannel = multichannel; + this.Prompt = prompt; this.Punctuate = punctuate; this.RedactPiiAudio = redactPiiAudio; this.RedactPiiAudioQuality = redactPiiAudioQuality; @@ -716,18 +783,22 @@ public Transcript( this.SentimentAnalysisResults = sentimentAnalysisResults; this.SpeakerLabels = speakerLabels; this.SpeakersExpected = speakersExpected; + this.SpeechModelUsed = speechModelUsed; + this.SpeechModels = speechModels; this.SpeechThreshold = speechThreshold; + this.SpeechUnderstanding = speechUnderstanding; this.Summary = summary; this.SummaryModel = summaryModel; this.SummaryType = summaryType; + this.Temperature = temperature; this.Text = text; this.Throttled = throttled; - this.Topics = topics; this.Utterances = utterances; this.WebhookAuthHeaderName = webhookAuthHeaderName; this.WebhookStatusCode = webhookStatusCode; this.WebhookUrl = webhookUrl; this.Words = words; + this.TranslatedTexts = translatedTexts; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.g.cs index d458887..ff8f0cf 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptCustomSpelling.g.cs @@ -4,7 +4,8 @@ namespace AssemblyAI { /// - /// Object containing words or phrases to replace, and the word or phrase to replace with + /// Object containing words or phrases to replace, and the word or phrase to replace with
+ /// Example: {"from":["dicarlo"],"to":"Decarlo"} ///
public sealed partial class TranscriptCustomSpelling { diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs index 4747b70..6426900 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs @@ -12,7 +12,7 @@ public sealed partial class TranscriptLanguageDetectionOptions /// List of languages expected in the audio file. Defaults to `["all"]` when unspecified. ///
[global::System.Text.Json.Serialization.JsonPropertyName("expected_languages")] - public byte[]? ExpectedLanguages { get; set; } + public global::System.Collections.Generic.IList? ExpectedLanguages { get; set; } /// /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score.
@@ -21,6 +21,20 @@ public sealed partial class TranscriptLanguageDetectionOptions [global::System.Text.Json.Serialization.JsonPropertyName("fallback_language")] public string? FallbackLanguage { get; set; } + /// + /// Whether code switching should be detected.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code_switching")] + public bool? CodeSwitching { get; set; } + + /// + /// The confidence threshold for code switching detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.
+ /// Default Value: 0.3 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code_switching_confidence_threshold")] + public double? CodeSwitchingConfidenceThreshold { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -37,15 +51,27 @@ public sealed partial class TranscriptLanguageDetectionOptions /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score.
/// Default Value: auto /// + /// + /// Whether code switching should be detected.
+ /// Default Value: false + /// + /// + /// The confidence threshold for code switching detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.
+ /// Default Value: 0.3 + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptLanguageDetectionOptions( - byte[]? expectedLanguages, - string? fallbackLanguage) + global::System.Collections.Generic.IList? expectedLanguages, + string? fallbackLanguage, + bool? codeSwitching, + double? codeSwitchingConfidenceThreshold) { this.ExpectedLanguages = expectedLanguages; this.FallbackLanguage = fallbackLanguage; + this.CodeSwitching = codeSwitching; + this.CodeSwitchingConfidenceThreshold = codeSwitchingConfidenceThreshold; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.g.cs index 0791bd6..9fb0a9d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptList.g.cs @@ -4,13 +4,16 @@ namespace AssemblyAI { /// - /// A list of transcripts. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts. + /// A list of transcripts. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.
+ /// Example: {"page_details":{"limit":3,"result_count":3,"current_url":"https://api.assemblyai.com/v2/transcript?limit=3","prev_url":"https://api.assemblyai.com/v2/transcript?limit=3\u0026before_id=28a73d01-98db-41dd-9e98-2533ba0af117","next_url":"https://api.assemblyai.com/v2/transcript?limit=3\u0026after_id=b33f4691-85b7-4f31-be12-a87cef1c1229"},"transcripts":[{"id":"b33f4691-85b7-4f31-be12-a87cef1c1229","resource_url":"https://api.assemblyai.com/v2/transcript/b33f4691-85b7-4f31-be12-a87cef1c1229","status":"completed","created":"2024-03-11T21:29:59.936851","completed":"2024-03-11T21:30:07.314223","audio_url":"http://deleted_by_user","error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"id":"ce522f10-d204-42e8-a838-6b95098145cc","resource_url":"https://api.assemblyai.com/v2/transcript/ce522f10-d204-42e8-a838-6b95098145cc","status":"error","created":"2024-03-11T21:23:59.979420","completed":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","audio_url":"https://storage.googleapis.com/client-docs-samples/nbc.oopsie","error":"Download error, unable to download https://storage.googleapis.com/client-docs-samples/nbc.oopsie. Please make sure the file exists and is accessible from the internet."},{"id":"28a73d01-98db-41dd-9e98-2533ba0af117","resource_url":"https://api.assemblyai.com/v2/transcript/28a73d01-98db-41dd-9e98-2533ba0af117","status":"completed","created":"2024-03-11T21:12:57.372215","completed":"2024-03-11T21:13:03.267020","audio_url":"https://assembly.ai/nbc.mp3","error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}]} ///
public sealed partial class TranscriptList { /// - /// Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts. + /// Details of the transcript page
+ /// Example: {"limit":10,"result_count":10,"current_url":"https://api.assemblyai.com/v2/transcript?limit=10","prev_url":"https://api.assemblyai.com/v2/transcript?limit=10\u0026before_id=62npeahu2b-a8ea-4112-854c-69542c20d90c","next_url":"https://api.assemblyai.com/v2/transcript?limit=10\u0026after_id=62nfw3mlar-01ad-4631-92f6-629929496eed"} ///
+ /// {"limit":10,"result_count":10,"current_url":"https://api.assemblyai.com/v2/transcript?limit=10","prev_url":"https://api.assemblyai.com/v2/transcript?limit=10\u0026before_id=62npeahu2b-a8ea-4112-854c-69542c20d90c","next_url":"https://api.assemblyai.com/v2/transcript?limit=10\u0026after_id=62nfw3mlar-01ad-4631-92f6-629929496eed"} [global::System.Text.Json.Serialization.JsonPropertyName("page_details")] [global::System.Text.Json.Serialization.JsonRequired] public required global::AssemblyAI.PageDetails PageDetails { get; set; } @@ -32,7 +35,8 @@ public sealed partial class TranscriptList /// Initializes a new instance of the class. ///
/// - /// Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts. + /// Details of the transcript page
+ /// Example: {"limit":10,"result_count":10,"current_url":"https://api.assemblyai.com/v2/transcript?limit=10","prev_url":"https://api.assemblyai.com/v2/transcript?limit=10\u0026before_id=62npeahu2b-a8ea-4112-854c-69542c20d90c","next_url":"https://api.assemblyai.com/v2/transcript?limit=10\u0026after_id=62nfw3mlar-01ad-4631-92f6-629929496eed"} /// /// /// An array of transcripts diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs index fe232c3..c08b22b 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptListItem.g.cs @@ -4,59 +4,59 @@ namespace AssemblyAI { /// - /// + /// Example: {"id":"9ea68fd3-f953-42c1-9742-976c447fb463","resource_url":"https://api.assemblyai.com/v2/transcript/9ea68fd3-f953-42c1-9742-976c447fb463","status":"completed","created":"2023-11-02T21:49:25.586965","completed":"2023-11-02T21:49:25.586965","audio_url":"https://assembly.ai/wildfires.mp3","error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"} /// public sealed partial class TranscriptListItem { /// - /// The URL to the audio file + /// The unique identifier for the transcript /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_url")] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string AudioUrl { get; set; } + public required global::System.Guid Id { get; set; } /// - /// The date and time the transcript was completed + /// The URL to retrieve the transcript /// - [global::System.Text.Json.Serialization.JsonPropertyName("completed")] + [global::System.Text.Json.Serialization.JsonPropertyName("resource_url")] [global::System.Text.Json.Serialization.JsonRequired] - public required string? Completed { get; set; } + public required string ResourceUrl { get; set; } /// - /// The date and time the transcript was created + /// The status of the transcript /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required string Created { get; set; } + public required global::AssemblyAI.TranscriptStatus Status { get; set; } /// - /// Error message of why the transcript failed + /// The date and time the transcript was created /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonPropertyName("created")] [global::System.Text.Json.Serialization.JsonRequired] - public required string? Error { get; set; } + public required string Created { get; set; } /// - /// The unique identifier for the transcript + /// The date and time the transcript was completed /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonPropertyName("completed")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } + public required string? Completed { get; set; } /// - /// The URL to retrieve the transcript + /// The URL to the audio file /// - [global::System.Text.Json.Serialization.JsonPropertyName("resource_url")] + [global::System.Text.Json.Serialization.JsonPropertyName("audio_url")] [global::System.Text.Json.Serialization.JsonRequired] - public required string ResourceUrl { get; set; } + public required string AudioUrl { get; set; } /// - /// The status of your transcript. Possible values are queued, processing, completed, or error. + /// Error message of why the transcript failed /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.TranscriptStatus Status { get; set; } + public required string? Error { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -67,18 +67,6 @@ public sealed partial class TranscriptListItem /// /// Initializes a new instance of the class. /// - /// - /// The URL to the audio file - /// - /// - /// The date and time the transcript was completed - /// - /// - /// The date and time the transcript was created - /// - /// - /// Error message of why the transcript failed - /// /// /// The unique identifier for the transcript /// @@ -86,27 +74,39 @@ public sealed partial class TranscriptListItem /// The URL to retrieve the transcript /// /// - /// The status of your transcript. Possible values are queued, processing, completed, or error. + /// The status of the transcript + /// + /// + /// The date and time the transcript was created + /// + /// + /// The date and time the transcript was completed + /// + /// + /// The URL to the audio file + /// + /// + /// Error message of why the transcript failed /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptListItem( - string audioUrl, - string? completed, - string created, - string? error, global::System.Guid id, string resourceUrl, - global::AssemblyAI.TranscriptStatus status) + global::AssemblyAI.TranscriptStatus status, + string created, + string? completed, + string audioUrl, + string? error) { - this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); - this.Completed = completed ?? throw new global::System.ArgumentNullException(nameof(completed)); - this.Created = created ?? throw new global::System.ArgumentNullException(nameof(created)); - this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); this.Id = id; this.ResourceUrl = resourceUrl ?? throw new global::System.ArgumentNullException(nameof(resourceUrl)); this.Status = status; + this.Created = created ?? throw new global::System.ArgumentNullException(nameof(created)); + this.Completed = completed ?? throw new global::System.ArgumentNullException(nameof(completed)); + this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs index aac36c0..a0c4db7 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs @@ -1,10 +1,13 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace AssemblyAI { /// - /// The parameters for creating a transcript + /// The parameters for creating a transcript
+ /// Example: {"speech_model":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","language_code":"en_us","language_detection":true,"language_confidence_threshold":0.7,"punctuate":true,"format_text":true,"multichannel":true,"webhook_url":"https://your-webhook-url.tld/path","webhook_auth_header_name":"webhook-secret","webhook_auth_header_value":"webhook-secret-value","auto_highlights":true,"audio_start_from":10,"audio_end_at":280,"filter_profanity":true,"redact_pii":true,"redact_pii_audio":true,"redact_pii_audio_quality":"mp3","redact_pii_policies":["us_social_security_number","credit_card_number"],"redact_pii_sub":"hash","speaker_labels":true,"speakers_expected":2,"content_safety":true,"iab_categories":true,"custom_spelling":[],"disfluencies":false,"sentiment_analysis":true,"auto_chapters":true,"entity_detection":true,"speech_threshold":0.5,"summarization":true,"summary_model":"informative","summary_type":"bullets","custom_topics":true,"topics":[],"speech_understanding":{"request":{"translation":{"target_languages":["es","de"],"formal":true,"match_original_utterance":true}}}} ///
public sealed partial class TranscriptOptionalParams { @@ -54,14 +57,6 @@ public sealed partial class TranscriptOptionalParams [global::System.Text.Json.Serialization.JsonPropertyName("custom_spelling")] public global::System.Collections.Generic.IList? CustomSpelling { get; set; } - /// - /// Enable custom topics, either true or false
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("custom_topics")] - [global::System.Obsolete("This property marked as deprecated.")] - public bool? CustomTopics { get; set; } - /// /// Transcribe Filler Words, like "umm", in your media file; can be true or false
/// Default Value: false @@ -69,14 +64,6 @@ public sealed partial class TranscriptOptionalParams [global::System.Text.Json.Serialization.JsonPropertyName("disfluencies")] public bool? Disfluencies { get; set; } - /// - /// Enable [Dual Channel](https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription) transcription, can be true or false.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("dual_channel")] - [global::System.Obsolete("This property marked as deprecated.")] - public bool? DualChannel { get; set; } - /// /// Enable [Entity Detection](https://www.assemblyai.com/docs/models/entity-detection), can be true or false
/// Default Value: false @@ -106,7 +93,7 @@ public sealed partial class TranscriptOptionalParams public bool? IabCategories { get; set; } /// - /// Improve accuracy with up to 200 (for Universal) or 1000 (for Slam-1) domain-specific words or phrases (maximum 6 words per phrase). + /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3-Pro) domain-specific words or phrases (maximum 6 words per phrase). /// [global::System.Text.Json.Serialization.JsonPropertyName("keyterms_prompt")] public global::System.Collections.Generic.IList? KeytermsPrompt { get; set; } @@ -117,13 +104,21 @@ public sealed partial class TranscriptOptionalParams /// Default Value: en_us ///
[global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - public object? LanguageCode { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter?, object>))] + public global::AssemblyAI.OneOf?, object>? LanguageCode { get; set; } + + /// + /// The language codes of your audio file. Used for [Code switching](/docs/speech-to-text/pre-recorded-audio/code-switching)
+ /// One of the values specified must be `en`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("language_codes")] + public global::System.Collections.Generic.IList? LanguageCodes { get; set; } /// /// The confidence threshold for the automatically detected language.
/// An error will be returned if the language confidence is below this threshold.
/// Defaults to 0.
- /// Default Value: 0F + /// Default Value: 0 ///
[global::System.Text.Json.Serialization.JsonPropertyName("language_confidence_threshold")] public float? LanguageConfidenceThreshold { get; set; } @@ -149,10 +144,10 @@ public sealed partial class TranscriptOptionalParams public bool? Multichannel { get; set; } /// - /// This parameter does not currently have any functionality attached to it. + /// Provide natural language prompting of up to 1,500 words of contextual information to the model.
+ /// Note: This parameter is only supported for the Universal-3-Pro model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Obsolete("This property marked as deprecated.")] public string? Prompt { get; set; } /// @@ -184,6 +179,7 @@ public sealed partial class TranscriptOptionalParams /// /// Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
+ /// Default Value: mp3
/// Example: mp3 ///
/// mp3 @@ -202,7 +198,8 @@ public sealed partial class TranscriptOptionalParams /// Default Value: hash ///
[global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_sub")] - public object? RedactPiiSub { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? RedactPiiSub { get; set; } /// /// Enable [Sentiment Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis), can be true or false
@@ -225,26 +222,33 @@ public sealed partial class TranscriptOptionalParams public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? SpeakerOptions { get; set; } /// - /// Tells the speaker label model how many speakers it should attempt to identify. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details. + /// Tells the speaker label model how many speakers it should attempt to identify. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("speakers_expected")] public int? SpeakersExpected { get; set; } /// - /// The speech model to use for the transcription. When `null`, the `universal` model is used.
- /// Default Value: universal + /// List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - public object? SpeechModel { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("speech_models")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SpeechModels { get; set; } /// /// Reject audio files that contain less than this fraction of speech.
/// Valid values are in the range [0, 1] inclusive.
- /// Default Value: 0F + /// Default Value: 0 ///
[global::System.Text.Json.Serialization.JsonPropertyName("speech_threshold")] public float? SpeechThreshold { get; set; } + /// + /// Enable speech understanding tasks like translation, speaker identification, and custom formatting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speech_understanding")] + public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? SpeechUnderstanding { get; set; } + /// /// Enable [Summarization](https://www.assemblyai.com/docs/models/summarization), can be true or false
/// Default Value: false @@ -253,33 +257,39 @@ public sealed partial class TranscriptOptionalParams public bool? Summarization { get; set; } /// - /// The model to summarize the transcript + /// The model to summarize the transcript
+ /// Default Value: informative ///
[global::System.Text.Json.Serialization.JsonPropertyName("summary_model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SummaryModelJsonConverter))] public global::AssemblyAI.SummaryModel? SummaryModel { get; set; } /// - /// The type of summary + /// The type of summary
+ /// Default Value: bullets ///
[global::System.Text.Json.Serialization.JsonPropertyName("summary_type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SummaryTypeJsonConverter))] public global::AssemblyAI.SummaryType? SummaryType { get; set; } /// - /// The list of custom topics + /// Control the amount of randomness injected into the model's response.
+ /// Note: This parameter can only be used with the Universal-3-Pro model.
+ /// Default Value: 0.0 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("topics")] - public global::System.Collections.Generic.IList? Topics { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public double? Temperature { get; set; } /// - /// The header name to be sent with the transcript completed or failed webhook requests + /// The header name to be sent with the transcript completed or failed webhook requests
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("webhook_auth_header_name")] public string? WebhookAuthHeaderName { get; set; } /// - /// The header value to send back with the transcript completed or failed webhook requests for added security + /// The header value to send back with the transcript completed or failed webhook requests for added security
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("webhook_auth_header_value")] public string? WebhookAuthHeaderValue { get; set; } @@ -292,6 +302,28 @@ public sealed partial class TranscriptOptionalParams [global::System.Text.Json.Serialization.JsonPropertyName("webhook_url")] public string? WebhookUrl { get; set; } + /// + /// This parameter does not currently have any functionality attached to it.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("custom_topics")] + [global::System.Obsolete("This property marked as deprecated.")] + public bool? CustomTopics { get; set; } + + /// + /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? SpeechModel { get; set; } + + /// + /// This parameter does not currently have any functionality attached to it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("topics")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::System.Collections.Generic.IList? Topics { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -347,18 +379,22 @@ public sealed partial class TranscriptOptionalParams /// Default Value: false /// /// - /// Improve accuracy with up to 200 (for Universal) or 1000 (for Slam-1) domain-specific words or phrases (maximum 6 words per phrase). + /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3-Pro) domain-specific words or phrases (maximum 6 words per phrase). /// /// /// The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
/// The default value is 'en_us'.
/// Default Value: en_us /// + /// + /// The language codes of your audio file. Used for [Code switching](/docs/speech-to-text/pre-recorded-audio/code-switching)
+ /// One of the values specified must be `en`. + /// /// /// The confidence threshold for the automatically detected language.
/// An error will be returned if the language confidence is below this threshold.
/// Defaults to 0.
- /// Default Value: 0F + /// Default Value: 0 /// /// /// Enable [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection), either true or false.
@@ -371,6 +407,10 @@ public sealed partial class TranscriptOptionalParams /// Enable [Multichannel](https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription) transcription, can be true or false.
/// Default Value: false /// + /// + /// Provide natural language prompting of up to 1,500 words of contextual information to the model.
+ /// Note: This parameter is only supported for the Universal-3-Pro model. + /// /// /// Enable Automatic Punctuation, can be true or false
/// Default Value: true @@ -388,6 +428,7 @@ public sealed partial class TranscriptOptionalParams /// /// /// Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
+ /// Default Value: mp3
/// Example: mp3 /// /// @@ -409,35 +450,44 @@ public sealed partial class TranscriptOptionalParams /// Specify options for speaker diarization. /// /// - /// Tells the speaker label model how many speakers it should attempt to identify. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details. + /// Tells the speaker label model how many speakers it should attempt to identify. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// - /// - /// The speech model to use for the transcription. When `null`, the `universal` model is used.
- /// Default Value: universal + /// + /// List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. /// /// /// Reject audio files that contain less than this fraction of speech.
/// Valid values are in the range [0, 1] inclusive.
- /// Default Value: 0F + /// Default Value: 0 + /// + /// + /// Enable speech understanding tasks like translation, speaker identification, and custom formatting /// /// /// Enable [Summarization](https://www.assemblyai.com/docs/models/summarization), can be true or false
/// Default Value: false /// /// - /// The model to summarize the transcript + /// The model to summarize the transcript
+ /// Default Value: informative /// /// - /// The type of summary + /// The type of summary
+ /// Default Value: bullets /// - /// - /// The list of custom topics + /// + /// Control the amount of randomness injected into the model's response.
+ /// Note: This parameter can only be used with the Universal-3-Pro model.
+ /// Default Value: 0.0 /// /// - /// The header name to be sent with the transcript completed or failed webhook requests + /// The header name to be sent with the transcript completed or failed webhook requests
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// - /// The header value to send back with the transcript completed or failed webhook requests for added security + /// The header value to send back with the transcript completed or failed webhook requests for added security
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// /// The URL to which we send webhook requests.
@@ -448,6 +498,7 @@ public sealed partial class TranscriptOptionalParams [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptOptionalParams( + global::System.Collections.Generic.IList speechModels, int? audioEndAt, int? audioStartFrom, bool? autoChapters, @@ -461,32 +512,35 @@ public TranscriptOptionalParams( bool? formatText, bool? iabCategories, global::System.Collections.Generic.IList? keytermsPrompt, - object? languageCode, + global::AssemblyAI.OneOf?, object>? languageCode, + global::System.Collections.Generic.IList? languageCodes, float? languageConfidenceThreshold, bool? languageDetection, global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? languageDetectionOptions, bool? multichannel, + string? prompt, bool? punctuate, bool? redactPii, bool? redactPiiAudio, global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? redactPiiAudioOptions, global::AssemblyAI.RedactPiiAudioQuality? redactPiiAudioQuality, global::System.Collections.Generic.IList? redactPiiPolicies, - object? redactPiiSub, + global::AssemblyAI.OneOf? redactPiiSub, bool? sentimentAnalysis, bool? speakerLabels, global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? speakerOptions, int? speakersExpected, - object? speechModel, float? speechThreshold, + global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? speechUnderstanding, bool? summarization, global::AssemblyAI.SummaryModel? summaryModel, global::AssemblyAI.SummaryType? summaryType, - global::System.Collections.Generic.IList? topics, + double? temperature, string? webhookAuthHeaderName, string? webhookAuthHeaderValue, string? webhookUrl) { + this.SpeechModels = speechModels ?? throw new global::System.ArgumentNullException(nameof(speechModels)); this.AudioEndAt = audioEndAt; this.AudioStartFrom = audioStartFrom; this.AutoChapters = autoChapters; @@ -501,10 +555,12 @@ public TranscriptOptionalParams( this.IabCategories = iabCategories; this.KeytermsPrompt = keytermsPrompt; this.LanguageCode = languageCode; + this.LanguageCodes = languageCodes; this.LanguageConfidenceThreshold = languageConfidenceThreshold; this.LanguageDetection = languageDetection; this.LanguageDetectionOptions = languageDetectionOptions; this.Multichannel = multichannel; + this.Prompt = prompt; this.Punctuate = punctuate; this.RedactPii = redactPii; this.RedactPiiAudio = redactPiiAudio; @@ -516,12 +572,12 @@ public TranscriptOptionalParams( this.SpeakerLabels = speakerLabels; this.SpeakerOptions = speakerOptions; this.SpeakersExpected = speakersExpected; - this.SpeechModel = speechModel; this.SpeechThreshold = speechThreshold; + this.SpeechUnderstanding = speechUnderstanding; this.Summarization = summarization; this.SummaryModel = summaryModel; this.SummaryType = summaryType; - this.Topics = topics; + this.Temperature = temperature; this.WebhookAuthHeaderName = webhookAuthHeaderName; this.WebhookAuthHeaderValue = webhookAuthHeaderValue; this.WebhookUrl = webhookUrl; diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs index 2250624..f5f1eb7 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs @@ -12,7 +12,7 @@ public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions /// List of languages expected in the audio file. Defaults to `["all"]` when unspecified. ///
[global::System.Text.Json.Serialization.JsonPropertyName("expected_languages")] - public byte[]? ExpectedLanguages { get; set; } + public global::System.Collections.Generic.IList? ExpectedLanguages { get; set; } /// /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score.
@@ -21,6 +21,20 @@ public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions [global::System.Text.Json.Serialization.JsonPropertyName("fallback_language")] public string? FallbackLanguage { get; set; } + /// + /// Whether code switching should be detected.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code_switching")] + public bool? CodeSwitching { get; set; } + + /// + /// The confidence threshold for code switching detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.
+ /// Default Value: 0.3 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code_switching_confidence_threshold")] + public double? CodeSwitchingConfidenceThreshold { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -37,15 +51,27 @@ public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score.
/// Default Value: auto /// + /// + /// Whether code switching should be detected.
+ /// Default Value: false + /// + /// + /// The confidence threshold for code switching detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score.
+ /// Default Value: 0.3 + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptOptionalParamsLanguageDetectionOptions( - byte[]? expectedLanguages, - string? fallbackLanguage) + global::System.Collections.Generic.IList? expectedLanguages, + string? fallbackLanguage, + bool? codeSwitching, + double? codeSwitchingConfidenceThreshold) { this.ExpectedLanguages = expectedLanguages; this.FallbackLanguage = fallbackLanguage; + this.CodeSwitching = codeSwitching; + this.CodeSwitchingConfidenceThreshold = codeSwitchingConfidenceThreshold; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs index 4dc00b7..350bf7f 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs @@ -8,6 +8,13 @@ namespace AssemblyAI /// public sealed partial class TranscriptOptionalParamsSpeakerOptions { + /// + /// The minimum number of speakers expected in the audio file.
+ /// Default Value: 1 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("min_speakers_expected")] + public int? MinSpeakersExpected { get; set; } + /// /// <Warning>Setting this parameter too high may hurt model accuracy</Warning>
/// The maximum number of speakers expected in the audio file.
@@ -16,13 +23,6 @@ public sealed partial class TranscriptOptionalParamsSpeakerOptions [global::System.Text.Json.Serialization.JsonPropertyName("max_speakers_expected")] public int? MaxSpeakersExpected { get; set; } - /// - /// The minimum number of speakers expected in the audio file.
- /// Default Value: 1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("min_speakers_expected")] - public int? MinSpeakersExpected { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -32,24 +32,24 @@ public sealed partial class TranscriptOptionalParamsSpeakerOptions /// /// Initializes a new instance of the class. /// + /// + /// The minimum number of speakers expected in the audio file.
+ /// Default Value: 1 + /// /// /// <Warning>Setting this parameter too high may hurt model accuracy</Warning>
/// The maximum number of speakers expected in the audio file.
/// Default Value: 10 /// - /// - /// The minimum number of speakers expected in the audio file.
- /// Default Value: 1 - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptOptionalParamsSpeakerOptions( - int? maxSpeakersExpected, - int? minSpeakersExpected) + int? minSpeakersExpected, + int? maxSpeakersExpected) { - this.MaxSpeakersExpected = maxSpeakersExpected; this.MinSpeakersExpected = minSpeakersExpected; + this.MaxSpeakersExpected = maxSpeakersExpected; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.Json.g.cs new file mode 100644 index 0000000..d8cdda1 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptOptionalParamsSpeechUnderstanding + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding), + jsonSerializerContext) as global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs new file mode 100644 index 0000000..b03d1eb --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeechUnderstanding.g.cs @@ -0,0 +1,47 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Enable speech understanding tasks like translation, speaker identification, and custom formatting + /// + public sealed partial class TranscriptOptionalParamsSpeechUnderstanding + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AssemblyAI.OneOf Request { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranscriptOptionalParamsSpeechUnderstanding( + global::AssemblyAI.OneOf request) + { + this.Request = request; + } + + /// + /// Initializes a new instance of the class. + /// + public TranscriptOptionalParamsSpeechUnderstanding() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.g.cs index 5c13899..84cb0f8 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParagraph.g.cs @@ -4,37 +4,37 @@ 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 Decarlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Good morning, professor.","start":250,"end":26950,"confidence":0.73033,"words":[{"text":"Smoke","start":250,"end":650,"confidence":0.73033,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"from","start":730,"end":1022,"confidence":1,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"hundreds","start":1076,"end":1466,"confidence":0.99992,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"of","start":1498,"end":1646,"confidence":1,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}]} /// public sealed partial class TranscriptParagraph { /// - /// The confidence score for the transcript of this paragraph + /// The transcript of the paragraph /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + [global::System.Text.Json.Serialization.JsonPropertyName("text")] [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } + public required string Text { get; set; } /// - /// The ending time, in milliseconds, of the paragraph + /// The starting time, in milliseconds, of the paragraph /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] + [global::System.Text.Json.Serialization.JsonPropertyName("start")] [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } + public required int Start { get; set; } /// - /// The starting time, in milliseconds, of the paragraph + /// The ending time, in milliseconds, of the paragraph /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] + [global::System.Text.Json.Serialization.JsonPropertyName("end")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } + public required int End { get; set; } /// - /// The transcript of the paragraph + /// The confidence score for the transcript of this paragraph /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } + public required double Confidence { get; set; } /// /// An array of words in the paragraph @@ -52,17 +52,17 @@ public sealed partial class TranscriptParagraph /// /// Initializes a new instance of the class. /// - /// - /// The confidence score for the transcript of this paragraph - /// - /// - /// The ending time, in milliseconds, of the paragraph + /// + /// The transcript of the paragraph /// /// /// The starting time, in milliseconds, of the paragraph /// - /// - /// The transcript of the paragraph + /// + /// The ending time, in milliseconds, of the paragraph + /// + /// + /// The confidence score for the transcript of this paragraph /// /// /// An array of words in the paragraph @@ -71,16 +71,16 @@ public sealed partial class TranscriptParagraph [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptParagraph( - double confidence, - int end, - int start, string text, + int start, + int end, + double confidence, global::System.Collections.Generic.IList words) { - this.Confidence = confidence; - this.End = end; - this.Start = start; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Start = start; + this.End = end; + this.Confidence = confidence; this.Words = words ?? throw new global::System.ArgumentNullException(nameof(words)); } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs index 8983eaa..dab8921 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs @@ -5,7 +5,8 @@ namespace AssemblyAI { /// - /// The parameters for creating a transcript + /// The parameters for creating a transcript
+ /// Example: {"speech_model":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","language_code":"en_us","language_detection":true,"language_confidence_threshold":0.7,"audio_url":"https://assembly.ai/wildfires.mp3","punctuate":true,"format_text":true,"multichannel":true,"webhook_url":"https://your-webhook-url/path","webhook_auth_header_name":"webhook-secret","webhook_auth_header_value":"webhook-secret-value","auto_highlights":true,"audio_start_from":10,"audio_end_at":280,"filter_profanity":true,"redact_pii":true,"redact_pii_audio":true,"redact_pii_audio_quality":"mp3","redact_pii_policies":["us_social_security_number","credit_card_number"],"redact_pii_sub":"hash","speaker_labels":true,"speakers_expected":2,"content_safety":true,"iab_categories":true,"custom_spelling":[],"disfluencies":false,"sentiment_analysis":true,"auto_chapters":true,"entity_detection":true,"speech_threshold":0.5,"summarization":true,"summary_model":"informative","summary_type":"bullets","custom_topics":true,"topics":[],"speech_understanding":{"request":{"translation":{"target_languages":["es","de"],"formal":true,"match_original_utterance":true}}}} ///
public readonly partial struct TranscriptParams : global::System.IEquatable { @@ -26,6 +27,23 @@ namespace AssemblyAI #endif public bool IsValue1 => Value1 != null; + /// + /// The parameters for creating a transcript
+ /// Example: {"speech_model":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","language_code":"en_us","language_detection":true,"language_confidence_threshold":0.7,"punctuate":true,"format_text":true,"multichannel":true,"webhook_url":"https://your-webhook-url.tld/path","webhook_auth_header_name":"webhook-secret","webhook_auth_header_value":"webhook-secret-value","auto_highlights":true,"audio_start_from":10,"audio_end_at":280,"filter_profanity":true,"redact_pii":true,"redact_pii_audio":true,"redact_pii_audio_quality":"mp3","redact_pii_policies":["us_social_security_number","credit_card_number"],"redact_pii_sub":"hash","speaker_labels":true,"speakers_expected":2,"content_safety":true,"iab_categories":true,"custom_spelling":[],"disfluencies":false,"sentiment_analysis":true,"auto_chapters":true,"entity_detection":true,"speech_threshold":0.5,"summarization":true,"summary_model":"informative","summary_type":"bullets","custom_topics":true,"topics":[],"speech_understanding":{"request":{"translation":{"target_languages":["es","de"],"formal":true,"match_original_utterance":true}}}} + ///
+#if NET6_0_OR_GREATER + public global::AssemblyAI.TranscriptOptionalParams? Value2 { get; init; } +#else + public global::AssemblyAI.TranscriptOptionalParams? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; /// /// /// @@ -44,23 +62,6 @@ public TranscriptParams(global::AssemblyAI.TranscriptParamsVariant1? value) Value1 = value; } - /// - /// The parameters for creating a transcript - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.TranscriptOptionalParams? Value2 { get; init; } -#else - public global::AssemblyAI.TranscriptOptionalParams? Value2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; - /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptReadyNotification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptReadyNotification.g.cs index 2c369bf..342bba8 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptReadyNotification.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptReadyNotification.g.cs @@ -4,24 +4,25 @@ namespace AssemblyAI { /// - /// The notification when the transcript status is completed or error. + /// The notification when the transcript status is completed or error.
+ /// Example: {"transcript_id":"9ea68fd3-f953-42c1-9742-976c447fb463","status":"completed"} ///
public sealed partial class TranscriptReadyNotification { /// - /// The status of the transcript. Either completed or error. + /// The ID of the transcript /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptReadyStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonPropertyName("transcript_id")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.TranscriptReadyStatus Status { get; set; } + public required global::System.Guid TranscriptId { get; set; } /// - /// The ID of the transcript + /// The status of the transcript. Either completed or error. /// - [global::System.Text.Json.Serialization.JsonPropertyName("transcript_id")] + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptReadyStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid TranscriptId { get; set; } + public required global::AssemblyAI.TranscriptReadyStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -32,21 +33,21 @@ public sealed partial class TranscriptReadyNotification /// /// Initializes a new instance of the class. /// - /// - /// The status of the transcript. Either completed or error. - /// /// /// The ID of the transcript /// + /// + /// The status of the transcript. Either completed or error. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptReadyNotification( - global::AssemblyAI.TranscriptReadyStatus status, - global::System.Guid transcriptId) + global::System.Guid transcriptId, + global::AssemblyAI.TranscriptReadyStatus status) { - this.Status = status; this.TranscriptId = transcriptId; + this.Status = status; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs index 18fc5e1..fa7c969 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSentence.g.cs @@ -4,22 +4,23 @@ namespace AssemblyAI { /// - /// + /// Example: {"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.","start":250,"end":6350,"confidence":0.72412,"words":[{"text":"Smoke","start":250,"end":650,"confidence":0.72412,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"from","start":730,"end":1022,"confidence":0.99996,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"hundreds","start":1076,"end":1466,"confidence":0.99992,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"of","start":1498,"end":1646,"confidence":1,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}],"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"} /// public sealed partial class TranscriptSentence { /// - /// The channel of the sentence. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + /// The transcript of the sentence /// - [global::System.Text.Json.Serialization.JsonPropertyName("channel")] - public string? Channel { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } /// - /// The confidence score for the transcript of this sentence + /// The starting time, in milliseconds, for the sentence /// - [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + [global::System.Text.Json.Serialization.JsonPropertyName("start")] [global::System.Text.Json.Serialization.JsonRequired] - public required double Confidence { get; set; } + public required int Start { get; set; } /// /// The ending time, in milliseconds, for the sentence @@ -29,32 +30,31 @@ public sealed partial class TranscriptSentence public required int End { get; set; } /// - /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null + /// The confidence score for the transcript of this sentence /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] [global::System.Text.Json.Serialization.JsonRequired] - public required string? Speaker { get; set; } + public required double Confidence { get; set; } /// - /// The starting time, in milliseconds, for the sentence + /// An array of words in the sentence /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] + [global::System.Text.Json.Serialization.JsonPropertyName("words")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } + public required global::System.Collections.Generic.IList Words { get; set; } /// - /// The transcript of the sentence + /// The channel of the sentence. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("channel")] + public string? Channel { get; set; } /// - /// An array of words in the sentence + /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null /// - [global::System.Text.Json.Serialization.JsonPropertyName("words")] + [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Words { get; set; } + public required string? Speaker { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -65,45 +65,45 @@ public sealed partial class TranscriptSentence /// /// Initializes a new instance of the class. /// - /// - /// The channel of the sentence. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + /// + /// The transcript of the sentence /// - /// - /// The confidence score for the transcript of this sentence + /// + /// The starting time, in milliseconds, for the sentence /// /// /// The ending time, in milliseconds, for the sentence /// - /// - /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null - /// - /// - /// The starting time, in milliseconds, for the sentence - /// - /// - /// The transcript of the sentence + /// + /// The confidence score for the transcript of this sentence /// /// /// An array of words in the sentence /// + /// + /// The channel of the sentence. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + /// + /// + /// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptSentence( - double confidence, - int end, - string? speaker, - int start, string text, + int start, + int end, + double confidence, global::System.Collections.Generic.IList words, + string? speaker, string? channel) { - this.Confidence = confidence; - this.End = end; - this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); - this.Start = start; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Start = start; + this.End = end; + this.Confidence = confidence; this.Words = words ?? throw new global::System.ArgumentNullException(nameof(words)); + this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); this.Channel = channel; } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.Json.g.cs new file mode 100644 index 0000000..808ca9b --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptSpeechUnderstanding + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptSpeechUnderstanding? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptSpeechUnderstanding), + jsonSerializerContext) as global::AssemblyAI.TranscriptSpeechUnderstanding; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.TranscriptSpeechUnderstanding? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranscriptSpeechUnderstanding), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptSpeechUnderstanding; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs new file mode 100644 index 0000000..8bd8fb4 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptSpeechUnderstanding.g.cs @@ -0,0 +1,56 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Enable speech understanding tasks like translation, speaker identification, and custom formatting + /// + public sealed partial class TranscriptSpeechUnderstanding + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? Request { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? Response { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranscriptSpeechUnderstanding( + global::AssemblyAI.OneOf? request, + global::AssemblyAI.OneOf? response) + { + this.Request = request; + this.Response = response; + } + + /// + /// Initializes a new instance of the class. + /// + public TranscriptSpeechUnderstanding() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.Json.g.cs new file mode 100644 index 0000000..12c7e5a --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptTranslatedTexts + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptTranslatedTexts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptTranslatedTexts), + jsonSerializerContext) as global::AssemblyAI.TranscriptTranslatedTexts; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.TranscriptTranslatedTexts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranscriptTranslatedTexts), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptTranslatedTexts; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.g.cs new file mode 100644 index 0000000..97571a8 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptTranslatedTexts.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Translated text keyed by language code + /// + public sealed partial class TranscriptTranslatedTexts + { + /// + /// Translated text for this language code + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] + public string? LanguageCode { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Translated text for this language code + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranscriptTranslatedTexts( + string? languageCode) + { + this.LanguageCode = languageCode; + } + + /// + /// Initializes a new instance of the class. + /// + public TranscriptTranslatedTexts() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs index adcc9a7..8d6daa9 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs @@ -4,16 +4,10 @@ namespace AssemblyAI { /// - /// + /// Example: {"confidence":0.9359033333333334,"end":26950,"speaker":"A","start":250,"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.","words":[{"text":"Smoke","start":250,"end":650,"confidence":0.97503,"speaker":"A"},{"text":"from","start":730,"end":1022,"confidence":0.99999,"speaker":"A"},{"text":"hundreds","start":1076,"end":1418,"confidence":0.99843,"speaker":"A"},{"text":"of","start":1434,"end":1614,"confidence":0.85,"speaker":"A"},{"text":"wildfires","start":1652,"end":2346,"confidence":0.89657,"speaker":"A"},{"text":"in","start":2378,"end":2526,"confidence":0.99994,"speaker":"A"},{"text":"Canada","start":2548,"end":3130,"confidence":0.93864,"speaker":"A"},{"text":"is","start":3210,"end":3454,"confidence":0.999,"speaker":"A"},{"text":"triggering","start":3492,"end":3946,"confidence":0.75366,"speaker":"A"},{"text":"air","start":3978,"end":4174,"confidence":1.0,"speaker":"A"},{"text":"quality","start":4212,"end":4558,"confidence":0.87745,"speaker":"A"},{"text":"alerts","start":4644,"end":5114,"confidence":0.94739,"speaker":"A"},{"text":"throughout","start":5162,"end":5466,"confidence":0.99726,"speaker":"A"},{"text":"the","start":5498,"end":5694,"confidence":0.79,"speaker":"A"},{"text":"US.","start":5732,"end":6382,"confidence":0.88,"speaker":"A"}]} /// public sealed partial class TranscriptUtterance { - /// - /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("channel")] - public string? Channel { get; set; } - /// /// The confidence score for the transcript of this utterance /// @@ -22,25 +16,18 @@ public sealed partial class TranscriptUtterance public required double Confidence { get; set; } /// - /// The ending time, in milliseconds, of the utterance in the audio file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int End { get; set; } - - /// - /// The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker B, etc. + /// The starting time, in milliseconds, of the utterance in the audio file /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] + [global::System.Text.Json.Serialization.JsonPropertyName("start")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Speaker { get; set; } + public required int Start { get; set; } /// - /// The starting time, in milliseconds, of the utterance in the audio file + /// The ending time, in milliseconds, of the utterance in the audio file /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] + [global::System.Text.Json.Serialization.JsonPropertyName("end")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } + public required int End { get; set; } /// /// The text for this utterance @@ -56,6 +43,25 @@ public sealed partial class TranscriptUtterance [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Words { get; set; } + /// + /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("channel")] + public string? Channel { get; set; } + + /// + /// The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker B, etc. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Speaker { get; set; } + + /// + /// Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled with translation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("translated_texts")] + public global::System.Collections.Generic.Dictionary? TranslatedTexts { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -65,46 +71,51 @@ public sealed partial class TranscriptUtterance /// /// Initializes a new instance of the class. /// - /// - /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// /// /// The confidence score for the transcript of this utterance /// - /// - /// The ending time, in milliseconds, of the utterance in the audio file - /// - /// - /// The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker B, etc. - /// /// /// The starting time, in milliseconds, of the utterance in the audio file /// + /// + /// The ending time, in milliseconds, of the utterance in the audio file + /// /// /// The text for this utterance /// /// /// The words in the utterance. /// + /// + /// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + /// + /// + /// The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker B, etc. + /// + /// + /// Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled with translation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptUtterance( double confidence, - int end, - string speaker, int start, + int end, string text, global::System.Collections.Generic.IList words, - string? channel) + string speaker, + string? channel, + global::System.Collections.Generic.Dictionary? translatedTexts) { this.Confidence = confidence; - this.End = end; - this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); this.Start = start; + this.End = end; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Words = words ?? throw new global::System.ArgumentNullException(nameof(words)); + this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); this.Channel = channel; + this.TranslatedTexts = translatedTexts; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.Json.g.cs new file mode 100644 index 0000000..9814c82 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptUtteranceTranslatedTexts + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptUtteranceTranslatedTexts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptUtteranceTranslatedTexts), + jsonSerializerContext) as global::AssemblyAI.TranscriptUtteranceTranslatedTexts; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.TranscriptUtteranceTranslatedTexts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranscriptUtteranceTranslatedTexts), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptUtteranceTranslatedTexts; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.g.cs new file mode 100644 index 0000000..9fb4120 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtteranceTranslatedTexts.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled with translation. + /// + public sealed partial class TranscriptUtteranceTranslatedTexts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWebhookNotification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWebhookNotification.g.cs index 2183738..224d59a 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWebhookNotification.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWebhookNotification.g.cs @@ -10,7 +10,8 @@ namespace AssemblyAI public readonly partial struct TranscriptWebhookNotification : global::System.IEquatable { /// - /// The notification when the transcript status is completed or error. + /// The notification when the transcript status is completed or error.
+ /// Example: {"transcript_id":"9ea68fd3-f953-42c1-9742-976c447fb463","status":"completed"} ///
#if NET6_0_OR_GREATER public global::AssemblyAI.TranscriptReadyNotification? Ready { get; init; } @@ -26,6 +27,22 @@ namespace AssemblyAI #endif public bool IsReady => Ready != null; + /// + /// The notification when the redacted audio is ready. + /// +#if NET6_0_OR_GREATER + public global::AssemblyAI.RedactedAudioNotification? RedactedAudio { get; init; } +#else + public global::AssemblyAI.RedactedAudioNotification? RedactedAudio { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RedactedAudio))] +#endif + public bool IsRedactedAudio => RedactedAudio != null; /// /// /// @@ -44,23 +61,6 @@ public TranscriptWebhookNotification(global::AssemblyAI.TranscriptReadyNotificat Ready = value; } - /// - /// The notification when the redacted audio is ready. - /// -#if NET6_0_OR_GREATER - public global::AssemblyAI.RedactedAudioNotification? RedactedAudio { get; init; } -#else - public global::AssemblyAI.RedactedAudioNotification? RedactedAudio { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RedactedAudio))] -#endif - public bool IsRedactedAudio => RedactedAudio != null; - /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs index fdaa72e..db8b047 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWord.g.cs @@ -4,16 +4,10 @@ namespace AssemblyAI { /// - /// + /// Example: {"text":"Smoke","start":250,"end":650,"confidence":0.97465,"channel":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"} /// public sealed partial class TranscriptWord { - /// - /// The channel of the word. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("channel")] - public string? Channel { get; set; } - /// /// The confidence score for the transcript of this word /// @@ -21,6 +15,13 @@ public sealed partial class TranscriptWord [global::System.Text.Json.Serialization.JsonRequired] public required double Confidence { get; set; } + /// + /// The starting time, in milliseconds, for the word + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Start { get; set; } + /// /// The ending time, in milliseconds, for the word /// @@ -29,25 +30,24 @@ public sealed partial class TranscriptWord public required int End { get; set; } /// - /// The speaker of the word if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null + /// The text of the word /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] + [global::System.Text.Json.Serialization.JsonPropertyName("text")] [global::System.Text.Json.Serialization.JsonRequired] - public required string? Speaker { get; set; } + public required string Text { get; set; } /// - /// The starting time, in milliseconds, for the word + /// The channel of the word. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. /// - [global::System.Text.Json.Serialization.JsonPropertyName("start")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Start { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("channel")] + public string? Channel { get; set; } /// - /// The text of the word + /// The speaker of the word if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } + public required string? Speaker { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -58,40 +58,40 @@ public sealed partial class TranscriptWord /// /// Initializes a new instance of the class. /// - /// - /// The channel of the word. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. - /// /// /// The confidence score for the transcript of this word /// - /// - /// The ending time, in milliseconds, for the word - /// - /// - /// The speaker of the word if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null - /// /// /// The starting time, in milliseconds, for the word /// + /// + /// The ending time, in milliseconds, for the word + /// /// /// The text of the word /// + /// + /// The channel of the word. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + /// + /// + /// The speaker of the word if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptWord( double confidence, - int end, - string? speaker, int start, + int end, string text, + string? speaker, string? channel) { this.Confidence = confidence; - this.End = end; - this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); this.Start = start; + this.End = end; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); this.Channel = channel; } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.Json.g.cs new file mode 100644 index 0000000..9271256 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranslationRequestBody + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranslationRequestBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranslationRequestBody), + jsonSerializerContext) as global::AssemblyAI.TranslationRequestBody; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.TranslationRequestBody? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranslationRequestBody), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranslationRequestBody; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.g.cs new file mode 100644 index 0000000..a2ef239 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBody.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class TranslationRequestBody + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("translation")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AssemblyAI.TranslationRequestBodyTranslation Translation { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranslationRequestBody( + global::AssemblyAI.TranslationRequestBodyTranslation translation) + { + this.Translation = translation ?? throw new global::System.ArgumentNullException(nameof(translation)); + } + + /// + /// Initializes a new instance of the class. + /// + public TranslationRequestBody() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.Json.g.cs new file mode 100644 index 0000000..db9eab6 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranslationRequestBodyTranslation + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranslationRequestBodyTranslation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranslationRequestBodyTranslation), + jsonSerializerContext) as global::AssemblyAI.TranslationRequestBodyTranslation; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.TranslationRequestBodyTranslation? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranslationRequestBodyTranslation), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranslationRequestBodyTranslation; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.g.cs new file mode 100644 index 0000000..6cf9bf8 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationRequestBodyTranslation.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class TranslationRequestBodyTranslation + { + /// + /// List of target language codes (e.g., `["es", "de"]`) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("target_languages")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList TargetLanguages { get; set; } + + /// + /// Use formal language style
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("formal")] + public bool? Formal { get; set; } + + /// + /// When enabled with Speaker Labels, returns translated text in the utterances array. Each utterance will include a `translated_texts` key containing translations for each target language.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("match_original_utterance")] + public bool? MatchOriginalUtterance { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// List of target language codes (e.g., `["es", "de"]`) + /// + /// + /// Use formal language style
+ /// Default Value: true + /// + /// + /// When enabled with Speaker Labels, returns translated text in the utterances array. Each utterance will include a `translated_texts` key containing translations for each target language.
+ /// Default Value: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranslationRequestBodyTranslation( + global::System.Collections.Generic.IList targetLanguages, + bool? formal, + bool? matchOriginalUtterance) + { + this.TargetLanguages = targetLanguages ?? throw new global::System.ArgumentNullException(nameof(targetLanguages)); + this.Formal = formal; + this.MatchOriginalUtterance = matchOriginalUtterance; + } + + /// + /// Initializes a new instance of the class. + /// + public TranslationRequestBodyTranslation() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.Json.g.cs new file mode 100644 index 0000000..b47d2bb --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranslationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranslationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranslationResponse), + jsonSerializerContext) as global::AssemblyAI.TranslationResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.TranslationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranslationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranslationResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.g.cs new file mode 100644 index 0000000..d6e931d --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponse.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class TranslationResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("translation")] + public global::AssemblyAI.TranslationResponseTranslation? Translation { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranslationResponse( + global::AssemblyAI.TranslationResponseTranslation? translation) + { + this.Translation = translation; + } + + /// + /// Initializes a new instance of the class. + /// + public TranslationResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.Json.g.cs new file mode 100644 index 0000000..c8f2700 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranslationResponseTranslation + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranslationResponseTranslation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranslationResponseTranslation), + jsonSerializerContext) as global::AssemblyAI.TranslationResponseTranslation; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.TranslationResponseTranslation? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranslationResponseTranslation), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranslationResponseTranslation; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.g.cs new file mode 100644 index 0000000..3ffe0fe --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranslationResponseTranslation.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public sealed partial class TranslationResponseTranslation + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + public string? Status { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranslationResponseTranslation( + string? status) + { + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public TranslationResponseTranslation() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.g.cs index 3847fbc..21e0f5f 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.UploadedFile.g.cs @@ -4,7 +4,7 @@ namespace AssemblyAI { /// - /// + /// Example: {"upload_url":"https://cdn.assemblyai.com/upload/f756988d-47e2-4ca3-96ce-04bb168f8f2a"} /// public sealed partial class UploadedFile { diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.g.cs index 8202bed..582e13d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchMatch.g.cs @@ -4,37 +4,37 @@ namespace AssemblyAI { /// - /// + /// Example: {"text":"smoke","count":6,"timestamps":[[250,650],[49168,49398],[55284,55594],[168888,169118],[215108,215386],[225944,226170]],"indexes":[0,136,156,486,652,698]} /// public sealed partial class WordSearchMatch { /// - /// The total amount of times the word is in the transcript + /// The matched word /// - [global::System.Text.Json.Serialization.JsonPropertyName("count")] + [global::System.Text.Json.Serialization.JsonPropertyName("text")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Count { get; set; } + public required string Text { get; set; } /// - /// An array of all index locations for that word within the `words` array of the completed transcript + /// The total amount of times the word is in the transcript /// - [global::System.Text.Json.Serialization.JsonPropertyName("indexes")] + [global::System.Text.Json.Serialization.JsonPropertyName("count")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Indexes { get; set; } + public required int Count { get; set; } /// - /// The matched word + /// An array of timestamps /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonPropertyName("timestamps")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } + public required global::System.Collections.Generic.IList> Timestamps { get; set; } /// - /// An array of timestamps + /// An array of all index locations for that word within the `words` array of the completed transcript /// - [global::System.Text.Json.Serialization.JsonPropertyName("timestamps")] + [global::System.Text.Json.Serialization.JsonPropertyName("indexes")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Timestamps { get; set; } + public required global::System.Collections.Generic.IList Indexes { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,31 +45,31 @@ public sealed partial class WordSearchMatch /// /// Initializes a new instance of the class. /// - /// - /// The total amount of times the word is in the transcript - /// - /// - /// An array of all index locations for that word within the `words` array of the completed transcript - /// /// /// The matched word /// + /// + /// The total amount of times the word is in the transcript + /// /// /// An array of timestamps /// + /// + /// An array of all index locations for that word within the `words` array of the completed transcript + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WordSearchMatch( - int count, - global::System.Collections.Generic.IList indexes, string text, - global::System.Collections.Generic.IList> timestamps) + int count, + global::System.Collections.Generic.IList> timestamps, + global::System.Collections.Generic.IList indexes) { - this.Count = count; - this.Indexes = indexes ?? throw new global::System.ArgumentNullException(nameof(indexes)); this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Count = count; this.Timestamps = timestamps ?? throw new global::System.ArgumentNullException(nameof(timestamps)); + this.Indexes = indexes ?? throw new global::System.ArgumentNullException(nameof(indexes)); } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.g.cs index 7164d60..929ba21 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.WordSearchResponse.g.cs @@ -4,7 +4,7 @@ namespace AssemblyAI { /// - /// + /// Example: {"id":"d5a3d302-066e-43fb-b63b-8f57baf185db","total_count":10,"matches":[{"text":"smoke","count":6,"timestamps":[[250,650],[49168,49398],[55284,55594],[168888,169118],[215108,215386],[225944,226170]],"indexes":[0,136,156,486,652,698]},{"text":"wildfires","count":4,"timestamps":[[1668,2346],[33852,34546],[50118,51110],[231356,232354]],"indexes":[4,90,140,716]}]} /// public sealed partial class WordSearchResponse { @@ -16,18 +16,18 @@ public sealed partial class WordSearchResponse public required global::System.Guid Id { get; set; } /// - /// The matches of the search + /// The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times, `total_count` will equal 5. /// - [global::System.Text.Json.Serialization.JsonPropertyName("matches")] + [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Matches { get; set; } + public required int TotalCount { get; set; } /// - /// The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times, `total_count` will equal 5. + /// The matches of the search /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] + [global::System.Text.Json.Serialization.JsonPropertyName("matches")] [global::System.Text.Json.Serialization.JsonRequired] - public required int TotalCount { get; set; } + public required global::System.Collections.Generic.IList Matches { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,23 +41,23 @@ public sealed partial class WordSearchResponse /// /// The ID of the transcript /// - /// - /// The matches of the search - /// /// /// The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times, `total_count` will equal 5. /// + /// + /// The matches of the search + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WordSearchResponse( global::System.Guid id, - global::System.Collections.Generic.IList matches, - int totalCount) + int totalCount, + global::System.Collections.Generic.IList matches) { this.Id = id; - this.Matches = matches ?? throw new global::System.ArgumentNullException(nameof(matches)); this.TotalCount = totalCount; + this.Matches = matches ?? throw new global::System.ArgumentNullException(nameof(matches)); } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs index 5152c23..b52a41d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.DeleteTranscript.g.cs @@ -24,7 +24,8 @@ partial void ProcessDeleteTranscriptResponseContent( /// /// 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.TranscriptClient.GetRedactedAudio.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs index a05a649..69d7430 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetRedactedAudio.g.cs @@ -24,6 +24,7 @@ partial void ProcessGetRedactedAudioResponseContent( /// /// 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.TranscriptClient.GetSubtitles.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs index 4d9d8ba..d72d909 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.GetSubtitles.g.cs @@ -54,7 +54,7 @@ partial void ProcessGetSubtitlesResponseContent( var __pathBuilder = new global::AssemblyAI.PathBuilder( path: $"/v2/transcript/{transcriptId}/{subtitleFormat}", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddOptionalParameter("chars_per_caption", charsPerCaption?.ToString()) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs index 5c114ec..a4cdd84 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs @@ -7,21 +7,11 @@ public partial class TranscriptClient { partial void PrepareListTranscriptsArguments( global::System.Net.Http.HttpClient httpClient, - ref int? limit, - ref global::AssemblyAI.TranscriptStatus? status, - ref global::System.DateTime? createdOn, - ref global::System.Guid? beforeId, - ref global::System.Guid? afterId, - ref bool? throttledOnly); + ref global::AssemblyAI.TranscriptStatus? status); partial void PrepareListTranscriptsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? limit, - global::AssemblyAI.TranscriptStatus? status, - global::System.DateTime? createdOn, - global::System.Guid? beforeId, - global::System.Guid? afterId, - bool? throttledOnly); + global::AssemblyAI.TranscriptStatus? status); partial void ProcessListTranscriptsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -38,46 +28,26 @@ partial void ProcessListTranscriptsResponseContent( /// 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 /// public async 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) { PrepareArguments( client: HttpClient); PrepareListTranscriptsArguments( httpClient: HttpClient, - limit: ref limit, - status: ref status, - createdOn: ref createdOn, - beforeId: ref beforeId, - afterId: ref afterId, - throttledOnly: ref throttledOnly); + status: ref status); var __pathBuilder = new global::AssemblyAI.PathBuilder( path: "/v2/transcript", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("limit", limit?.ToString()) + __pathBuilder .AddOptionalParameter("status", status?.ToValueString()) - .AddOptionalParameter("created_on", createdOn?.ToString("yyyy-MM-dd")) - .AddOptionalParameter("before_id", beforeId?.ToString()) - .AddOptionalParameter("after_id", afterId?.ToString()) - .AddOptionalParameter("throttled_only", throttledOnly?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -110,12 +80,7 @@ partial void ProcessListTranscriptsResponseContent( PrepareListTranscriptsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - limit: limit, - status: status, - createdOn: createdOn, - beforeId: beforeId, - afterId: afterId, - throttledOnly: throttledOnly); + status: status); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs index e687b35..acda4c8 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.UploadFile.g.cs @@ -23,8 +23,9 @@ partial void ProcessUploadFileResponseContent( /// /// 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 @@ -68,11 +69,9 @@ partial void ProcessUploadFileResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/octet-stream"); + + var __httpRequestContent = new global::System.Net.Http.ByteArrayContent(request); + __httpRequestContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream"); __httpRequest.Content = __httpRequestContent; PrepareRequest( @@ -168,6 +167,43 @@ partial void ProcessUploadFileResponseContent( h => h.Value), }; } + // Cannot access uploaded file + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::AssemblyAI.Error? __value_403 = null; + try + { + if (ReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_403 = global::AssemblyAI.Error.FromJson(__content_403, JsonSerializerContext); + } + else + { + var __contentStream_403 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_403 = await global::AssemblyAI.Error.FromJsonStreamAsync(__contentStream_403, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + throw new global::AssemblyAI.ApiException( + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + statusCode: __response.StatusCode) + { + ResponseBody = __content_403, + ResponseObject = __value_403, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } // Not found if ((int)__response.StatusCode == 404) { @@ -417,24 +453,5 @@ partial void ProcessUploadFileResponseContent( } } } - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task UploadFileAsync( - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new byte[] - { - }; - - return await UploadFileAsync( - request: __request, - cancellationToken: cancellationToken).ConfigureAwait(false); - } } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs index fadfc08..19dfc66 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.WordSearch.g.cs @@ -47,7 +47,7 @@ partial void ProcessWordSearchResponseContent( var __pathBuilder = new global::AssemblyAI.PathBuilder( path: $"/v2/transcript/{transcriptId}/word-search", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddRequiredParameter("words", words, delimiter: ",", explode: false) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AssemblyAI/Generated/OneOf.2.g.cs b/src/libs/AssemblyAI/Generated/OneOf.2.g.cs index bc4d1e2..8767365 100644 --- a/src/libs/AssemblyAI/Generated/OneOf.2.g.cs +++ b/src/libs/AssemblyAI/Generated/OneOf.2.g.cs @@ -28,37 +28,36 @@ namespace AssemblyAI /// /// /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); +#if NET6_0_OR_GREATER + public T2? Value2 { get; init; } +#else + public T2? Value2 { get; } +#endif /// /// /// - public static implicit operator T1?(OneOf @this) => @this.Value1; - +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; /// /// /// - public OneOf(T1? value) - { - Value1 = value; - } + public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); /// /// /// -#if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } -#endif + public static implicit operator T1?(OneOf @this) => @this.Value1; /// /// /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; + public OneOf(T1? value) + { + Value1 = value; + } /// /// diff --git a/src/libs/AssemblyAI/Generated/OneOf.3.Json.g.cs b/src/libs/AssemblyAI/Generated/OneOf.3.Json.g.cs new file mode 100644 index 0000000..bc39f3a --- /dev/null +++ b/src/libs/AssemblyAI/Generated/OneOf.3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public readonly partial struct OneOf + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.OneOf? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.OneOf), + jsonSerializerContext) as global::AssemblyAI.OneOf?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.OneOf? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize>( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.OneOf), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.OneOf?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/OneOf.3.g.cs b/src/libs/AssemblyAI/Generated/OneOf.3.g.cs new file mode 100644 index 0000000..3172d76 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/OneOf.3.g.cs @@ -0,0 +1,272 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// + /// + public readonly partial struct OneOf : global::System.IEquatable> + { + /// + /// + /// +#if NET6_0_OR_GREATER + public T1? Value1 { get; init; } +#else + public T1? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public T2? Value2 { get; init; } +#else + public T2? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public T3? Value3 { get; init; } +#else + public T3? Value3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] +#endif + public bool IsValue3 => Value3 != null; + /// + /// + /// + public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); + + /// + /// + /// + public static implicit operator T1?(OneOf @this) => @this.Value1; + + /// + /// + /// + public OneOf(T1? value) + { + Value1 = value; + } + + /// + /// + /// + public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); + + /// + /// + /// + public static implicit operator T2?(OneOf @this) => @this.Value2; + + /// + /// + /// + public OneOf(T2? value) + { + Value2 = value; + } + + /// + /// + /// + public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); + + /// + /// + /// + public static implicit operator T3?(OneOf @this) => @this.Value3; + + /// + /// + /// + public OneOf(T3? value) + { + Value3 = value; + } + + /// + /// + /// + public OneOf( + T1? value1, + T2? value2, + T3? value3 + ) + { + Value1 = value1; + Value2 = value2; + Value3 = value3; + } + + /// + /// + /// + public object? Object => + Value3 as object ?? + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public override string? ToString() => + Value1?.ToString() ?? + Value2?.ToString() ?? + Value3?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 && !IsValue2 && !IsValue3 || !IsValue1 && IsValue2 && !IsValue3 || !IsValue1 && !IsValue2 && IsValue3; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + global::System.Func? value3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + else if (IsValue3 && value3 != null) + { + return value3(Value3!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + global::System.Action? value3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(T1), + Value2, + typeof(T2), + Value3, + typeof(T3), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(OneOf other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + ; + } + + /// + /// + /// + public static bool operator ==(OneOf obj1, OneOf obj2) + { + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(OneOf obj1, OneOf obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is OneOf o && Equals(o); + } + } +} diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index 5fe6f4a..650b7ea 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -20,10 +20,10 @@ tags: description: Transcript related operations externalDocs: url: https://www.assemblyai.com/docs/guides/transcribing-an-audio-file - - name: LeMUR - description: LeMUR related operations - externalDocs: - url: https://www.assemblyai.com/docs/guides/processing-audio-with-llms-using-lemur + # - name: LeMUR + # description: LeMUR related operations + # externalDocs: + # url: https://www.assemblyai.com/docs/guides/processing-audio-with-llms-using-lemur - name: streaming description: Streaming Speech-to-Text externalDocs: @@ -39,8 +39,10 @@ paths: - transcript summary: Upload a media file description: | - To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. Upload a media file to AssemblyAI's servers. + + To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + 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. operationId: uploadFile x-fern-sdk-group-name: files x-fern-sdk-method-name: upload @@ -62,6 +64,8 @@ paths: $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" + "403": + $ref: "#/components/responses/CannotAccessUploadedFile" "404": $ref: "#/components/responses/NotFound" "429": @@ -307,6 +311,7 @@ paths: description: | To delete your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. Remove the data from the transcript and mark it as deleted. + 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. operationId: deleteTranscript x-fern-sdk-group-name: transcripts x-fern-sdk-method-name: delete @@ -555,6 +560,7 @@ paths: summary: Get redacted audio description: | To retrieve the redacted audio on the EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com` in the `GET` request above. + Redacted audio files are only available for 24 hours. Make sure to download the file within this time frame. Retrieve the redacted audio object containing the status and URL to the redacted audio. operationId: getRedactedAudio x-fern-sdk-group-name: transcripts @@ -633,178 +639,178 @@ paths: # "504": # $ref: "#/components/responses/GatewayTimeout" - /lemur/v3/generate/task: - post: - tags: - - LeMUR - summary: Run a task using LeMUR - description: | - To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. - Use the LeMUR task endpoint to input your own LLM prompt. - operationId: lemurTask - x-fern-sdk-group-name: lemur - x-fern-sdk-method-name: task - x-fern-request-name: LemurTaskParams - requestBody: - description: Params to run the task - required: true - content: - application/json: - schema: - $ref: "#/components/schemas/LemurTaskParams" - responses: - "200": - description: LeMUR task response - content: - application/json: - schema: - $ref: "#/components/schemas/LemurTaskResponse" - headers: - X-RateLimit-Limit: - schema: - type: integer - description: Maximum number of allowed requests in a 60 second window. - X-RateLimit-Remaining: - schema: - type: integer - description: Number of remaining requests in the current time window. - X-RateLimit-Reset: - schema: - type: integer - description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit. - links: - PurgeLemurRequestDataById: - $ref: "#/components/links/PurgeLemurRequestDataById" - "400": - $ref: "#/components/responses/BadRequest" - "401": - $ref: "#/components/responses/Unauthorized" - "404": - $ref: "#/components/responses/NotFound" - "429": - $ref: "#/components/responses/TooManyRequests" - "500": - $ref: "#/components/responses/InternalServerError" - "503": - $ref: "#/components/responses/ServiceUnavailable" - "504": - $ref: "#/components/responses/GatewayTimeout" + # /lemur/v3/generate/task: + # post: + # tags: + # - LeMUR + # summary: Run a task using LeMUR + # description: | + # To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + # Use the LeMUR task endpoint to input your own LLM prompt. + # operationId: lemurTask + # x-fern-sdk-group-name: lemur + # x-fern-sdk-method-name: task + # x-fern-request-name: LemurTaskParams + # requestBody: + # description: Params to run the task + # required: true + # content: + # application/json: + # schema: + # $ref: "#/components/schemas/LemurTaskParams" + # responses: + # "200": + # description: LeMUR task response + # content: + # application/json: + # schema: + # $ref: "#/components/schemas/LemurTaskResponse" + # headers: + # X-RateLimit-Limit: + # schema: + # type: integer + # description: Maximum number of allowed requests in a 60 second window. + # X-RateLimit-Remaining: + # schema: + # type: integer + # description: Number of remaining requests in the current time window. + # X-RateLimit-Reset: + # schema: + # type: integer + # description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit. + # links: + # PurgeLemurRequestDataById: + # $ref: "#/components/links/PurgeLemurRequestDataById" + # "400": + # $ref: "#/components/responses/BadRequest" + # "401": + # $ref: "#/components/responses/Unauthorized" + # "404": + # $ref: "#/components/responses/NotFound" + # "429": + # $ref: "#/components/responses/TooManyRequests" + # "500": + # $ref: "#/components/responses/InternalServerError" + # "503": + # $ref: "#/components/responses/ServiceUnavailable" + # "504": + # $ref: "#/components/responses/GatewayTimeout" - /lemur/v3/generate/summary: - post: - tags: - - LeMUR - summary: Summarize a transcript using LeMUR - description: | - To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. - 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. - operationId: lemurSummary - x-fern-sdk-group-name: lemur - x-fern-sdk-method-name: summary - x-fern-request-name: LemurSummaryParams - requestBody: - description: Params to generate the summary - required: true - content: - application/json: - schema: - $ref: "#/components/schemas/LemurSummaryParams" - responses: - "200": - description: LeMUR summary response - content: - application/json: - schema: - $ref: "#/components/schemas/LemurSummaryResponse" - headers: - X-RateLimit-Limit: - schema: - type: integer - description: Maximum number of allowed requests in a 60 second window. - X-RateLimit-Remaining: - schema: - type: integer - description: Number of remaining requests in the current time window. - X-RateLimit-Reset: - schema: - type: integer - description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit. - links: - PurgeLemurRequestDataById: - $ref: "#/components/links/PurgeLemurRequestDataById" - "400": - $ref: "#/components/responses/BadRequest" - "401": - $ref: "#/components/responses/Unauthorized" - "404": - $ref: "#/components/responses/NotFound" - "429": - $ref: "#/components/responses/TooManyRequests" - "500": - $ref: "#/components/responses/InternalServerError" - "503": - $ref: "#/components/responses/ServiceUnavailable" - "504": - $ref: "#/components/responses/GatewayTimeout" + # /lemur/v3/generate/summary: + # post: + # tags: + # - LeMUR + # summary: Summarize a transcript using LeMUR + # description: | + # To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + # 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. + # operationId: lemurSummary + # x-fern-sdk-group-name: lemur + # x-fern-sdk-method-name: summary + # x-fern-request-name: LemurSummaryParams + # requestBody: + # description: Params to generate the summary + # required: true + # content: + # application/json: + # schema: + # $ref: "#/components/schemas/LemurSummaryParams" + # responses: + # "200": + # description: LeMUR summary response + # content: + # application/json: + # schema: + # $ref: "#/components/schemas/LemurSummaryResponse" + # headers: + # X-RateLimit-Limit: + # schema: + # type: integer + # description: Maximum number of allowed requests in a 60 second window. + # X-RateLimit-Remaining: + # schema: + # type: integer + # description: Number of remaining requests in the current time window. + # X-RateLimit-Reset: + # schema: + # type: integer + # description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit. + # links: + # PurgeLemurRequestDataById: + # $ref: "#/components/links/PurgeLemurRequestDataById" + # "400": + # $ref: "#/components/responses/BadRequest" + # "401": + # $ref: "#/components/responses/Unauthorized" + # "404": + # $ref: "#/components/responses/NotFound" + # "429": + # $ref: "#/components/responses/TooManyRequests" + # "500": + # $ref: "#/components/responses/InternalServerError" + # "503": + # $ref: "#/components/responses/ServiceUnavailable" + # "504": + # $ref: "#/components/responses/GatewayTimeout" - /lemur/v3/generate/question-answer: - post: - tags: - - LeMUR - summary: Ask questions using LeMUR - description: | - To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. - 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. - operationId: lemurQuestionAnswer - x-fern-sdk-group-name: lemur - x-fern-sdk-method-name: questionAnswer - x-fern-request-name: LemurQuestionAnswerParams - requestBody: - description: Params to ask questions about the transcripts - required: true - content: - application/json: - schema: - $ref: "#/components/schemas/LemurQuestionAnswerParams" - responses: - "200": - description: LeMUR question & answer response - content: - application/json: - schema: - $ref: "#/components/schemas/LemurQuestionAnswerResponse" - headers: - X-RateLimit-Limit: - schema: - type: integer - description: Maximum number of allowed requests in a 60 second window. - X-RateLimit-Remaining: - schema: - type: integer - description: Number of remaining requests in the current time window. - X-RateLimit-Reset: - schema: - type: integer - description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit. - links: - PurgeLemurRequestDataById: - $ref: "#/components/links/PurgeLemurRequestDataById" - "400": - $ref: "#/components/responses/BadRequest" - "401": - $ref: "#/components/responses/Unauthorized" - "404": - $ref: "#/components/responses/NotFound" - "429": - $ref: "#/components/responses/TooManyRequests" - "500": - $ref: "#/components/responses/InternalServerError" - "503": - $ref: "#/components/responses/ServiceUnavailable" - "504": - $ref: "#/components/responses/GatewayTimeout" + # /lemur/v3/generate/question-answer: + # post: + # tags: + # - LeMUR + # summary: Ask questions using LeMUR + # description: | + # To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + # 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. + # operationId: lemurQuestionAnswer + # x-fern-sdk-group-name: lemur + # x-fern-sdk-method-name: questionAnswer + # x-fern-request-name: LemurQuestionAnswerParams + # requestBody: + # description: Params to ask questions about the transcripts + # required: true + # content: + # application/json: + # schema: + # $ref: "#/components/schemas/LemurQuestionAnswerParams" + # responses: + # "200": + # description: LeMUR question & answer response + # content: + # application/json: + # schema: + # $ref: "#/components/schemas/LemurQuestionAnswerResponse" + # headers: + # X-RateLimit-Limit: + # schema: + # type: integer + # description: Maximum number of allowed requests in a 60 second window. + # X-RateLimit-Remaining: + # schema: + # type: integer + # description: Number of remaining requests in the current time window. + # X-RateLimit-Reset: + # schema: + # type: integer + # description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit. + # links: + # PurgeLemurRequestDataById: + # $ref: "#/components/links/PurgeLemurRequestDataById" + # "400": + # $ref: "#/components/responses/BadRequest" + # "401": + # $ref: "#/components/responses/Unauthorized" + # "404": + # $ref: "#/components/responses/NotFound" + # "429": + # $ref: "#/components/responses/TooManyRequests" + # "500": + # $ref: "#/components/responses/InternalServerError" + # "503": + # $ref: "#/components/responses/ServiceUnavailable" + # "504": + # $ref: "#/components/responses/GatewayTimeout" # /lemur/v3/generate/action-items: # post: @@ -862,90 +868,90 @@ paths: # "504": # $ref: "#/components/responses/GatewayTimeout" - /lemur/v3/{request_id}: - get: - tags: - - LeMUR - summary: Retrieve LeMUR response - description: | - To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. - Retrieve a LeMUR response that was previously generated. - operationId: getLemurResponse - x-fern-sdk-group-name: lemur - x-fern-sdk-method-name: getResponse - x-fern-request-name: GetLemurResponseParams - parameters: - - name: request_id - x-label: LeMUR request ID - in: path - description: | - The ID of the LeMUR request you previously made. - This would be found in the response of the original request. - required: true - schema: - type: string - responses: - "200": - description: LeMUR response - content: - application/json: - schema: - $ref: "#/components/schemas/LemurResponse" - "400": - $ref: "#/components/responses/BadRequest" - "401": - $ref: "#/components/responses/Unauthorized" - "404": - $ref: "#/components/responses/NotFound" - "429": - $ref: "#/components/responses/TooManyRequests" - "500": - $ref: "#/components/responses/InternalServerError" - "503": - $ref: "#/components/responses/ServiceUnavailable" - "504": - $ref: "#/components/responses/GatewayTimeout" - delete: - tags: - - LeMUR - summary: Purge LeMUR request data - description: | - To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. - 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. - operationId: purgeLemurRequestData - x-fern-sdk-group-name: lemur - x-fern-sdk-method-name: purgeRequestData - x-fern-request-name: PurgeLemurRequestDataParams - parameters: - - name: request_id - x-label: LeMUR request ID - in: path - description: The ID of the LeMUR request whose data you want to delete. This would be found in the response of the original request. - required: true - schema: - type: string - responses: - "200": - description: LeMUR request data deleted - content: - application/json: - schema: - $ref: "#/components/schemas/PurgeLemurRequestDataResponse" - "400": - $ref: "#/components/responses/BadRequest" - "401": - $ref: "#/components/responses/Unauthorized" - "404": - $ref: "#/components/responses/NotFound" - "429": - $ref: "#/components/responses/TooManyRequests" - "500": - $ref: "#/components/responses/InternalServerError" - "503": - $ref: "#/components/responses/ServiceUnavailable" - "504": - $ref: "#/components/responses/GatewayTimeout" + # /lemur/v3/{request_id}: + # get: + # tags: + # - LeMUR + # summary: Retrieve LeMUR response + # description: | + # To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + # Retrieve a LeMUR response that was previously generated. + # operationId: getLemurResponse + # x-fern-sdk-group-name: lemur + # x-fern-sdk-method-name: getResponse + # x-fern-request-name: GetLemurResponseParams + # parameters: + # - name: request_id + # x-label: LeMUR request ID + # in: path + # description: | + # The ID of the LeMUR request you previously made. + # This would be found in the response of the original request. + # required: true + # schema: + # type: string + # responses: + # "200": + # description: LeMUR response + # content: + # application/json: + # schema: + # $ref: "#/components/schemas/LemurResponse" + # "400": + # $ref: "#/components/responses/BadRequest" + # "401": + # $ref: "#/components/responses/Unauthorized" + # "404": + # $ref: "#/components/responses/NotFound" + # "429": + # $ref: "#/components/responses/TooManyRequests" + # "500": + # $ref: "#/components/responses/InternalServerError" + # "503": + # $ref: "#/components/responses/ServiceUnavailable" + # "504": + # $ref: "#/components/responses/GatewayTimeout" + # delete: + # tags: + # - LeMUR + # summary: Purge LeMUR request data + # description: | + # To use our EU server with LeMUR, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + # 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. + # operationId: purgeLemurRequestData + # x-fern-sdk-group-name: lemur + # x-fern-sdk-method-name: purgeRequestData + # x-fern-request-name: PurgeLemurRequestDataParams + # parameters: + # - name: request_id + # x-label: LeMUR request ID + # in: path + # description: The ID of the LeMUR request whose data you want to delete. This would be found in the response of the original request. + # required: true + # schema: + # type: string + # responses: + # "200": + # description: LeMUR request data deleted + # content: + # application/json: + # schema: + # $ref: "#/components/schemas/PurgeLemurRequestDataResponse" + # "400": + # $ref: "#/components/responses/BadRequest" + # "401": + # $ref: "#/components/responses/Unauthorized" + # "404": + # $ref: "#/components/responses/NotFound" + # "429": + # $ref: "#/components/responses/TooManyRequests" + # "500": + # $ref: "#/components/responses/InternalServerError" + # "503": + # $ref: "#/components/responses/ServiceUnavailable" + # "504": + # $ref: "#/components/responses/GatewayTimeout" components: links: @@ -1232,7 +1238,92 @@ components: x-fern-sdk-group-name: transcripts type: object additionalProperties: false + required: + - speech_models properties: + audio_end_at: + x-label: Audio end at + description: The point in time, in milliseconds, to stop transcribing in your media file + type: integer + + audio_start_from: + x-label: Audio start from + description: The point in time, in milliseconds, to begin transcribing in your media file + type: integer + + auto_chapters: + x-label: Auto chapters + description: Enable [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters), can be true or false + type: boolean + default: false + + auto_highlights: + x-label: Key phrases + description: Enable Key Phrases, either true or false + type: boolean + default: false + + content_safety: + x-label: Content Moderation + description: Enable [Content Moderation](https://www.assemblyai.com/docs/models/content-moderation), can be true or false + type: boolean + default: false + + content_safety_confidence: + x-label: Content Moderation confidence + description: The confidence threshold for the Content Moderation model. Values must be between 25 and 100. + type: integer + default: 50 + minimum: 25 + maximum: 100 + + custom_spelling: + x-label: Custom spellings + description: Customize how words are spelled and formatted using to and from values + type: array + items: + x-label: Custom spelling + $ref: "#/components/schemas/TranscriptCustomSpelling" + + disfluencies: + x-label: Disfluencies + description: Transcribe Filler Words, like "umm", in your media file; can be true or false + type: boolean + default: false + + entity_detection: + x-label: Entity Detection + description: Enable [Entity Detection](https://www.assemblyai.com/docs/models/entity-detection), can be true or false + type: boolean + default: false + + filter_profanity: + x-label: Filter profanity + description: Filter profanity from the transcribed text, can be true or false + type: boolean + default: false + + format_text: + x-label: Format text + description: Enable Text Formatting, can be true or false + type: boolean + default: true + + iab_categories: + x-label: Topic Detection + description: Enable [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection), can be true or false + type: boolean + default: false + + keyterms_prompt: + x-label: Keyterms prompt + description: | + Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3-Pro) domain-specific words or phrases (maximum 6 words per phrase). + type: array + items: + x-label: Keyterm + type: string + language_code: x-label: Language code description: | @@ -1247,6 +1338,27 @@ components: x-ts-type: LiteralUnion | null x-go-type: TranscriptLanguageCode + language_codes: + description: | + The language codes of your audio file. Used for [Code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) + One of the values specified must be `en`. + type: [array, "null"] + items: + x-label: Language code + $ref: "#/components/schemas/TranscriptLanguageCode" + + language_confidence_threshold: + x-label: Language confidence threshold + description: | + The confidence threshold for the automatically detected language. + An error will be returned if the language confidence is below this threshold. + Defaults to 0. + type: number + format: float + minimum: 0 + maximum: 1 + default: 0 + language_detection: x-label: Language detection description: Enable [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection), either true or false. @@ -1260,10 +1372,10 @@ components: additionalProperties: false properties: expected_languages: - x-label: Minimum speakers expected + x-label: Expected languages description: List of languages expected in the audio file. Defaults to `["all"]` when unspecified. type: array - objects: + items: x-label: language type: string fallback_language: @@ -1272,26 +1384,34 @@ components: If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. type: string default: "auto" + code_switching: + x-label: Code switching + description: | + Whether code switching should be detected. + type: boolean + default: false + code_switching_confidence_threshold: + x-label: Code switching confidence threshold + description: | + The confidence threshold for code switching detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score. + type: number + minimum: 0 + maximum: 1 + default: 0.3 - language_confidence_threshold: - x-label: Language confidence threshold + multichannel: + x-label: Multichannel + description: Enable [Multichannel](https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription) transcription, can be true or false. + type: boolean + default: false + + prompt: + x-label: Prompt description: | - The confidence threshold for the automatically detected language. - An error will be returned if the language confidence is below this threshold. - Defaults to 0. - type: number - format: float - minimum: 0 - maximum: 1 - default: 0 + Provide natural language prompting of up to 1,500 words of contextual information to the model. - speech_model: - x-label: Speech model - description: The speech model to use for the transcription. When `null`, the `universal` model is used. - default: universal - oneOf: - - $ref: "#/components/schemas/SpeechModel" - - type: "null" + Note: This parameter is only supported for the Universal-3-Pro model. + type: string punctuate: x-label: Punctuate @@ -1299,85 +1419,29 @@ components: type: boolean default: true - format_text: - x-label: Format text - description: Enable Text Formatting, can be true or false - type: boolean - default: true - - disfluencies: - x-label: Disfluencies - description: Transcribe Filler Words, like "umm", in your media file; can be true or false + redact_pii: + x-label: Redact PII + description: Redact PII from the transcribed text using the Redact PII model, can be true or false type: boolean default: false - multichannel: - x-label: Multichannel - description: Enable [Multichannel](https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription) transcription, can be true or false. + redact_pii_audio: + x-label: Redact PII audio + description: Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. type: boolean default: false - dual_channel: - x-label: Dual channel - description: Enable [Dual Channel](https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription) transcription, can be true or false. - type: boolean - default: false - deprecated: true - - webhook_url: - x-label: Webhook URL - description: | - The URL to which we send webhook requests. - We sends two different types of webhook requests. - One request when a transcript is completed or failed, and one request when the redacted audio is ready if redact_pii_audio is enabled. - type: string - format: url - - webhook_auth_header_name: - x-label: Webhook auth header name - description: The header name to be sent with the transcript completed or failed webhook requests - type: [string, "null"] - default: null - - webhook_auth_header_value: - x-label: Webhook auth header value - description: The header value to send back with the transcript completed or failed webhook requests for added security - type: [string, "null"] - default: null - - auto_highlights: - x-label: Key phrases - description: Enable Key Phrases, either true or false - type: boolean - default: false - - audio_start_from: - x-label: Audio start from - description: The point in time, in milliseconds, to begin transcribing in your media file - type: integer - - audio_end_at: - x-label: Audio end at - description: The point in time, in milliseconds, to stop transcribing in your media file - type: integer - - filter_profanity: - x-label: Filter profanity - description: Filter profanity from the transcribed text, can be true or false - type: boolean - default: false - - redact_pii: - x-label: Redact PII - description: Redact PII from the transcribed text using the Redact PII model, can be true or false - type: boolean - default: false - - redact_pii_audio: - x-label: Redact PII audio - description: Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. - type: boolean - default: false + redact_pii_audio_options: + x-label: Specify options for PII redacted audio files. + description: Specify options for PII redacted audio files. + type: object + additionalProperties: false + properties: + return_redacted_no_speech_audio: + x-label: Return redacted no speech audio + description: By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`. + type: boolean + default: false redact_pii_audio_quality: x-label: Redact PII audio quality @@ -1401,17 +1465,11 @@ components: - type: "null" default: hash - redact_pii_audio_options: - x-label: Specify options for PII redacted audio files. - description: Specify options for PII redacted audio files. - type: object - additionalProperties: false - properties: - return_redacted_no_speech_audio: - x-label: Return redacted no speech audio - description: By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`. - type: boolean - default: false + sentiment_analysis: + x-label: Sentiment Analysis + description: Enable [Sentiment Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis), can be true or false + type: boolean + default: false speaker_labels: x-label: Speaker labels @@ -1419,12 +1477,6 @@ components: type: boolean default: false - speakers_expected: - x-label: Speakers expected - description: Tells the speaker label model how many speakers it should attempt to identify. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details. - type: [integer, "null"] - default: null - speaker_options: x-label: Specify options for speaker diarization. description: Specify options for speaker diarization. @@ -1444,66 +1496,20 @@ components: type: integer default: 10 - content_safety: - x-label: Content Moderation - description: Enable [Content Moderation](https://www.assemblyai.com/docs/models/content-moderation), can be true or false - type: boolean - default: false - - content_safety_confidence: - x-label: Content Moderation confidence - description: The confidence threshold for the Content Moderation model. Values must be between 25 and 100. - type: integer - default: 50 - minimum: 25 - maximum: 100 - - iab_categories: - x-label: Topic Detection - description: Enable [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection), can be true or false - type: boolean - default: false - - custom_spelling: - x-label: Custom spellings - description: Customize how words are spelled and formatted using to and from values - type: array - items: - x-label: Custom spelling - $ref: "#/components/schemas/TranscriptCustomSpelling" + speakers_expected: + x-label: Speakers expected + description: Tells the speaker label model how many speakers it should attempt to identify. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details. + type: [integer, "null"] + default: null - keyterms_prompt: - x-label: Keyterms prompt + speech_models: + x-label: Speech models description: | - Improve accuracy with up to 200 (for Universal) or 1000 (for Slam-1) domain-specific words or phrases (maximum 6 words per phrase). + List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. type: array items: - x-label: Keyterm - type: string - - prompt: - x-label: Prompt - description: This parameter does not currently have any functionality attached to it. - type: string - deprecated: true - - sentiment_analysis: - x-label: Sentiment Analysis - description: Enable [Sentiment Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis), can be true or false - type: boolean - default: false - - auto_chapters: - x-label: Auto chapters - description: Enable [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters), can be true or false - type: boolean - default: false - - entity_detection: - x-label: Entity Detection - description: Enable [Entity Detection](https://www.assemblyai.com/docs/models/entity-detection), can be true or false - type: boolean - default: false + x-label: Speech model + $ref: "#/components/schemas/SpeechModel" speech_threshold: x-label: Speech threshold @@ -1516,6 +1522,18 @@ components: maximum: 1 default: 0 + speech_understanding: + x-label: Speech Understanding + description: Enable speech understanding tasks like translation, speaker identification, and custom formatting + type: object + properties: + request: + oneOf: + - $ref: "#/components/schemas/TranslationRequestBody" + - $ref: "#/components/schemas/SpeakerIdentificationRequestBody" + - $ref: "#/components/schemas/CustomFormattingRequestBody" + required: + - request summarization: x-label: Enable Summarization description: Enable [Summarization](https://www.assemblyai.com/docs/models/summarization), can be true or false @@ -1534,20 +1552,63 @@ components: default: bullets $ref: "#/components/schemas/SummaryType" + temperature: + x-label: Temperature + description: | + Control the amount of randomness injected into the model's response. + + Note: This parameter can only be used with the Universal-3-Pro model. + type: number + minimum: 0.0 + maximum: 1.0 + default: 0.0 + + webhook_auth_header_name: + x-label: Webhook auth header name + description: The header name to be sent with the transcript completed or failed webhook requests + type: [string, "null"] + default: null + + webhook_auth_header_value: + x-label: Webhook auth header value + description: The header value to send back with the transcript completed or failed webhook requests for added security + type: [string, "null"] + default: null + + webhook_url: + x-label: Webhook URL + description: | + The URL to which we send webhook requests. + We sends two different types of webhook requests. + One request when a transcript is completed or failed, and one request when the redacted audio is ready if redact_pii_audio is enabled. + type: string + format: url + custom_topics: x-label: Enable custom topics - description: Enable custom topics, either true or false + description: This parameter does not currently have any functionality attached to it. type: boolean default: false deprecated: true + speech_model: + x-label: Speech model + description: | + This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). + oneOf: + - $ref: "#/components/schemas/SpeechModel" + - type: "null" + deprecated: True + topics: x-label: Custom topics - description: The list of custom topics + description: This parameter does not currently have any functionality attached to it. type: array items: x-label: Topic type: string + deprecated: true + example: { speech_model: null, @@ -1557,7 +1618,6 @@ components: punctuate: true, format_text: true, multichannel: true, - dual_channel: false, webhook_url: "https://your-webhook-url.tld/path", webhook_auth_header_name: "webhook-secret", webhook_auth_header_value: "webhook-secret-value", @@ -1586,6 +1646,18 @@ components: summary_type: "bullets", custom_topics: true, topics: [], + speech_understanding: + { + request: + { + translation: + { + target_languages: ["es", "de"], + formal: true, + match_original_utterance: true, + }, + }, + }, } TranscriptParams: @@ -1615,7 +1687,6 @@ components: punctuate: true, format_text: true, multichannel: true, - dual_channel: false, webhook_url: "https://your-webhook-url/path", webhook_auth_header_name: "webhook-secret", webhook_auth_header_value: "webhook-secret-value", @@ -1644,6 +1715,18 @@ components: summary_type: "bullets", custom_topics: true, topics: [], + speech_understanding: + { + request: + { + translation: + { + target_languages: ["es", "de"], + formal: true, + match_original_utterance: true, + }, + }, + }, } SummaryModel: @@ -1765,6 +1848,12 @@ components: x-label: Speaker description: The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker B, etc. type: string + translated_texts: + x-label: Translated texts + description: 'Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled with translation.' + type: object + additionalProperties: + type: string required: - confidence - start @@ -2199,25 +2288,6 @@ components: type: string description: The speech model to use for the transcription. x-fern-sdk-group-name: transcripts - enum: - - best - - slam-1 - - universal - x-fern-enum: - universal: - name: Universal - description: The model optimized for accuracy, low latency, ease of use, and mutli-language support. - slam-1: - name: Slam-1 - description: A contextual model optimized for customization. - best: - name: Best - description: The model optimized for accuracy, low latency, ease of use, and mutli-language support. - x-aai-enum: - best: - label: Best - nano: - label: Nano TranscriptLanguageCode: x-label: Language code @@ -2590,11 +2660,25 @@ components: x-fern-sdk-group-name: transcripts additionalProperties: false properties: - id: - x-label: ID - description: The unique identifier of your transcript - type: string - format: uuid + audio_channels: + x-label: Audio channels + description: The number of audio channels in the audio file. This is only present when multichannel is enabled. + type: integer + + audio_duration: + x-label: Audio duration + description: The duration of this transcript object's media file, in seconds + type: [integer, "null"] + + audio_end_at: + x-label: Audio end at + description: The point in time, in milliseconds, in the file at which the transcription was terminated + type: [integer, "null"] + + audio_start_from: + x-label: Audio start from + description: The point in time, in milliseconds, in the file at which the transcription was started + type: [integer, "null"] audio_url: x-label: Audio URL @@ -2602,98 +2686,32 @@ components: type: string format: url - status: - x-label: Status - description: The status of your transcript. Possible values are queued, processing, completed, or error. - $ref: "#/components/schemas/TranscriptStatus" + auto_chapters: + x-label: Auto Chapters enabled + description: Whether [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters) is enabled, can be true or false + type: [boolean, "null"] - language_code: - x-label: Language code + auto_highlights: + x-label: Key Phrases + description: Whether Key Phrases is enabled, either true or false + type: boolean + + auto_highlights_result: + x-label: Key Phrases result description: | - The language of your audio file. - Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages). - The default value is 'en_us'. - anyOf: - - $ref: "#/components/schemas/TranscriptLanguageCode" - - type: string - x-ts-type: LiteralUnion - x-go-type: TranscriptLanguageCode + 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. + oneOf: + - $ref: "#/components/schemas/AutoHighlightsResult" + - type: "null" - language_detection: - x-label: Language detection - description: Whether [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection) is enabled, either true or false - type: [boolean, "null"] - - language_detection_options: - x-label: Specify options for Automatic Language Detection. - description: Specify options for Automatic Language Detection. - type: object - additionalProperties: false - properties: - expected_languages: - x-label: Minimum speakers expected - description: List of languages expected in the audio file. Defaults to `["all"]` when unspecified. - type: array - objects: - x-label: language - type: string - fallback_language: - x-label: Fallback language - description: | - If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. - type: string - default: "auto" - - language_confidence_threshold: - x-label: Language confidence threshold - description: | - The confidence threshold for the automatically detected language. - An error will be returned if the language confidence is below this threshold. - type: [number, "null"] - format: float - minimum: 0 - maximum: 1 - - language_confidence: - x-label: Language confidence - description: The confidence score for the detected language, between 0.0 (low confidence) and 1.0 (high confidence) - type: [number, "null"] - format: double - minimum: 0 - maximum: 1 - - speech_model: - x-label: Speech model - description: The speech model used for the transcription. When `null`, the `universal` model is used. - default: null - oneOf: - - $ref: "#/components/schemas/SpeechModel" - - type: "null" - - text: - x-label: Text - description: The textual transcript of your media file - type: [string, "null"] - - words: - x-label: Words - description: | - An array of temporally-sequential word objects, one for each word in the transcript. - See [Speech recognition](https://www.assemblyai.com/docs/models/speech-recognition) for more information. - type: [array, "null"] - items: - x-label: Word - $ref: "#/components/schemas/TranscriptWord" - - utterances: - x-label: Utterances - description: | - When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects. - See [Speaker diarization](https://www.assemblyai.com/docs/speech-to-text/speaker-diarization) and [Multichannel transcription](https://www.assemblyai.com/docs/speech-to-text/speech-recognition#multichannel-transcription) for more information. - type: [array, "null"] - items: - x-label: Utterance - $ref: "#/components/schemas/TranscriptUtterance" + chapters: + x-label: Chapters + description: An array of temporally sequential chapters for the audio file + type: [array, "null"] + items: + x-label: Chapter + $ref: "#/components/schemas/Chapter" confidence: x-label: Confidence @@ -2703,161 +2721,63 @@ components: minimum: 0 maximum: 1 - audio_duration: - x-label: Audio duration - description: The duration of this transcript object's media file, in seconds - type: [integer, "null"] - - punctuate: - x-label: Punctuate - description: Whether Automatic Punctuation is enabled, either true or false + content_safety: + x-label: Content Moderation + description: Whether [Content Moderation](https://www.assemblyai.com/docs/models/content-moderation) is enabled, can be true or false type: [boolean, "null"] - format_text: - x-label: Format text - description: Whether Text Formatting is enabled, either true or false - type: [boolean, "null"] + content_safety_labels: + x-label: Content Moderation labels + description: | + 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. + oneOf: + - $ref: "#/components/schemas/ContentSafetyLabelsResult" + - type: "null" + + custom_spelling: + x-label: Custom spellings + description: Customize how words are spelled and formatted using to and from values + type: [array, "null"] + items: + x-label: Custom spelling + $ref: "#/components/schemas/TranscriptCustomSpelling" disfluencies: x-label: Disfluencies description: Transcribe Filler Words, like "umm", in your media file; can be true or false type: [boolean, "null"] - multichannel: - x-label: Multichannel - description: Whether [Multichannel transcription](https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription) was enabled in the transcription request, either true or false - type: [boolean, "null"] - - audio_channels: - x-label: Audio channels - description: The number of audio channels in the audio file. This is only present when multichannel is enabled. - type: integer - - dual_channel: - x-label: Dual channel - description: Whether [Dual channel transcription](https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription) was enabled in the transcription request, either true or false - type: [boolean, "null"] - deprecated: true - - webhook_url: - x-label: Webhook URL + entities: + x-label: Entities description: | - The URL to which we send webhook requests. - We sends two different types of webhook requests. - One request when a transcript is completed or failed, and one request when the redacted audio is ready if redact_pii_audio is enabled. - type: [string, "null"] - format: url - - webhook_status_code: - x-label: Webhook HTTP status code - description: The status code we received from your server when delivering the transcript completed or failed webhook request, if a webhook URL was provided - type: [integer, "null"] - - webhook_auth: - x-label: Webhook auth enabled - description: Whether webhook authentication details were provided - type: boolean - - webhook_auth_header_name: - x-label: Webhook auth header name - description: The header name to be sent with the transcript completed or failed webhook requests - type: [string, "null"] + An array of results for the Entity Detection model, if it is enabled. + See [Entity detection](https://www.assemblyai.com/docs/models/entity-detection) for more information. + type: [array, "null"] + items: + x-label: Entity + $ref: "#/components/schemas/Entity" - speed_boost: - x-label: Speed boost - description: Whether speed boost is enabled + entity_detection: + x-label: Entity Detection + description: Whether [Entity Detection](https://www.assemblyai.com/docs/models/entity-detection) is enabled, can be true or false type: [boolean, "null"] - deprecated: true - - auto_highlights: - x-label: Key Phrases - description: Whether Key Phrases is enabled, either true or false - type: boolean - auto_highlights_result: - x-label: Key Phrases result - description: | - 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. - oneOf: - - $ref: "#/components/schemas/AutoHighlightsResult" - - type: "null" - - audio_start_from: - x-label: Audio start from - description: The point in time, in milliseconds, in the file at which the transcription was started - type: [integer, "null"] - - audio_end_at: - x-label: Audio end at - description: The point in time, in milliseconds, in the file at which the transcription was terminated - type: [integer, "null"] + error: + x-label: Error + description: Error message of why the transcript failed + type: string filter_profanity: x-label: Filter profanity description: Whether [Profanity Filtering](https://www.assemblyai.com/docs/models/speech-recognition#profanity-filtering) is enabled, either true or false type: [boolean, "null"] - redact_pii: - x-label: Redact PII - description: Whether [PII Redaction](https://www.assemblyai.com/docs/models/pii-redaction) is enabled, either true or false - type: boolean - - redact_pii_audio: - x-label: Redact PII audio - description: | - Whether a redacted version of the audio file was generated, - either true or false. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. - type: [boolean, "null"] - - redact_pii_audio_quality: - x-label: Redact PII audio quality - description: | - The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled. - See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. - oneOf: - - $ref: "#/components/schemas/RedactPiiAudioQuality" - - type: "null" - - redact_pii_policies: - x-label: Redact PII policies - description: | - The list of PII Redaction policies that were enabled, if PII Redaction is enabled. - See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. - type: [array, "null"] - items: - x-label: PII policy - $ref: "#/components/schemas/PiiPolicy" - - redact_pii_sub: - x-label: Redact PII substitution - description: The replacement logic for detected PII, can be `entity_type` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. - $ref: "#/components/schemas/SubstitutionPolicy" - - speaker_labels: - x-label: Speaker labels - description: Whether [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, can be true or false - type: [boolean, "null"] - - speakers_expected: - x-label: Speakers expected - description: Tell the speaker label model how many speakers it should attempt to identify. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details. - type: [integer, "null"] - - content_safety: - x-label: Content Moderation - description: Whether [Content Moderation](https://www.assemblyai.com/docs/models/content-moderation) is enabled, can be true or false + format_text: + x-label: Format text + description: Whether Text Formatting is enabled, either true or false type: [boolean, "null"] - content_safety_labels: - x-label: Content Moderation labels - description: | - 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. - oneOf: - - $ref: "#/components/schemas/ContentSafetyLabelsResult" - - type: "null" - iab_categories: x-label: Topic Detection description: Whether [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) is enabled, can be true or false @@ -2872,77 +2792,152 @@ components: - $ref: "#/components/schemas/TopicDetectionModelResult" - type: "null" - custom_spelling: - x-label: Custom spellings - description: Customize how words are spelled and formatted using to and from values - type: [array, "null"] - items: - x-label: Custom spelling - $ref: "#/components/schemas/TranscriptCustomSpelling" + id: + x-label: ID + description: The unique identifier of your transcript + type: string + format: uuid keyterms_prompt: x-label: Keyterms prompt description: | - Improve accuracy with up to 200 (for Universal) or 1000 (for Slam-1) domain-specific words or phrases (maximum 6 words per phrase). + Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3-Pro) domain-specific words or phrases (maximum 6 words per phrase). type: array items: x-label: Keyterm type: string + language_code: + x-label: Language code + description: | + The language of your audio file. + Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages). + The default value is 'en_us'. + anyOf: + - $ref: "#/components/schemas/TranscriptLanguageCode" + - type: string + x-ts-type: LiteralUnion + x-go-type: TranscriptLanguageCode + + language_codes: + description: | + The language codes of your audio file. Used for [Code switching](/docs/speech-to-text/pre-recorded-audio/code-switching) + One of the values specified must be `en`. + type: [array, "null"] + items: + x-label: Language code + $ref: "#/components/schemas/TranscriptLanguageCode" + + language_confidence: + x-label: Language confidence + description: The confidence score for the detected language, between 0.0 (low confidence) and 1.0 (high confidence) + type: [number, "null"] + format: double + minimum: 0 + maximum: 1 + + language_confidence_threshold: + x-label: Language confidence threshold + description: | + The confidence threshold for the automatically detected language. + An error will be returned if the language confidence is below this threshold. + type: [number, "null"] + format: float + minimum: 0 + maximum: 1 + + language_detection: + x-label: Language detection + description: Whether [Automatic language detection](/docs/pre-recorded-audio/automatic-language-detection) is enabled, either true or false + type: [boolean, "null"] + + language_detection_options: + x-label: Specify options for Automatic Language Detection. + description: Specify options for Automatic Language Detection. + type: object + additionalProperties: false + properties: + expected_languages: + x-label: Expected languages + description: List of languages expected in the audio file. Defaults to `["all"]` when unspecified. + type: array + items: + x-label: language + type: string + fallback_language: + x-label: Fallback language + description: | + If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. + type: string + default: "auto" + code_switching: + x-label: Code switching + description: | + Whether code switching should be detected. + type: boolean + default: false + code_switching_confidence_threshold: + x-label: Code switching confidence threshold + description: | + The confidence threshold for code switching detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score. + type: number + minimum: 0 + maximum: 1 + default: 0.3 + + multichannel: + x-label: Multichannel + description: Whether [Multichannel transcription](https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription) was enabled in the transcription request, either true or false + type: [boolean, "null"] + prompt: x-label: Prompt - description: This parameter does not currently have any functionality attached to it. + description: | + Provide natural language prompting of up to 1,500 words of contextual information to the model. + + Note: This parameter is only supported for the Universal-3-Pro model. type: string - deprecated: true - auto_chapters: - x-label: Auto Chapters enabled - description: Whether [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters) is enabled, can be true or false + punctuate: + x-label: Punctuate + description: Whether Automatic Punctuation is enabled, either true or false type: [boolean, "null"] - chapters: - x-label: Chapters - description: An array of temporally sequential chapters for the audio file - type: [array, "null"] - items: - x-label: Chapter - $ref: "#/components/schemas/Chapter" - - summarization: - x-label: Summarization enabled - description: Whether [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled, either true or false + redact_pii: + x-label: Redact PII + description: Whether [PII Redaction](https://www.assemblyai.com/docs/models/pii-redaction) is enabled, either true or false type: boolean - summary_type: - x-label: Summary type - description: The type of summary generated, if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled - type: [string, "null"] - - summary_model: - x-label: Summary model + redact_pii_audio: + x-label: Redact PII audio description: | - The Summarization model used to generate the summary, - if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled - type: [string, "null"] - - summary: - x-label: Summary - description: The generated summary of the media file, if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled - type: [string, "null"] - - custom_topics: - x-label: Custom topics enabled - description: Whether custom topics is enabled, either true or false + Whether a redacted version of the audio file was generated, + either true or false. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. type: [boolean, "null"] - deprecated: true - topics: - x-label: Topics - description: The list of custom topics provided if custom topics is enabled - type: array + redact_pii_audio_quality: + x-label: Redact PII audio quality + description: | + The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled. + See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. + oneOf: + - $ref: "#/components/schemas/RedactPiiAudioQuality" + - type: "null" + + redact_pii_policies: + x-label: Redact PII policies + description: | + The list of PII Redaction policies that were enabled, if PII Redaction is enabled. + See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. + type: [array, "null"] items: - x-label: Topic - type: string + x-label: PII policy + $ref: "#/components/schemas/PiiPolicy" + + redact_pii_sub: + x-label: Redact PII substitution + description: The replacement logic for detected PII, can be `entity_type` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. + $ref: "#/components/schemas/SubstitutionPolicy" sentiment_analysis: x-label: Sentiment Analysis @@ -2959,20 +2954,30 @@ components: x-label: Sentiment Analysis result $ref: "#/components/schemas/SentimentAnalysisResult" - entity_detection: - x-label: Entity Detection - description: Whether [Entity Detection](https://www.assemblyai.com/docs/models/entity-detection) is enabled, can be true or false + speaker_labels: + x-label: Speaker labels + description: Whether [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, can be true or false type: [boolean, "null"] - entities: - x-label: Entities + speakers_expected: + x-label: Speakers expected + description: Tell the speaker label model how many speakers it should attempt to identify. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details. + type: [integer, "null"] + + speech_model_used: + x-label: Speech model used + description: The speech model that was actually used for the transcription. + type: string + $ref: "#/components/schemas/SpeechModel" + + speech_models: + x-label: Speech models description: | - An array of results for the Entity Detection model, if it is enabled. - See [Entity detection](https://www.assemblyai.com/docs/models/entity-detection) for more information. + List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. type: [array, "null"] items: - x-label: Entity - $ref: "#/components/schemas/Entity" + x-label: Speech model + $ref: "#/components/schemas/SpeechModel" speech_threshold: x-label: Speech threshold @@ -2984,28 +2989,168 @@ components: maximum: 1 format: float + speech_understanding: + x-label: Speech Understanding + description: Enable speech understanding tasks like translation, speaker identification, and custom formatting + type: object + properties: + request: + oneOf: + - $ref: "#/components/schemas/TranslationRequestBody" + - $ref: "#/components/schemas/SpeakerIdentificationRequestBody" + - $ref: "#/components/schemas/CustomFormattingRequestBody" + response: + oneOf: + - $ref: "#/components/schemas/TranslationResponse" + - $ref: "#/components/schemas/SpeakerIdentificationResponse" + - $ref: "#/components/schemas/CustomFormattingResponse" + + status: + x-label: Status + description: The status of your transcript. Possible values are queued, processing, completed, or error. + $ref: "#/components/schemas/TranscriptStatus" + + summarization: + x-label: Summarization enabled + description: Whether [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled, either true or false + type: boolean + + summary: + x-label: Summary + description: The generated summary of the media file, if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled + type: [string, "null"] + + summary_model: + x-label: Summary model + description: | + The Summarization model used to generate the summary, + if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled + type: [string, "null"] + + summary_type: + x-label: Summary type + description: The type of summary generated, if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled + type: [string, "null"] + + temperature: + x-label: Temperature + description: | + The temperature that was used for the model's response. + + Note: This parameter can only be used with the Universal-3-Pro model. + type: [number, "null"] + minimum: 0.0 + maximum: 1.0 + + text: + x-label: Text + description: The textual transcript of your media file + type: [string, "null"] + throttled: x-label: Throttled description: True while a request is throttled and false when a request is no longer throttled type: [boolean, "null"] - error: - x-label: Error - description: Error message of why the transcript failed + utterances: + x-label: Utterances + description: | + When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects. + See [Speaker diarization](https://www.assemblyai.com/docs/speech-to-text/speaker-diarization) and [Multichannel transcription](https://www.assemblyai.com/docs/speech-to-text/speech-recognition#multichannel-transcription) for more information. + type: [array, "null"] + items: + x-label: Utterance + $ref: "#/components/schemas/TranscriptUtterance" + + webhook_auth: + x-label: Webhook auth enabled + description: Whether webhook authentication details were provided + type: boolean + + webhook_auth_header_name: + x-label: Webhook auth header name + description: The header name to be sent with the transcript completed or failed webhook requests + type: [string, "null"] + + webhook_status_code: + x-label: Webhook HTTP status code + description: The status code we received from your server when delivering the transcript completed or failed webhook request, if a webhook URL was provided + type: [integer, "null"] + + webhook_url: + x-label: Webhook URL + description: | + The URL to which we send webhook requests. + We sends two different types of webhook requests. + One request when a transcript is completed or failed, and one request when the redacted audio is ready if redact_pii_audio is enabled. + type: [string, "null"] + format: url + + words: + x-label: Words + description: | + An array of temporally-sequential word objects, one for each word in the transcript. + See [Speech recognition](https://www.assemblyai.com/docs/models/speech-recognition) for more information. + type: [array, "null"] + items: + x-label: Word + $ref: "#/components/schemas/TranscriptWord" + + acoustic_model: + x-label: Acoustic model + description: This parameter does not currently have any functionality attached to it. type: string + deprecated: true + + custom_topics: + x-label: Custom topics enabled + description: This parameter does not currently have any functionality attached to it. + type: [boolean, "null"] + deprecated: true language_model: x-label: Language model - description: The language model that was used for the transcript + description: This parameter does not currently have any functionality attached to it. type: string deprecated: true - acoustic_model: - x-label: Acoustic model - description: The acoustic model that was used for the transcript - type: string + speech_model: + x-label: Speech model + description: | + This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). + oneOf: + - $ref: "#/components/schemas/SpeechModel" + - type: "null" + deprecated: True + + speed_boost: + x-label: Speed boost + description: This parameter does not currently have any functionality attached to it. + type: [boolean, "null"] + deprecated: true + + topics: + x-label: Topics + description: This parameter does not currently have any functionality attached to it. + type: array + items: + x-label: Topic + type: string deprecated: true + required: + - request + + translated_texts: + # x-label: Translated text + type: object + description: Translated text keyed by language code + properties: + language_code: + x-label: Language code + type: string + description: Translated text for this language code + required: - id - speech_model @@ -3263,7 +3408,6 @@ components: punctuate: true, format_text: true, multichannel: false, - dual_channel: false, webhook_url: "https://your-webhook-url.tld/path", webhook_status_code: 200, webhook_auth: true, @@ -5938,7 +6082,103 @@ components: x-label: Status type: string const: error - example: { error: "format_text must be a Boolean" } + example: + { error: "format_text must be a Boolean" } + + # Speech Understanding Request Schemas + TranslationRequestBody: + x-label: Translation request body + type: object + properties: + translation: + type: object + properties: + target_languages: + type: array + items: + type: string + description: List of target language codes (e.g., `["es", "de"]`) + formal: + type: boolean + description: Use formal language style + default: true + match_original_utterance: + type: boolean + description: When enabled with Speaker Labels, returns translated text in the utterances array. Each utterance will include a `translated_texts` key containing translations for each target language. + default: false + required: + - target_languages + required: + - translation + + SpeakerIdentificationRequestBody: + type: object + properties: + speaker_identification: + type: object + properties: + speaker_type: + type: string + enum: [role, name] + description: Type of speaker identification + known_values: + type: array + items: + type: string + description: Required if speaker_type is "role". Each value must be 35 characters or less. + required: + - speaker_type + required: + - speaker_identification + + CustomFormattingRequestBody: + type: object + properties: + custom_formatting: + type: object + properties: + date: + type: string + description: Date format pattern (e.g., `"mm/dd/yyyy"`) + phone_number: + type: string + description: Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`) + email: + type: string + description: Email format pattern (e.g., `"username@domain.com"`) + required: + - custom_formatting + + TranslationResponse: + type: object + properties: + translation: + type: object + properties: + status: + type: string + + SpeakerIdentificationResponse: + type: object + properties: + speaker_identification: + type: object + properties: + status: + type: string + + CustomFormattingResponse: + type: object + properties: + custom_formatting: + type: object + properties: + mapping: + type: object + additionalProperties: + type: string + formatted_text: + type: string examples: VttSubtitlesResponse: @@ -5984,7 +6224,6 @@ components: punctuate: null, format_text: null, multichannel: false, - dual_channel: null, webhook_url: "http://deleted_by_user", webhook_status_code: null, webhook_auth: false, @@ -6046,6 +6285,14 @@ components: $ref: "#/components/schemas/Error" example: { "error": "Authentication error, API token missing/invalid" } + CannotAccessUploadedFile: + x-label: Cannot access uploaded file + description: Cannot access uploaded file + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + example: { "error": "Cannot access uploaded file" } NotFound: x-label: Not found description: Not found