From 9cfce8630bb538e5de7b08c4c8cdc5942b33e819 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Mar 2026 09:54:23 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../AssemblyAI..JsonSerializerContext.g.cs | 4 + ...ioOptionsOverrideAudioRedactionMethod.g.cs | 53 ++++ ...sOverrideAudioRedactionMethodNullable.g.cs | 60 +++++ ...ioOptionsOverrideAudioRedactionMethod.g.cs | 53 ++++ ...sOverrideAudioRedactionMethodNullable.g.cs | 60 +++++ ...AssemblyAI.JsonSerializerContextTypes.g.cs | 248 +++++++++--------- .../AssemblyAI.Models.Transcript.g.cs | 13 + ...ptOptionalParamsRedactPiiAudioOptions.g.cs | 14 +- ...ioOptionsOverrideAudioRedactionMethod.g.cs | 45 ++++ ....TranscriptRedactPiiAudioOptions.Json.g.cs | 92 +++++++ ...odels.TranscriptRedactPiiAudioOptions.g.cs | 60 +++++ ...ioOptionsOverrideAudioRedactionMethod.g.cs | 45 ++++ src/libs/AssemblyAI/openapi.yaml | 26 ++ 13 files changed, 654 insertions(+), 119 deletions(-) create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.Json.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI..JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI..JsonSerializerContext.g.cs index 4f5554b..5171a4c 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI..JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI..JsonSerializerContext.g.cs @@ -21,6 +21,8 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.SubtitleFormatNullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.RedactPiiAudioQualityJsonConverter), typeof(global::AssemblyAI.JsonConverters.RedactPiiAudioQualityNullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.PiiPolicyJsonConverter), @@ -43,6 +45,8 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.AudioIntelligenceModelStatusNullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.EntityTypeJsonConverter), typeof(global::AssemblyAI.JsonConverters.EntityTypeNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.SentimentJsonConverter), typeof(global::AssemblyAI.JsonConverters.SentimentNullableJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsJsonConverter), diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs new file mode 100644 index 0000000..f8c9b1b --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs new file mode 100644 index 0000000..0e05470 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs new file mode 100644 index 0000000..09efc82 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs new file mode 100644 index 0000000..2f1a7a8 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs index 44e5308..2e78aa0 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -148,475 +148,487 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.RedactPiiAudioQuality? Type30 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type30 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type31 { get; set; } + public global::AssemblyAI.RedactPiiAudioQuality? Type31 { get; set; } /// /// /// - public global::AssemblyAI.PiiPolicy? Type32 { get; set; } + public global::System.Collections.Generic.IList? Type32 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type33 { get; set; } + public global::AssemblyAI.PiiPolicy? Type33 { get; set; } /// /// /// - public global::AssemblyAI.SubstitutionPolicy? Type34 { get; set; } + public global::AssemblyAI.OneOf? Type34 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type35 { get; set; } + public global::AssemblyAI.SubstitutionPolicy? Type35 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type36 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type36 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type37 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type37 { get; set; } /// /// /// - public global::AssemblyAI.TranslationRequestBody? Type38 { get; set; } + public global::AssemblyAI.OneOf? Type38 { get; set; } /// /// /// - public global::AssemblyAI.TranslationRequestBodyTranslation? Type39 { get; set; } + public global::AssemblyAI.TranslationRequestBody? Type39 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBody? Type40 { get; set; } + public global::AssemblyAI.TranslationRequestBodyTranslation? Type40 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type41 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBody? Type41 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type42 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type42 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type43 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type43 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type44 { get; set; } + public global::System.Collections.Generic.IList? Type44 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingRequestBody? Type45 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type45 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type46 { get; set; } + public global::AssemblyAI.CustomFormattingRequestBody? Type46 { get; set; } /// /// /// - public global::AssemblyAI.SummaryModel? Type47 { get; set; } + public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type47 { get; set; } /// /// /// - public global::AssemblyAI.SummaryType? Type48 { get; set; } + public global::AssemblyAI.SummaryModel? Type48 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type49 { get; set; } + public global::AssemblyAI.SummaryType? Type49 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type50 { get; set; } + public global::AssemblyAI.OneOf? Type50 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type51 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type51 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParams? Type52 { get; set; } + public global::AssemblyAI.OneOf? Type52 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParamsVariant1? Type53 { get; set; } + public global::AssemblyAI.TranscriptParams? Type53 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptBoostParam? Type54 { get; set; } + public global::AssemblyAI.TranscriptParamsVariant1? Type54 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptUtterance? Type55 { get; set; } + public global::AssemblyAI.TranscriptBoostParam? Type55 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type56 { get; set; } + public global::AssemblyAI.TranscriptUtterance? Type56 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptWord? Type57 { get; set; } + public global::System.Collections.Generic.IList? Type57 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type58 { get; set; } + public global::AssemblyAI.TranscriptWord? Type58 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptStatus? Type59 { get; set; } + public global::System.Collections.Generic.Dictionary? Type59 { get; set; } /// /// /// - public global::AssemblyAI.Transcript? Type60 { get; set; } + public global::AssemblyAI.TranscriptStatus? Type60 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type61 { get; set; } + public global::AssemblyAI.Transcript? Type61 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightsResult2? Type62 { get; set; } + public global::AssemblyAI.OneOf? Type62 { get; set; } /// /// /// - public global::AssemblyAI.AudioIntelligenceModelStatus? Type63 { get; set; } + public global::AssemblyAI.AutoHighlightsResult2? Type63 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type64 { get; set; } + public global::AssemblyAI.AudioIntelligenceModelStatus? Type64 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightResult? Type65 { get; set; } + public global::System.Collections.Generic.IList? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type66 { get; set; } + public global::AssemblyAI.AutoHighlightResult? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::System.Collections.Generic.IList? Type67 { get; set; } /// /// /// - public global::AssemblyAI.Chapter? Type68 { get; set; } + public global::System.Collections.Generic.IList? Type68 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type69 { get; set; } + public global::AssemblyAI.Chapter? Type69 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelsResult? Type70 { get; set; } + public global::AssemblyAI.OneOf? Type70 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type71 { get; set; } + public global::AssemblyAI.ContentSafetyLabelsResult? Type71 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelResult? Type72 { get; set; } + public global::System.Collections.Generic.IList? Type72 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type73 { get; set; } + public global::AssemblyAI.ContentSafetyLabelResult? Type73 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabel? Type74 { get; set; } + public global::System.Collections.Generic.IList? Type74 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type75 { get; set; } + public global::AssemblyAI.ContentSafetyLabel? Type75 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type76 { get; set; } + public global::System.Collections.Generic.Dictionary? Type76 { get; set; } /// /// /// - public global::AssemblyAI.SeverityScoreSummary? Type77 { get; set; } + public global::System.Collections.Generic.Dictionary? Type77 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type78 { get; set; } + public global::AssemblyAI.SeverityScoreSummary? Type78 { get; set; } /// /// /// - public global::AssemblyAI.Entity? Type79 { get; set; } + public global::System.Collections.Generic.IList? Type79 { get; set; } /// /// /// - public global::AssemblyAI.EntityType? Type80 { get; set; } + public global::AssemblyAI.Entity? Type80 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type81 { get; set; } + public global::AssemblyAI.EntityType? Type81 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionModelResult? Type82 { get; set; } + public global::AssemblyAI.OneOf? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::AssemblyAI.TopicDetectionModelResult? Type83 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResult? Type84 { get; set; } + public global::System.Collections.Generic.IList? Type84 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type85 { get; set; } + public global::AssemblyAI.TopicDetectionResult? Type85 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResultLabel? Type86 { get; set; } + public global::System.Collections.Generic.IList? Type86 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type87 { get; set; } + public global::AssemblyAI.TopicDetectionResultLabel? Type87 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type88 { get; set; } + public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type88 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type89 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type89 { get; set; } /// /// /// - public global::AssemblyAI.SentimentAnalysisResult? Type90 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type90 { get; set; } /// /// /// - public global::AssemblyAI.Sentiment? Type91 { get; set; } + public global::AssemblyAI.OneOf? Type91 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSpeechUnderstanding? Type92 { get; set; } + public global::System.Collections.Generic.IList? Type92 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type93 { get; set; } + public global::AssemblyAI.SentimentAnalysisResult? Type93 { get; set; } /// /// /// - public global::AssemblyAI.TranslationResponse? Type94 { get; set; } + public global::AssemblyAI.Sentiment? Type94 { get; set; } /// /// /// - public global::AssemblyAI.TranslationResponseTranslation? Type95 { get; set; } + public global::AssemblyAI.TranscriptSpeechUnderstanding? Type95 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationResponse? Type96 { get; set; } + public global::AssemblyAI.OneOf? Type96 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type97 { get; set; } + public global::AssemblyAI.TranslationResponse? Type97 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingResponse? Type98 { get; set; } + public global::AssemblyAI.TranslationResponseTranslation? Type98 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type99 { get; set; } + public global::AssemblyAI.SpeakerIdentificationResponse? Type99 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type100 { get; set; } + public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type100 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRemoveAudioTags? Type101 { get; set; } + public global::AssemblyAI.CustomFormattingResponse? Type101 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type102 { get; set; } + public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type102 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptTranslatedTexts? Type103 { get; set; } + public global::AssemblyAI.OneOf? Type103 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSentence? Type104 { get; set; } + public global::AssemblyAI.TranscriptRemoveAudioTags? Type104 { get; set; } /// /// /// - public global::AssemblyAI.SentencesResponse? Type105 { get; set; } + public global::System.Collections.Generic.IList? Type105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type106 { get; set; } + public global::AssemblyAI.TranscriptTranslatedTexts? Type106 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParagraph? Type107 { get; set; } + public global::AssemblyAI.TranscriptSentence? Type107 { get; set; } /// /// /// - public global::AssemblyAI.ParagraphsResponse? Type108 { get; set; } + public global::AssemblyAI.SentencesResponse? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::System.Collections.Generic.IList? Type109 { get; set; } /// /// /// - public global::AssemblyAI.PageDetails? Type110 { get; set; } + public global::AssemblyAI.TranscriptParagraph? Type110 { get; set; } /// /// /// - public global::AssemblyAI.ListTranscriptParams? Type111 { get; set; } + public global::AssemblyAI.ParagraphsResponse? Type111 { get; set; } /// /// /// - public global::System.DateTime? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptListItem? Type113 { get; set; } + public global::AssemblyAI.PageDetails? Type113 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptList? Type114 { get; set; } + public global::AssemblyAI.ListTranscriptParams? Type114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type115 { get; set; } + public global::System.DateTime? Type115 { get; set; } /// /// /// - public global::AssemblyAI.UploadedFile? Type116 { get; set; } + public global::AssemblyAI.TranscriptListItem? Type116 { get; set; } /// /// /// - public global::AssemblyAI.CreateRealtimeTemporaryTokenParams? Type117 { get; set; } + public global::AssemblyAI.TranscriptList? Type117 { get; set; } /// /// /// - public global::AssemblyAI.RealtimeTemporaryTokenResponse? Type118 { get; set; } + public global::System.Collections.Generic.IList? Type118 { get; set; } /// /// /// - public global::AssemblyAI.PurgeLemurRequestDataResponse? Type119 { get; set; } + public global::AssemblyAI.UploadedFile? Type119 { get; set; } /// /// /// - public global::AssemblyAI.LemurBaseResponse? Type120 { get; set; } + public global::AssemblyAI.CreateRealtimeTemporaryTokenParams? Type120 { get; set; } /// /// /// - public global::AssemblyAI.LemurUsage? Type121 { get; set; } + public global::AssemblyAI.RealtimeTemporaryTokenResponse? Type121 { get; set; } /// /// /// - public global::AssemblyAI.LemurStringResponse? Type122 { get; set; } + public global::AssemblyAI.PurgeLemurRequestDataResponse? Type122 { get; set; } /// /// /// - public global::AssemblyAI.LemurStringResponseVariant1? Type123 { get; set; } + public global::AssemblyAI.LemurBaseResponse? Type123 { get; set; } /// /// /// - public global::AssemblyAI.LemurTaskResponse? Type124 { get; set; } + public global::AssemblyAI.LemurUsage? Type124 { get; set; } /// /// /// - public global::AssemblyAI.LemurSummaryResponse? Type125 { get; set; } + public global::AssemblyAI.LemurStringResponse? Type125 { get; set; } /// /// /// - public global::AssemblyAI.LemurActionItemsResponse? Type126 { get; set; } + public global::AssemblyAI.LemurStringResponseVariant1? Type126 { get; set; } /// /// /// - public global::AssemblyAI.LemurQuestionAnswerResponse? Type127 { get; set; } + public global::AssemblyAI.LemurTaskResponse? Type127 { get; set; } /// /// /// - public global::AssemblyAI.LemurQuestionAnswerResponseVariant2? Type128 { get; set; } + public global::AssemblyAI.LemurSummaryResponse? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::AssemblyAI.LemurActionItemsResponse? Type129 { get; set; } /// /// /// - public global::AssemblyAI.LemurQuestionAnswer? Type130 { get; set; } + public global::AssemblyAI.LemurQuestionAnswerResponse? Type130 { get; set; } /// /// /// - public global::AssemblyAI.LemurResponse? Type131 { get; set; } + public global::AssemblyAI.LemurQuestionAnswerResponseVariant2? Type131 { get; set; } /// /// /// - public global::AssemblyAI.LemurBaseParams? Type132 { get; set; } + public global::System.Collections.Generic.IList? Type132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type133 { get; set; } + public global::AssemblyAI.LemurQuestionAnswer? Type133 { get; set; } /// /// /// - public global::AssemblyAI.AnyOf? Type134 { get; set; } + public global::AssemblyAI.LemurResponse? Type134 { get; set; } /// /// /// - public global::AssemblyAI.LemurModel? Type135 { get; set; } + public global::AssemblyAI.LemurBaseParams? Type135 { get; set; } /// /// /// - public global::AssemblyAI.LemurTaskParams? Type136 { get; set; } + public global::System.Collections.Generic.IList? Type136 { get; set; } /// /// /// - public global::AssemblyAI.LemurTaskParamsVariant1? Type137 { get; set; } + public global::AssemblyAI.AnyOf? Type137 { get; set; } /// /// /// - public global::AssemblyAI.LemurSummaryParams? Type138 { get; set; } + public global::AssemblyAI.LemurModel? Type138 { get; set; } /// /// /// - public global::AssemblyAI.LemurSummaryParamsVariant2? Type139 { get; set; } + public global::AssemblyAI.LemurTaskParams? Type139 { get; set; } /// /// /// - public global::AssemblyAI.LemurQuestionAnswerParams? Type140 { get; set; } + public global::AssemblyAI.LemurTaskParamsVariant1? Type140 { get; set; } /// /// /// - public global::AssemblyAI.LemurQuestionAnswerParamsVariant2? Type141 { get; set; } + public global::AssemblyAI.LemurSummaryParams? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type142 { get; set; } + public global::AssemblyAI.LemurSummaryParamsVariant2? Type142 { get; set; } /// /// /// - public global::AssemblyAI.LemurQuestion? Type143 { get; set; } + public global::AssemblyAI.LemurQuestionAnswerParams? Type143 { get; set; } /// /// /// - public global::AssemblyAI.LemurActionItemsParams? Type144 { get; set; } + public global::AssemblyAI.LemurQuestionAnswerParamsVariant2? Type144 { get; set; } /// /// /// - public global::AssemblyAI.LemurActionItemsParamsVariant2? Type145 { get; set; } + public global::System.Collections.Generic.IList? Type145 { get; set; } /// /// /// - public global::AssemblyAI.Error? Type146 { get; set; } + public global::AssemblyAI.LemurQuestion? Type146 { get; set; } /// /// /// - public byte[]? Type147 { get; set; } + public global::AssemblyAI.LemurActionItemsParams? Type147 { get; set; } + /// + /// + /// + public global::AssemblyAI.LemurActionItemsParamsVariant2? Type148 { get; set; } + /// + /// + /// + public global::AssemblyAI.Error? Type149 { get; set; } + /// + /// + /// + public byte[]? Type150 { get; set; } /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs index 041b8fa..f069966 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs @@ -235,6 +235,13 @@ public sealed partial class Transcript [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio")] public bool? RedactPiiAudio { get; set; } + /// + /// The options for PII-redacted audio, if redact_pii_audio is enabled.
+ /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_options")] + public global::AssemblyAI.TranscriptRedactPiiAudioOptions? RedactPiiAudioOptions { get; set; } + /// /// The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled.
/// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. @@ -577,6 +584,10 @@ public sealed partial class Transcript /// Whether a redacted version of the audio file was generated,
/// either true or false. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. /// + /// + /// The options for PII-redacted audio, if redact_pii_audio is enabled.
+ /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. + /// /// /// The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled.
/// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. @@ -708,6 +719,7 @@ public Transcript( string? prompt, bool? punctuate, bool? redactPiiAudio, + global::AssemblyAI.TranscriptRedactPiiAudioOptions? redactPiiAudioOptions, global::AssemblyAI.OneOf? redactPiiAudioQuality, global::System.Collections.Generic.IList? redactPiiPolicies, global::AssemblyAI.SubstitutionPolicy? redactPiiSub, @@ -769,6 +781,7 @@ public Transcript( this.Prompt = prompt; this.Punctuate = punctuate; this.RedactPiiAudio = redactPiiAudio; + this.RedactPiiAudioOptions = redactPiiAudioOptions; this.RedactPiiAudioQuality = redactPiiAudioQuality; this.RedactPiiPolicies = redactPiiPolicies; this.RedactPiiSub = redactPiiSub; diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs index 5a0647f..5b4e6d0 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs @@ -15,6 +15,13 @@ public sealed partial class TranscriptOptionalParamsRedactPiiAudioOptions [global::System.Text.Json.Serialization.JsonPropertyName("return_redacted_no_speech_audio")] public bool? ReturnRedactedNoSpeechAudio { get; set; } + /// + /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("override_audio_redaction_method")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter))] + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? OverrideAudioRedactionMethod { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -28,13 +35,18 @@ public sealed partial class TranscriptOptionalParamsRedactPiiAudioOptions /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
/// Default Value: false /// + /// + /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptOptionalParamsRedactPiiAudioOptions( - bool? returnRedactedNoSpeechAudio) + bool? returnRedactedNoSpeechAudio, + global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? overrideAudioRedactionMethod) { this.ReturnRedactedNoSpeechAudio = returnRedactedNoSpeechAudio; + this.OverrideAudioRedactionMethod = overrideAudioRedactionMethod; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs new file mode 100644 index 0000000..016aa2c --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. + /// + public enum TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod + { + /// + /// + /// + Silence, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod value) + { + return value switch + { + TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.Silence => "silence", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? ToEnum(string value) + { + return value switch + { + "silence" => TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod.Silence, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.Json.g.cs new file mode 100644 index 0000000..f496936 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptRedactPiiAudioOptions + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptRedactPiiAudioOptions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptions), + jsonSerializerContext) as global::AssemblyAI.TranscriptRedactPiiAudioOptions; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::AssemblyAI.TranscriptRedactPiiAudioOptions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptions), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptRedactPiiAudioOptions; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs new file mode 100644 index 0000000..35f3c89 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs @@ -0,0 +1,60 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// The options for PII-redacted audio, if redact_pii_audio is enabled.
+ /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. + ///
+ public sealed partial class TranscriptRedactPiiAudioOptions + { + /// + /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("return_redacted_no_speech_audio")] + public bool? ReturnRedactedNoSpeechAudio { get; set; } + + /// + /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("override_audio_redaction_method")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter))] + public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? OverrideAudioRedactionMethod { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
+ /// Default Value: false + /// + /// + /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranscriptRedactPiiAudioOptions( + bool? returnRedactedNoSpeechAudio, + global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? overrideAudioRedactionMethod) + { + this.ReturnRedactedNoSpeechAudio = returnRedactedNoSpeechAudio; + this.OverrideAudioRedactionMethod = overrideAudioRedactionMethod; + } + + /// + /// Initializes a new instance of the class. + /// + public TranscriptRedactPiiAudioOptions() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs new file mode 100644 index 0000000..e1f9b7c --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. + /// + public enum TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod + { + /// + /// + /// + Silence, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod value) + { + return value switch + { + TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.Silence => "silence", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? ToEnum(string value) + { + return value switch + { + "silence" => TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod.Silence, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index d39fc31..96e76fe 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -1459,6 +1459,12 @@ components: 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 + override_audio_redaction_method: + x-label: Override audio redaction method + description: Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. + type: string + enum: + - silence redact_pii_audio_quality: x-label: Redact PII audio quality @@ -2951,6 +2957,26 @@ components: either true or false. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. type: [boolean, "null"] + redact_pii_audio_options: + x-label: Redact PII audio options + description: | + The options for PII-redacted audio, if redact_pii_audio is enabled. + See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. + 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 + override_audio_redaction_method: + x-label: Override audio redaction method + description: Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. + type: string + enum: + - silence + redact_pii_audio_quality: x-label: Redact PII audio quality description: |