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 @@ -77,6 +77,12 @@ public partial interface ISubpackageDeepfakeDetectionClient
/// <param name="modelTypes">
/// Use talking_head for face-swaps
/// </param>
/// <param name="modality">
/// Video only. Selects which detection components run for a video file:<br/>
/// `audio` (audio track only), `video` (visual frames only), or `all` (both — the default).<br/>
/// Ignored for audio and image inputs. Invalid values are rejected with HTTP 400.<br/>
/// Default Value: all
/// </param>
/// <param name="intelligence">
/// Run multimodal intelligence analysis on the media<br/>
/// Default Value: false
Expand Down Expand Up @@ -110,6 +116,7 @@ public partial interface ISubpackageDeepfakeDetectionClient
double? endRegion = default,
double? maxVideoSecs = default,
global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModelTypes? modelTypes = default,
global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality? modality = default,
bool? intelligence = default,
bool? audioSourceTracing = default,
bool? useReverseSearch = default,
Expand Down Expand Up @@ -155,6 +162,12 @@ public partial interface ISubpackageDeepfakeDetectionClient
/// <param name="modelTypes">
/// Use talking_head for face-swaps
/// </param>
/// <param name="modality">
/// Video only. Selects which detection components run for a video file:<br/>
/// `audio` (audio track only), `video` (visual frames only), or `all` (both — the default).<br/>
/// Ignored for audio and image inputs. Invalid values are rejected with HTTP 400.<br/>
/// Default Value: all
/// </param>
/// <param name="intelligence">
/// Run multimodal intelligence analysis on the media<br/>
/// Default Value: false
Expand Down Expand Up @@ -188,6 +201,7 @@ public partial interface ISubpackageDeepfakeDetectionClient
double? endRegion = default,
double? maxVideoSecs = default,
global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModelTypes? modelTypes = default,
global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality? modality = default,
bool? intelligence = default,
bool? audioSourceTracing = default,
bool? useReverseSearch = default,
Expand Down Expand Up @@ -232,6 +246,12 @@ public partial interface ISubpackageDeepfakeDetectionClient
/// <param name="modelTypes">
/// Use talking_head for face-swaps
/// </param>
/// <param name="modality">
/// Video only. Selects which detection components run for a video file:<br/>
/// `audio` (audio track only), `video` (visual frames only), or `all` (both — the default).<br/>
/// Ignored for audio and image inputs. Invalid values are rejected with HTTP 400.<br/>
/// Default Value: all
/// </param>
/// <param name="intelligence">
/// Run multimodal intelligence analysis on the media<br/>
/// Default Value: false
Expand Down Expand Up @@ -265,6 +285,7 @@ public partial interface ISubpackageDeepfakeDetectionClient
double? endRegion = default,
double? maxVideoSecs = default,
global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModelTypes? modelTypes = default,
global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality? modality = default,
bool? intelligence = default,
bool? audioSourceTracing = default,
bool? useReverseSearch = default,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace ResembleAI.JsonConverters
{
/// <inheritdoc />
public sealed class DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality>
{
/// <inheritdoc />
public override global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality 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::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace ResembleAI.JsonConverters
{
/// <inheritdoc />
public sealed class DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality?>
{
/// <inheritdoc />
public override global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality? 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::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality? 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::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace ResembleAI.JsonConverters
{
/// <inheritdoc />
public sealed class DetectPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality>
{
/// <inheritdoc />
public override global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality 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::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModalityExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModalityExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace ResembleAI.JsonConverters
{
/// <inheritdoc />
public sealed class DetectPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?>
{
/// <inheritdoc />
public override global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality? 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::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModalityExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality? 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::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModalityExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace ResembleAI.JsonConverters
{
/// <inheritdoc />
public sealed class DetectPostResponsesContentApplicationJsonSchemaItemModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality>
{
/// <inheritdoc />
public override global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality 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::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModalityExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModalityExtensions.ToValueString(value));
}
}
}
Loading
Loading