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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace AssemblyAI.JsonConverters
{
/// <inheritdoc />
public sealed class TranscriptOptionalParamsRemoveAudioTags2JsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2>
public sealed class TranscriptOptionalParamsRemoveAudioTagsJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags>
{
/// <inheritdoc />
public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2 Read(
public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class TranscriptOptionalParamsRemoveAudioTags2JsonConverter : glob
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2Extensions.ToEnum(stringValue) ?? default;
return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2)numValue;
return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2);
return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,12 +42,12 @@ public sealed class TranscriptOptionalParamsRemoveAudioTags2JsonConverter : glob
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2 value,
global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2Extensions.ToValueString(value));
writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace AssemblyAI.JsonConverters
{
/// <inheritdoc />
public sealed class TranscriptOptionalParamsRemoveAudioTags2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2?>
public sealed class TranscriptOptionalParamsRemoveAudioTagsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags?>
{
/// <inheritdoc />
public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? Read(
public override global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class TranscriptOptionalParamsRemoveAudioTags2NullableJsonConverte
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2Extensions.ToEnum(stringValue);
return global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2)numValue;
return (global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2?);
return default(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class TranscriptOptionalParamsRemoveAudioTags2NullableJsonConverte
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? value,
global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -53,7 +53,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2Extensions.ToValueString(value.Value));
writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTagsExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace AssemblyAI.JsonConverters
{
/// <inheritdoc />
public sealed class TranscriptRemoveAudioTags2JsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::AssemblyAI.TranscriptRemoveAudioTags2>
public sealed class TranscriptRemoveAudioTagsJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::AssemblyAI.TranscriptRemoveAudioTags>
{
/// <inheritdoc />
public override global::AssemblyAI.TranscriptRemoveAudioTags2 Read(
public override global::AssemblyAI.TranscriptRemoveAudioTags Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class TranscriptRemoveAudioTags2JsonConverter : global::System.Tex
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::AssemblyAI.TranscriptRemoveAudioTags2Extensions.ToEnum(stringValue) ?? default;
return global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::AssemblyAI.TranscriptRemoveAudioTags2)numValue;
return (global::AssemblyAI.TranscriptRemoveAudioTags)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::AssemblyAI.TranscriptRemoveAudioTags2);
return default(global::AssemblyAI.TranscriptRemoveAudioTags);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,12 +42,12 @@ public sealed class TranscriptRemoveAudioTags2JsonConverter : global::System.Tex
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::AssemblyAI.TranscriptRemoveAudioTags2 value,
global::AssemblyAI.TranscriptRemoveAudioTags value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTags2Extensions.ToValueString(value));
writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace AssemblyAI.JsonConverters
{
/// <inheritdoc />
public sealed class TranscriptRemoveAudioTags2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::AssemblyAI.TranscriptRemoveAudioTags2?>
public sealed class TranscriptRemoveAudioTagsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::AssemblyAI.TranscriptRemoveAudioTags?>
{
/// <inheritdoc />
public override global::AssemblyAI.TranscriptRemoveAudioTags2? Read(
public override global::AssemblyAI.TranscriptRemoveAudioTags? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class TranscriptRemoveAudioTags2NullableJsonConverter : global::Sy
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::AssemblyAI.TranscriptRemoveAudioTags2Extensions.ToEnum(stringValue);
return global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::AssemblyAI.TranscriptRemoveAudioTags2)numValue;
return (global::AssemblyAI.TranscriptRemoveAudioTags)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::AssemblyAI.TranscriptRemoveAudioTags2?);
return default(global::AssemblyAI.TranscriptRemoveAudioTags?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class TranscriptRemoveAudioTags2NullableJsonConverter : global::Sy
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::AssemblyAI.TranscriptRemoveAudioTags2? value,
global::AssemblyAI.TranscriptRemoveAudioTags? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -53,7 +53,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTags2Extensions.ToValueString(value.Value));
writer.WriteStringValue(global::AssemblyAI.TranscriptRemoveAudioTagsExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ namespace AssemblyAI

typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter),

typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2JsonConverter),
typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsJsonConverter),

typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTags2NullableJsonConverter),
typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRemoveAudioTagsNullableJsonConverter),

typeof(global::AssemblyAI.JsonConverters.SummaryModelJsonConverter),

Expand Down Expand Up @@ -81,9 +81,9 @@ namespace AssemblyAI

typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter),

typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2JsonConverter),
typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsJsonConverter),

typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTags2NullableJsonConverter),
typeof(global::AssemblyAI.JsonConverters.TranscriptRemoveAudioTagsNullableJsonConverter),

typeof(global::AssemblyAI.JsonConverters.EntityTypeJsonConverter),

Expand Down Expand Up @@ -179,7 +179,7 @@ namespace AssemblyAI
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ActionItemsRequestBody))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummaryModel), TypeInfoPropertyName = "SummaryModel2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummaryType), TypeInfoPropertyName = "SummaryType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2), TypeInfoPropertyName = "TranscriptOptionalParamsRemoveAudioTags22")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags), TypeInfoPropertyName = "TranscriptOptionalParamsRemoveAudioTags2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptParams), TypeInfoPropertyName = "TranscriptParams2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptParamsVariant1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptUtterance))]
Expand Down Expand Up @@ -211,7 +211,7 @@ namespace AssemblyAI
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.CustomFormattingResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummarizationResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.ActionItemsResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRemoveAudioTags2), TypeInfoPropertyName = "TranscriptRemoveAudioTags22")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRemoveAudioTags), TypeInfoPropertyName = "TranscriptRemoveAudioTags2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::AssemblyAI.TranscriptUtterance>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptTranslatedTexts))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AudioIntelligenceModelStatus), TypeInfoPropertyName = "AudioIntelligenceModelStatus2")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? Type47 { get; set; }
public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type47 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -345,7 +345,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::AssemblyAI.TranscriptRemoveAudioTags2? Type78 { get; set; }
public global::AssemblyAI.TranscriptRemoveAudioTags? Type78 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public sealed partial class Transcript
/// Note: This parameter is only supported for the Universal-3.5 Pro model.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")]
public global::AssemblyAI.TranscriptRemoveAudioTags2? RemoveAudioTags { get; set; }
public global::AssemblyAI.TranscriptRemoveAudioTags? RemoveAudioTags { get; set; }

/// <summary>
/// The temperature that was used for the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.<br/>
Expand Down Expand Up @@ -780,7 +780,7 @@ public Transcript(
global::System.Collections.Generic.IList<global::AssemblyAI.SpeechModel>? speechModels,
float? speechThreshold,
global::AssemblyAI.TranscriptSpeechUnderstanding? speechUnderstanding,
global::AssemblyAI.TranscriptRemoveAudioTags2? removeAudioTags,
global::AssemblyAI.TranscriptRemoveAudioTags? removeAudioTags,
double? temperature,
string? text,
string? unredactedText,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public sealed partial class TranscriptOptionalParams
/// Default Value: all
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")]
public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? RemoveAudioTags { get; set; }
public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? RemoveAudioTags { get; set; }

/// <summary>
/// Control the amount of randomness injected into the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.<br/>
Expand Down Expand Up @@ -564,7 +564,7 @@ public TranscriptOptionalParams(
global::System.Collections.Generic.IList<global::AssemblyAI.SpeechModel>? speechModels,
float? speechThreshold,
global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? speechUnderstanding,
global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags2? removeAudioTags,
global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? removeAudioTags,
double? temperature,
string? webhookAuthHeaderName,
string? webhookAuthHeaderValue,
Expand Down

This file was deleted.

Loading