diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs index 667113e..f928692 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -434,50 +434,54 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.TranscriptParams? Type102 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type102 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParamsVariant1? Type103 { get; set; } + public global::AssemblyAI.TranscriptParams? Type103 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptReadyNotification? Type104 { get; set; } + public global::AssemblyAI.TranscriptParamsVariant1? Type104 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptReadyStatus? Type105 { get; set; } + public global::AssemblyAI.TranscriptReadyNotification? Type105 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptWebhookNotification? Type106 { get; set; } + public global::AssemblyAI.TranscriptReadyStatus? Type106 { get; set; } /// /// /// - public global::AssemblyAI.UploadedFile? Type107 { get; set; } + public global::AssemblyAI.TranscriptWebhookNotification? Type107 { get; set; } /// /// /// - public global::AssemblyAI.WordSearchMatch? Type108 { get; set; } + public global::AssemblyAI.UploadedFile? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::AssemblyAI.WordSearchMatch? Type109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type110 { get; set; } + public global::System.Collections.Generic.IList? Type110 { get; set; } /// /// /// - public global::AssemblyAI.WordSearchResponse? Type111 { get; set; } + public global::System.Collections.Generic.IList>? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::AssemblyAI.WordSearchResponse? Type112 { get; set; } /// /// /// - public byte[]? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } + /// + /// + /// + public byte[]? Type114 { get; set; } } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs index 18bcc6b..1915a9a 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs @@ -178,6 +178,12 @@ public sealed partial class TranscriptOptionalParams [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio")] public bool? RedactPiiAudio { get; set; } + /// + /// Specify options for PII redacted audio files. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_options")] + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? RedactPiiAudioOptions { get; set; } + /// /// 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.
/// Example: mp3 @@ -381,6 +387,9 @@ public sealed partial class TranscriptOptionalParams /// 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.
/// Default Value: false /// + /// + /// Specify options for PII redacted audio files. + /// /// /// 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.
/// Example: mp3 @@ -461,6 +470,7 @@ public TranscriptOptionalParams( bool? punctuate, bool? redactPii, bool? redactPiiAudio, + global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? redactPiiAudioOptions, global::AssemblyAI.RedactPiiAudioQuality? redactPiiAudioQuality, global::System.Collections.Generic.IList? redactPiiPolicies, object? redactPiiSub, @@ -498,6 +508,7 @@ public TranscriptOptionalParams( this.Punctuate = punctuate; this.RedactPii = redactPii; 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.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.Json.g.cs new file mode 100644 index 0000000..3ee6e6d --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptOptionalParamsRedactPiiAudioOptions + { + /// + /// 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.TranscriptOptionalParamsRedactPiiAudioOptions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions), + jsonSerializerContext) as global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions; + } + + /// + /// 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.TranscriptOptionalParamsRedactPiiAudioOptions? 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.TranscriptOptionalParamsRedactPiiAudioOptions), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions; + } + + /// + /// 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.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs new file mode 100644 index 0000000..55dabb0 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Specify options for PII redacted audio files. + /// + 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 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("return_redacted_no_speech_audio")] + public bool? ReturnRedactedNoSpeechAudio { 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 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranscriptOptionalParamsRedactPiiAudioOptions( + bool? returnRedactedNoSpeechAudio) + { + this.ReturnRedactedNoSpeechAudio = returnRedactedNoSpeechAudio; + } + + /// + /// Initializes a new instance of the class. + /// + public TranscriptOptionalParamsRedactPiiAudioOptions() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index ce5d286..a0c4e06 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -1390,6 +1390,18 @@ 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 + speaker_labels: x-label: Speaker labels description: Enable [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization), can be true or false