diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.ApplyWatermark.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.ApplyWatermark.g.cs index 5ca017d..91294d0 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.ApplyWatermark.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.ApplyWatermark.g.cs @@ -6,54 +6,54 @@ public partial interface IWatermarkClient { /// /// Apply watermark
- /// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ApplyWatermarkAsync( + global::System.Threading.Tasks.Task ApplyWatermarkAsync( - global::ResembleAI.ApplyWatermarkRequest request, + global::ResembleAI.WatermarkApplyRequest request, global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Apply watermark
- /// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ApplyWatermarkAsResponseAsync( + global::System.Threading.Tasks.Task> ApplyWatermarkAsResponseAsync( - global::ResembleAI.ApplyWatermarkRequest request, + global::ResembleAI.WatermarkApplyRequest request, global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Apply watermark
- /// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// - /// HTTPS URL to the media file (audio, image, or video). + /// Public HTTPS URL to the audio, image, or video source. /// /// /// Watermark strength for image/video. Ignored for audio.
/// Default Value: 0.2F /// /// - /// Custom message to embed for image/video. Ignored for audio.
+ /// Message to embed in image/video. Ignored for audio.
/// Default Value: resembleai /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ApplyWatermarkAsync( + global::System.Threading.Tasks.Task ApplyWatermarkAsync( string url, global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default, double? strength = default, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.DetectWatermark.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.DetectWatermark.g.cs index a8b7fb2..39db871 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.DetectWatermark.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.DetectWatermark.g.cs @@ -6,50 +6,50 @@ public partial interface IWatermarkClient { /// /// Detect watermark
- /// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DetectWatermarkAsync( + global::System.Threading.Tasks.Task DetectWatermarkAsync( - global::ResembleAI.DetectWatermarkRequest request, + global::ResembleAI.WatermarkDetectRequest request, global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Detect watermark
- /// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> DetectWatermarkAsResponseAsync( + global::System.Threading.Tasks.Task> DetectWatermarkAsResponseAsync( - global::ResembleAI.DetectWatermarkRequest request, + global::ResembleAI.WatermarkDetectRequest request, global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Detect watermark
- /// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// - /// HTTPS URL to the media file (audio, image, or video). + /// Public HTTPS URL to the audio, image, or video source. /// /// - /// Custom message used during encoding for image/video. Ignored for audio.
+ /// Message used when applying the image/video watermark. Ignored for audio.
/// Default Value: resembleai /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DetectWatermarkAsync( + global::System.Threading.Tasks.Task DetectWatermarkAsync( string url, global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default, string? customMessage = default, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.GetWatermarkApplyResult.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.GetWatermarkApplyResult.g.cs index 1a7646c..03057bd 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.GetWatermarkApplyResult.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.GetWatermarkApplyResult.g.cs @@ -12,7 +12,7 @@ public partial interface IWatermarkClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetWatermarkApplyResultAsync( + global::System.Threading.Tasks.Task GetWatermarkApplyResultAsync( string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -24,7 +24,7 @@ public partial interface IWatermarkClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetWatermarkApplyResultAsResponseAsync( + global::System.Threading.Tasks.Task> GetWatermarkApplyResultAsResponseAsync( string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.GetWatermarkDetectionResult.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.GetWatermarkDetectionResult.g.cs index 8ba9f63..cdc3b71 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.GetWatermarkDetectionResult.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IWatermarkClient.GetWatermarkDetectionResult.g.cs @@ -12,7 +12,7 @@ public partial interface IWatermarkClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetWatermarkDetectionResultAsync( + global::System.Threading.Tasks.Task GetWatermarkDetectionResultAsync( string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -24,7 +24,7 @@ public partial interface IWatermarkClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetWatermarkDetectionResultAsResponseAsync( + global::System.Threading.Tasks.Task> GetWatermarkDetectionResultAsResponseAsync( string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemMediaType.g.cs similarity index 65% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemMediaType.g.cs index adc2068..4ef1a99 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemMediaType.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class WatermarkApplyItemMediaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType Read( + public override global::ResembleAI.WatermarkApplyItemMediaType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue) ?? default; + return global::ResembleAI.WatermarkApplyItemMediaTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType)numValue; + return (global::ResembleAI.WatermarkApplyItemMediaType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType); + return default(global::ResembleAI.WatermarkApplyItemMediaType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType value, + global::ResembleAI.WatermarkApplyItemMediaType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::ResembleAI.WatermarkApplyItemMediaTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullable.g.cs similarity index 66% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullable.g.cs index a5bf8da..67cac43 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class WatermarkApplyItemMediaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? Read( + public override global::ResembleAI.WatermarkApplyItemMediaType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue); + return global::ResembleAI.WatermarkApplyItemMediaTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType)numValue; + return (global::ResembleAI.WatermarkApplyItemMediaType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType?); + return default(global::ResembleAI.WatermarkApplyItemMediaType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? value, + global::ResembleAI.WatermarkApplyItemMediaType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::ResembleAI.WatermarkApplyItemMediaTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemModelVersion.g.cs similarity index 63% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemModelVersion.g.cs index b4260e7..7e8fd46 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemModelVersion.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class WatermarkApplyItemModelVersionJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType Read( + public override global::ResembleAI.WatermarkApplyItemModelVersion Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSc var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue) ?? default; + return global::ResembleAI.WatermarkApplyItemModelVersionExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSc case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType)numValue; + return (global::ResembleAI.WatermarkApplyItemModelVersion)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType); + return default(global::ResembleAI.WatermarkApplyItemModelVersion); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSc /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType value, + global::ResembleAI.WatermarkApplyItemModelVersion value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::ResembleAI.WatermarkApplyItemModelVersionExtensions.ToValueString(value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullable.g.cs similarity index 64% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullable.g.cs index b542f5e..93a5b32 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullable.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class WatermarkApplyItemModelVersionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Read( + public override global::ResembleAI.WatermarkApplyItemModelVersion? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSc var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue); + return global::ResembleAI.WatermarkApplyItemModelVersionExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSc case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType)numValue; + return (global::ResembleAI.WatermarkApplyItemModelVersion)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType?); + return default(global::ResembleAI.WatermarkApplyItemModelVersion?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSc /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? value, + global::ResembleAI.WatermarkApplyItemModelVersion? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::ResembleAI.WatermarkApplyItemModelVersionExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemOperationType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemOperationType.g.cs new file mode 100644 index 0000000..080b2a1 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemOperationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkApplyItemOperationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkApplyItemOperationType 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.WatermarkApplyItemOperationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkApplyItemOperationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkApplyItemOperationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkApplyItemOperationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkApplyItemOperationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullable.g.cs new file mode 100644 index 0000000..435b476 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkApplyItemOperationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkApplyItemOperationType? 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.WatermarkApplyItemOperationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkApplyItemOperationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkApplyItemOperationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkApplyItemOperationType? 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.WatermarkApplyItemOperationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemStatus.g.cs new file mode 100644 index 0000000..5f3c18f --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkApplyItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkApplyItemStatus 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.WatermarkApplyItemStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkApplyItemStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkApplyItemStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkApplyItemStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkApplyItemStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemStatusNullable.g.cs new file mode 100644 index 0000000..2ff7073 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkApplyItemStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkApplyItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkApplyItemStatus? 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.WatermarkApplyItemStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkApplyItemStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkApplyItemStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkApplyItemStatus? 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.WatermarkApplyItemStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItems.g.cs new file mode 100644 index 0000000..950674d --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItems.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkAudioDetectionMetricsDetectedModelVersionsItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems 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.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullable.g.cs new file mode 100644 index 0000000..0ce236f --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems? 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.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems? 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.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatus.g.cs new file mode 100644 index 0000000..43b0799 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkAudioDetectionMetricsOverallStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus 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.WatermarkAudioDetectionMetricsOverallStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullable.g.cs new file mode 100644 index 0000000..d5a7921 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkAudioDetectionMetricsOverallStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus? 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.WatermarkAudioDetectionMetricsOverallStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus? 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.WatermarkAudioDetectionMetricsOverallStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersion.g.cs new file mode 100644 index 0000000..e31e842 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersion.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkAudioModelResultModelVersionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkAudioModelResultModelVersion 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.WatermarkAudioModelResultModelVersionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkAudioModelResultModelVersion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkAudioModelResultModelVersion); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkAudioModelResultModelVersion value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkAudioModelResultModelVersionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullable.g.cs new file mode 100644 index 0000000..4f6bcf1 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkAudioModelResultModelVersionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkAudioModelResultModelVersion? 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.WatermarkAudioModelResultModelVersionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkAudioModelResultModelVersion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkAudioModelResultModelVersion?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkAudioModelResultModelVersion? 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.WatermarkAudioModelResultModelVersionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultStatus.g.cs new file mode 100644 index 0000000..18d236d --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkAudioModelResultStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkAudioModelResultStatus 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.WatermarkAudioModelResultStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkAudioModelResultStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkAudioModelResultStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkAudioModelResultStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkAudioModelResultStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullable.g.cs new file mode 100644 index 0000000..f3c746b --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkAudioModelResultStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkAudioModelResultStatus? 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.WatermarkAudioModelResultStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkAudioModelResultStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkAudioModelResultStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkAudioModelResultStatus? 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.WatermarkAudioModelResultStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemMediaType.g.cs similarity index 64% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemMediaType.g.cs index 13d5360..37a26ac 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemMediaType.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class WatermarkDetectItemMediaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType Read( + public override global::ResembleAI.WatermarkDetectItemMediaType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class WatermarkDetectPostResponsesContentApplicationJsonSchemaItem var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue) ?? default; + return global::ResembleAI.WatermarkDetectItemMediaTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class WatermarkDetectPostResponsesContentApplicationJsonSchemaItem case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType)numValue; + return (global::ResembleAI.WatermarkDetectItemMediaType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType); + return default(global::ResembleAI.WatermarkDetectItemMediaType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class WatermarkDetectPostResponsesContentApplicationJsonSchemaItem /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType value, + global::ResembleAI.WatermarkDetectItemMediaType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::ResembleAI.WatermarkDetectItemMediaTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullable.g.cs similarity index 66% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullable.g.cs index 0e47436..3fe0047 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class WatermarkDetectItemMediaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? Read( + public override global::ResembleAI.WatermarkDetectItemMediaType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class WatermarkDetectPostResponsesContentApplicationJsonSchemaItem var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue); + return global::ResembleAI.WatermarkDetectItemMediaTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class WatermarkDetectPostResponsesContentApplicationJsonSchemaItem case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType)numValue; + return (global::ResembleAI.WatermarkDetectItemMediaType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType?); + return default(global::ResembleAI.WatermarkDetectItemMediaType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class WatermarkDetectPostResponsesContentApplicationJsonSchemaItem /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? value, + global::ResembleAI.WatermarkDetectItemMediaType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::ResembleAI.WatermarkDetectItemMediaTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemMetrics.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemMetrics.g.cs new file mode 100644 index 0000000..d1ed5e9 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemMetrics.g.cs @@ -0,0 +1,152 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace ResembleAI.JsonConverters +{ + /// + public class WatermarkDetectItemMetricsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkDetectItemMetrics Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("confidence")) __score0++; + if (__jsonProps.Contains("coverage_complete")) __score0++; + if (__jsonProps.Contains("detected_model_versions")) __score0++; + if (__jsonProps.Contains("has_watermark")) __score0++; + if (__jsonProps.Contains("model_results")) __score0++; + if (__jsonProps.Contains("overall_status")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("detected_model_versions")) __score1++; + if (__jsonProps.Contains("detection_score")) __score1++; + if (__jsonProps.Contains("has_watermark")) __score1++; + if (__jsonProps.Contains("model_results")) __score1++; + if (__jsonProps.Contains("overall_status")) __score1++; + if (__jsonProps.Contains("synthid")) __score1++; + if (__jsonProps.Contains("verdict")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::ResembleAI.WatermarkAudioDetectionMetrics? watermarkAudioDetectionMetrics = default; + global::ResembleAI.WatermarkVisionDetectionMetrics? watermarkVisionDetectionMetrics = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.WatermarkAudioDetectionMetrics), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.WatermarkAudioDetectionMetrics).Name}"); + watermarkAudioDetectionMetrics = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.WatermarkVisionDetectionMetrics), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.WatermarkVisionDetectionMetrics).Name}"); + watermarkVisionDetectionMetrics = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (watermarkAudioDetectionMetrics == null && watermarkVisionDetectionMetrics == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.WatermarkAudioDetectionMetrics), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.WatermarkAudioDetectionMetrics).Name}"); + watermarkAudioDetectionMetrics = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (watermarkAudioDetectionMetrics == null && watermarkVisionDetectionMetrics == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.WatermarkVisionDetectionMetrics), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.WatermarkVisionDetectionMetrics).Name}"); + watermarkVisionDetectionMetrics = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::ResembleAI.WatermarkDetectItemMetrics( + watermarkAudioDetectionMetrics, + + watermarkVisionDetectionMetrics + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkDetectItemMetrics value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsWatermarkAudioDetectionMetrics) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.WatermarkAudioDetectionMetrics), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.WatermarkAudioDetectionMetrics).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WatermarkAudioDetectionMetrics!, typeInfo); + } + else if (value.IsWatermarkVisionDetectionMetrics) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.WatermarkVisionDetectionMetrics), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.WatermarkVisionDetectionMetrics).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WatermarkVisionDetectionMetrics!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemModelVersion.g.cs similarity index 63% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemModelVersion.g.cs index 833776a..a5d6627 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemModelVersion.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class WatermarkDetectItemModelVersionJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType Read( + public override global::ResembleAI.WatermarkDetectItemModelVersion Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class WatermarkDetectUuidResultGetResponsesContentApplicationJsonS var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue) ?? default; + return global::ResembleAI.WatermarkDetectItemModelVersionExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class WatermarkDetectUuidResultGetResponsesContentApplicationJsonS case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType)numValue; + return (global::ResembleAI.WatermarkDetectItemModelVersion)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType); + return default(global::ResembleAI.WatermarkDetectItemModelVersion); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class WatermarkDetectUuidResultGetResponsesContentApplicationJsonS /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType value, + global::ResembleAI.WatermarkDetectItemModelVersion value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::ResembleAI.WatermarkDetectItemModelVersionExtensions.ToValueString(value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullable.g.cs new file mode 100644 index 0000000..e60063f --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkDetectItemModelVersionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkDetectItemModelVersion? 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.WatermarkDetectItemModelVersionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkDetectItemModelVersion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkDetectItemModelVersion?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkDetectItemModelVersion? 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.WatermarkDetectItemModelVersionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemOperationType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemOperationType.g.cs new file mode 100644 index 0000000..a105bd1 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemOperationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkDetectItemOperationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkDetectItemOperationType 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.WatermarkDetectItemOperationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkDetectItemOperationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkDetectItemOperationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkDetectItemOperationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkDetectItemOperationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullable.g.cs new file mode 100644 index 0000000..38dcac5 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkDetectItemOperationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkDetectItemOperationType? 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.WatermarkDetectItemOperationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkDetectItemOperationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkDetectItemOperationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkDetectItemOperationType? 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.WatermarkDetectItemOperationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemStatus.g.cs new file mode 100644 index 0000000..3799062 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkDetectItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkDetectItemStatus 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.WatermarkDetectItemStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkDetectItemStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkDetectItemStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkDetectItemStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkDetectItemStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemStatusNullable.g.cs similarity index 64% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemStatusNullable.g.cs index 878113c..3cd7312 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullable.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectItemStatusNullable.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class WatermarkDetectItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Read( + public override global::ResembleAI.WatermarkDetectItemStatus? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class WatermarkDetectUuidResultGetResponsesContentApplicationJsonS var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue); + return global::ResembleAI.WatermarkDetectItemStatusExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class WatermarkDetectUuidResultGetResponsesContentApplicationJsonS case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType)numValue; + return (global::ResembleAI.WatermarkDetectItemStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType?); + return default(global::ResembleAI.WatermarkDetectItemStatus?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class WatermarkDetectUuidResultGetResponsesContentApplicationJsonS /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? value, + global::ResembleAI.WatermarkDetectItemStatus? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::ResembleAI.WatermarkDetectItemStatusExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark.g.cs deleted file mode 100644 index 9cd90ed..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark.g.cs +++ /dev/null @@ -1,162 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace ResembleAI.JsonConverters -{ - /// - public class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - } - } - - var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(bool), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - - global::System.Collections.Generic.Dictionary? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 = default; - bool? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.Dictionary).Name}"); - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 1) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 == null && watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.Dictionary).Name}"); - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 == null && watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark( - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1, - - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.Dictionary).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1!, typeInfo); - } - else if (value.IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2!.Value, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItems.g.cs new file mode 100644 index 0000000..c7e4b68 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItems.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionDetectionMetricsDetectedModelVersionsItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems 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.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullable.g.cs new file mode 100644 index 0000000..81c58a1 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems? 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.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems? 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.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatus.g.cs new file mode 100644 index 0000000..57e3d87 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionDetectionMetricsOverallStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus 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.WatermarkVisionDetectionMetricsOverallStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullable.g.cs new file mode 100644 index 0000000..577cdfb --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionDetectionMetricsOverallStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus? 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.WatermarkVisionDetectionMetricsOverallStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus? 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.WatermarkVisionDetectionMetricsOverallStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdict.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdict.g.cs new file mode 100644 index 0000000..cb7ce1a --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdict.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionDetectionMetricsVerdictJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionDetectionMetricsVerdict 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.WatermarkVisionDetectionMetricsVerdictExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionDetectionMetricsVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionDetectionMetricsVerdict value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkVisionDetectionMetricsVerdictExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullable.g.cs new file mode 100644 index 0000000..0903272 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionDetectionMetricsVerdictNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionDetectionMetricsVerdict? 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.WatermarkVisionDetectionMetricsVerdictExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionDetectionMetricsVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionDetectionMetricsVerdict? 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.WatermarkVisionDetectionMetricsVerdictExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersion.g.cs new file mode 100644 index 0000000..fb80c16 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersion.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionModelResultModelVersionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionModelResultModelVersion 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.WatermarkVisionModelResultModelVersionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionModelResultModelVersion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionModelResultModelVersion); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionModelResultModelVersion value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkVisionModelResultModelVersionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullable.g.cs new file mode 100644 index 0000000..39430b0 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionModelResultModelVersionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionModelResultModelVersion? 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.WatermarkVisionModelResultModelVersionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionModelResultModelVersion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionModelResultModelVersion?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionModelResultModelVersion? 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.WatermarkVisionModelResultModelVersionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultStatus.g.cs new file mode 100644 index 0000000..d88cb6f --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionModelResultStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionModelResultStatus 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.WatermarkVisionModelResultStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionModelResultStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionModelResultStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionModelResultStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.WatermarkVisionModelResultStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullable.g.cs new file mode 100644 index 0000000..d6fe87a --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class WatermarkVisionModelResultStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.WatermarkVisionModelResultStatus? 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.WatermarkVisionModelResultStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.WatermarkVisionModelResultStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.WatermarkVisionModelResultStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.WatermarkVisionModelResultStatus? 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.WatermarkVisionModelResultStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs index fd71b53..edda706 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs @@ -253,25 +253,77 @@ namespace ResembleAI typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullableJsonConverter), typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferJsonConverter), typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullableJsonConverter), typeof(global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter), @@ -293,7 +345,7 @@ namespace ResembleAI typeof(global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMetricsJsonConverter), typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), @@ -305,13 +357,9 @@ namespace ResembleAI typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), typeof(global::ResembleAI.JsonConverters.UnixTimestampJsonConverter), })] @@ -598,29 +646,43 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchIdentitiesResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer), TypeInfoPropertyName = "WatermarkApplyPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType), TypeInfoPropertyName = "WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfWatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetricsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyWatermarkResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType), TypeInfoPropertyName = "WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfWatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemMediaType), TypeInfoPropertyName = "WatermarkApplyItemMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemOperationType), TypeInfoPropertyName = "WatermarkApplyItemOperationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemStatus), TypeInfoPropertyName = "WatermarkApplyItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemModelVersion), TypeInfoPropertyName = "WatermarkApplyItemModelVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyMetrics))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostParametersPrefer), TypeInfoPropertyName = "WatermarkDetectPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType), TypeInfoPropertyName = "WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfWatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetricsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectWatermarkResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType), TypeInfoPropertyName = "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark), TypeInfoPropertyName = "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMediaType), TypeInfoPropertyName = "WatermarkDetectItemMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemOperationType), TypeInfoPropertyName = "WatermarkDetectItemOperationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemStatus), TypeInfoPropertyName = "WatermarkDetectItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemModelVersion), TypeInfoPropertyName = "WatermarkDetectItemModelVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus), TypeInfoPropertyName = "WatermarkAudioDetectionMetricsOverallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems), TypeInfoPropertyName = "WatermarkAudioDetectionMetricsDetectedModelVersionsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioModelResultModelVersion), TypeInfoPropertyName = "WatermarkAudioModelResultModelVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioModelResultStatus), TypeInfoPropertyName = "WatermarkAudioModelResultStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioModelResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioDetectionMetrics))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus), TypeInfoPropertyName = "WatermarkVisionDetectionMetricsOverallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems), TypeInfoPropertyName = "WatermarkVisionDetectionMetricsDetectedModelVersionsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultModelVersion), TypeInfoPropertyName = "WatermarkVisionModelResultModelVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultStatus), TypeInfoPropertyName = "WatermarkVisionModelResultStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict), TypeInfoPropertyName = "WatermarkVisionDetectionMetricsVerdict2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetrics))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfWatermarkVisionDetectionMetricsVerdictObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMetrics), TypeInfoPropertyName = "WatermarkDetectItemMetrics2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfWatermarkDetectItemMetricsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech))] @@ -758,8 +820,6 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AskDetectIntelligenceQuestionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateIdentityAttachmentRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SearchIdentitiesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ApplyWatermarkRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectWatermarkRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateVoiceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BuildVoiceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.GenerateVoiceDesignRequest))] @@ -803,18 +863,6 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode?), TypeInfoPropertyName = "NullableAgentsPostRequestBodyContentApplicationJsonSchemaSearchMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode?), TypeInfoPropertyName = "NullableAgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType?), TypeInfoPropertyName = "NullableAgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType?), TypeInfoPropertyName = "NullableAgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider?), TypeInfoPropertyName = "NullablePhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsGetParametersStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsGetParametersSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsModality2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1066,25 +1114,77 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullableJsonConverter), typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferJsonConverter), typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullableJsonConverter), typeof(global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter), @@ -1106,7 +1206,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter), - typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMetricsJsonConverter), typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), @@ -1118,16 +1218,24 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), typeof(global::ResembleAI.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType?), TypeInfoPropertyName = "NullableAgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider?), TypeInfoPropertyName = "NullablePhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsGetParametersStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsGetParametersSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracingObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligenceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?), TypeInfoPropertyName = "NullableDetectPostRequestBodyContentMultipartFormDataSchemaModality2")] @@ -1167,16 +1275,27 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality?), TypeInfoPropertyName = "NullableIdentitySearchPostRequestBodyContentApplicationJsonSchemaModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality?), TypeInfoPropertyName = "NullableIdentitySearchPostResponsesContentApplicationJsonSchemaModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer?), TypeInfoPropertyName = "NullableWatermarkApplyPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableWatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetricsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableWatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemMediaType?), TypeInfoPropertyName = "NullableWatermarkApplyItemMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemOperationType?), TypeInfoPropertyName = "NullableWatermarkApplyItemOperationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemStatus?), TypeInfoPropertyName = "NullableWatermarkApplyItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemModelVersion?), TypeInfoPropertyName = "NullableWatermarkApplyItemModelVersion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostParametersPrefer?), TypeInfoPropertyName = "NullableWatermarkDetectPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableWatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetricsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark?), TypeInfoPropertyName = "NullableWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMediaType?), TypeInfoPropertyName = "NullableWatermarkDetectItemMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemOperationType?), TypeInfoPropertyName = "NullableWatermarkDetectItemOperationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemStatus?), TypeInfoPropertyName = "NullableWatermarkDetectItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemModelVersion?), TypeInfoPropertyName = "NullableWatermarkDetectItemModelVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus?), TypeInfoPropertyName = "NullableWatermarkAudioDetectionMetricsOverallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems?), TypeInfoPropertyName = "NullableWatermarkAudioDetectionMetricsDetectedModelVersionsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioModelResultModelVersion?), TypeInfoPropertyName = "NullableWatermarkAudioModelResultModelVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioModelResultStatus?), TypeInfoPropertyName = "NullableWatermarkAudioModelResultStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsOverallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsDetectedModelVersionsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultModelVersion?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultModelVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultStatus?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsVerdict2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkVisionDetectionMetricsVerdictObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMetrics?), TypeInfoPropertyName = "NullableWatermarkDetectItemMetrics2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkDetectItemMetricsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PronunciationsGetParametersStatus?), TypeInfoPropertyName = "NullablePronunciationsGetParametersStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationStatus?), TypeInfoPropertyName = "NullableCustomPronunciationStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker?), TypeInfoPropertyName = "NullableDuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker2")] @@ -1211,6 +1330,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1389,16 +1512,42 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullableJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullableJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullableJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullableJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.CustomPronunciationStatusJsonConverter()); @@ -1409,16 +1558,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemMetricsJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); return options; diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs index 7c3e6ab..71ccf15 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs @@ -1148,731 +1148,779 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? Type280 { get; set; } + public global::ResembleAI.WatermarkApplyRequest? Type280 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics? Type281 { get; set; } + public global::ResembleAI.WatermarkApplyItemMediaType? Type281 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? Type282 { get; set; } + public global::ResembleAI.WatermarkApplyItemOperationType? Type282 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type283 { get; set; } + public global::ResembleAI.WatermarkApplyItemStatus? Type283 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyWatermarkResponse200? Type284 { get; set; } + public global::ResembleAI.WatermarkApplyItemModelVersion? Type284 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type285 { get; set; } + public global::ResembleAI.WatermarkApplyMetrics? Type285 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type286 { get; set; } + public global::ResembleAI.WatermarkApplyItem? Type286 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? Type287 { get; set; } + public global::ResembleAI.WatermarkApplyResponse? Type287 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type288 { get; set; } + public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type288 { get; set; } /// /// /// - public global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200? Type289 { get; set; } + public global::ResembleAI.WatermarkDetectRequest? Type289 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type290 { get; set; } + public global::ResembleAI.WatermarkDetectItemMediaType? Type290 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? Type291 { get; set; } + public global::ResembleAI.WatermarkDetectItemOperationType? Type291 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics? Type292 { get; set; } + public global::ResembleAI.WatermarkDetectItemStatus? Type292 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? Type293 { get; set; } + public global::ResembleAI.WatermarkDetectItemModelVersion? Type293 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type294 { get; set; } + public global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus? Type294 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectWatermarkResponse200? Type295 { get; set; } + public global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems? Type295 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type296 { get; set; } + public global::ResembleAI.WatermarkAudioModelResultModelVersion? Type296 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? Type297 { get; set; } + public global::ResembleAI.WatermarkAudioModelResultStatus? Type297 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type298 { get; set; } + public global::ResembleAI.WatermarkAudioModelResult? Type298 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type299 { get; set; } + public global::System.Collections.Generic.Dictionary? Type299 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? Type300 { get; set; } + public global::ResembleAI.WatermarkAudioDetectionMetrics? Type300 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type301 { get; set; } + public global::System.Collections.Generic.IList? Type301 { get; set; } /// /// /// - public global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200? Type302 { get; set; } + public global::System.Collections.Generic.IList? Type302 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type303 { get; set; } + public global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus? Type303 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type304 { get; set; } + public global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems? Type304 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type305 { get; set; } + public global::ResembleAI.WatermarkVisionModelResultModelVersion? Type305 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type306 { get; set; } + public global::ResembleAI.WatermarkVisionModelResultStatus? Type306 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type307 { get; set; } + public global::ResembleAI.WatermarkVisionModelResult? Type307 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type308 { get; set; } + public global::ResembleAI.WatermarkVisionDetectionMetricsVerdict? Type308 { get; set; } /// /// /// - public global::ResembleAI.VoicesListVoicesResponse200? Type309 { get; set; } + public global::ResembleAI.WatermarkVisionDetectionMetrics? Type309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type310 { get; set; } + public global::System.Collections.Generic.IList? Type310 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type311 { get; set; } + public global::System.Collections.Generic.IList? Type311 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type312 { get; set; } + public global::ResembleAI.OneOf? Type312 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type313 { get; set; } + public global::ResembleAI.WatermarkDetectItemMetrics? Type313 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type314 { get; set; } + public global::ResembleAI.WatermarkDetectItem? Type314 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type315 { get; set; } + public global::ResembleAI.OneOf? Type315 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type316 { get; set; } + public global::ResembleAI.WatermarkDetectResponse? Type316 { get; set; } /// /// /// - public global::ResembleAI.VoicesCreateVoiceResponse200? Type317 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type317 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type318 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type318 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type319 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type319 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type320 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type320 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type321 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type321 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type322 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type322 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type323 { get; set; } + public global::ResembleAI.VoicesListVoicesResponse200? Type323 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetVoiceResponse200? Type324 { get; set; } + public global::System.Collections.Generic.IList? Type324 { get; set; } /// /// /// - public global::ResembleAI.VoicesDeleteVoiceResponse200? Type325 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type325 { get; set; } /// /// /// - public global::ResembleAI.VoicesBuildVoiceResponse200? Type326 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type326 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type327 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type327 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type328 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type328 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type329 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type329 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type330 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type330 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type331 { get; set; } + public global::ResembleAI.VoicesCreateVoiceResponse200? Type331 { get; set; } /// /// /// - public global::ResembleAI.RecordingsListRecordingsResponse200? Type332 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type332 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type333 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type333 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type334 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type334 { get; set; } /// /// /// - public global::ResembleAI.RecordingsCreateRecordingResponse200? Type335 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type335 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type336 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type336 { get; set; } /// /// /// - public global::ResembleAI.RecordingsGetRecordingResponse200? Type337 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type337 { get; set; } /// /// /// - public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type338 { get; set; } + public global::ResembleAI.VoicesGetVoiceResponse200? Type338 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type339 { get; set; } + public global::ResembleAI.VoicesDeleteVoiceResponse200? Type339 { get; set; } /// /// /// - public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type340 { get; set; } + public global::ResembleAI.VoicesBuildVoiceResponse200? Type340 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type341 { get; set; } + public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type341 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type342 { get; set; } + public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type342 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type343 { get; set; } + public global::System.Collections.Generic.IList? Type343 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type344 { get; set; } + public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type344 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type345 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type345 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type346 { get; set; } + public global::ResembleAI.RecordingsListRecordingsResponse200? Type346 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type347 { get; set; } + public global::System.Collections.Generic.IList? Type347 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type348 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type348 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsGetParametersStatus? Type349 { get; set; } + public global::ResembleAI.RecordingsCreateRecordingResponse200? Type349 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationStatus? Type350 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type350 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciation? Type351 { get; set; } + public global::ResembleAI.RecordingsGetRecordingResponse200? Type351 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type352 { get; set; } + public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type352 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type353 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type353 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type354 { get; set; } + public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type354 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type355 { get; set; } + public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type355 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type356 { get; set; } + public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type357 { get; set; } + public global::System.Collections.Generic.IList? Type357 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type358 { get; set; } + public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type358 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type359 { get; set; } + public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type359 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type360 { get; set; } + public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type360 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type361 { get; set; } + public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type361 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type362 { get; set; } + public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type362 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type363 { get; set; } + public global::ResembleAI.PronunciationsGetParametersStatus? Type363 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type364 { get; set; } + public global::ResembleAI.CustomPronunciationStatus? Type364 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type365 { get; set; } + public global::ResembleAI.CustomPronunciation? Type365 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type366 { get; set; } + public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type366 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type367 { get; set; } + public global::System.Collections.Generic.IList? Type367 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type368 { get; set; } + public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type368 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type369 { get; set; } + public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type369 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type370 { get; set; } + public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type370 { get; set; } /// /// /// - public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type371 { get; set; } + public global::System.Collections.Generic.IList? Type371 { get; set; } /// /// /// - public global::ResembleAI.ProjectsListProjectsResponse200? Type372 { get; set; } + public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type372 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type373 { get; set; } + public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type373 { get; set; } /// /// /// - public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type374 { get; set; } + public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type374 { get; set; } /// /// /// - public global::ResembleAI.ProjectsCreateProjectResponse200? Type375 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type375 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type376 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type376 { get; set; } /// /// /// - public global::ResembleAI.ProjectsGetProjectResponse200? Type377 { get; set; } + public global::System.Collections.Generic.IList? Type377 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type378 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type378 { get; set; } /// /// /// - public global::ResembleAI.ProjectsUpdateProjectResponse200? Type379 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type379 { get; set; } /// /// /// - public global::ResembleAI.ProjectsDeleteProjectResponse200? Type380 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type380 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type381 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type381 { get; set; } /// /// /// - public global::ResembleAI.ClipsListClipsResponse200? Type382 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type382 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type383 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type383 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type384 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type384 { get; set; } /// /// /// - public global::ResembleAI.ClipsGetClipResponse200? Type385 { get; set; } + public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type385 { get; set; } /// /// /// - public global::ResembleAI.ClipsDeleteClipResponse200? Type386 { get; set; } + public global::ResembleAI.ProjectsListProjectsResponse200? Type386 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type387 { get; set; } + public global::System.Collections.Generic.IList? Type387 { get; set; } /// /// /// - public global::ResembleAI.ClipsUpdateClipResponse200? Type388 { get; set; } + public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type388 { get; set; } /// /// /// - public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type389 { get; set; } + public global::ResembleAI.ProjectsCreateProjectResponse200? Type389 { get; set; } /// /// /// - public global::ResembleAI.AccountGetAccountResponse200? Type390 { get; set; } + public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type390 { get; set; } /// /// /// - public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type391 { get; set; } + public global::ResembleAI.ProjectsGetProjectResponse200? Type391 { get; set; } /// /// /// - public global::ResembleAI.AccountGetTeamsResponse200? Type392 { get; set; } + public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type392 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type393 { get; set; } + public global::ResembleAI.ProjectsUpdateProjectResponse200? Type393 { get; set; } /// /// /// - public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type394 { get; set; } + public global::ResembleAI.ProjectsDeleteProjectResponse200? Type394 { get; set; } /// /// /// - public global::ResembleAI.AccountGetTeamResponse200? Type395 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type395 { get; set; } /// /// /// - public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type396 { get; set; } + public global::ResembleAI.ClipsListClipsResponse200? Type396 { get; set; } /// /// /// - public global::ResembleAI.AccountGetBillingUsageResponse200? Type397 { get; set; } + public global::System.Collections.Generic.IList? Type397 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type398 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type398 { get; set; } /// /// /// - public global::ResembleAI.DuetsListDuetVoicesResponse200? Type399 { get; set; } + public global::ResembleAI.ClipsGetClipResponse200? Type399 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type400 { get; set; } + public global::ResembleAI.ClipsDeleteClipResponse200? Type400 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type401 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type401 { get; set; } /// /// /// - public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type402 { get; set; } + public global::ResembleAI.ClipsUpdateClipResponse200? Type402 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type403 { get; set; } + public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type403 { get; set; } /// /// /// - public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type404 { get; set; } + public global::ResembleAI.AccountGetAccountResponse200? Type404 { get; set; } /// /// /// - public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type405 { get; set; } + public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type405 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type406 { get; set; } + public global::ResembleAI.AccountGetTeamsResponse200? Type406 { get; set; } /// /// /// - public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type407 { get; set; } + public global::System.Collections.Generic.IList? Type407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type408 { get; set; } + public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type408 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type409 { get; set; } + public global::ResembleAI.AccountGetTeamResponse200? Type409 { get; set; } /// /// /// - public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type410 { get; set; } + public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type410 { get; set; } /// /// /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type411 { get; set; } + public global::ResembleAI.AccountGetBillingUsageResponse200? Type411 { get; set; } /// /// /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type412 { get; set; } + public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type412 { get; set; } /// /// /// - public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type413 { get; set; } + public global::ResembleAI.DuetsListDuetVoicesResponse200? Type413 { get; set; } /// /// /// - public global::ResembleAI.DuetsGenerateDuetResponse200? Type414 { get; set; } + public global::System.Collections.Generic.IList? Type414 { get; set; } /// /// /// - public global::ResembleAI.SynthesizeRequest? Type415 { get; set; } + public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type415 { get; set; } /// /// /// - public global::ResembleAI.StreamSynthesizeRequest? Type416 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type416 { get; set; } /// /// /// - public global::ResembleAI.CreateTranscriptRequest? Type417 { get; set; } + public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type417 { get; set; } /// /// /// - public global::ResembleAI.AskTranscriptQuestionRequest? Type418 { get; set; } + public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type418 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequest? Type419 { get; set; } + public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type419 { get; set; } /// /// /// - public global::ResembleAI.CreateAgentRequest? Type420 { get; set; } + public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type420 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type421 { get; set; } + public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type421 { get; set; } /// /// /// - public global::ResembleAI.UpdateAgentRequest? Type422 { get; set; } + public global::System.Collections.Generic.IList? Type422 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type423 { get; set; } + public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type423 { get; set; } /// /// /// - public global::ResembleAI.DispatchAgentRequest? Type424 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type424 { get; set; } /// /// /// - public global::ResembleAI.CreateAgentToolRequest? Type425 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type425 { get; set; } /// /// /// - public global::ResembleAI.UpdateAgentToolRequest? Type426 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type426 { get; set; } /// /// /// - public global::ResembleAI.CreateAgentWebhookRequest? Type427 { get; set; } + public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type427 { get; set; } /// /// /// - public global::ResembleAI.UpdateAgentWebhookRequest? Type428 { get; set; } + public global::ResembleAI.DuetsGenerateDuetResponse200? Type428 { get; set; } /// /// /// - public global::ResembleAI.CreatePhoneNumberRequest? Type429 { get; set; } + public global::ResembleAI.SynthesizeRequest? Type429 { get; set; } /// /// /// - public global::ResembleAI.CreateKnowledgeItemRequest? Type430 { get; set; } + public global::ResembleAI.StreamSynthesizeRequest? Type430 { get; set; } /// /// /// - public global::ResembleAI.AttachKnowledgeItemToAgentRequest? Type431 { get; set; } + public global::ResembleAI.CreateTranscriptRequest? Type431 { get; set; } /// /// /// - public global::ResembleAI.CreateSecureUploadRequest? Type432 { get; set; } + public global::ResembleAI.AskTranscriptQuestionRequest? Type432 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectionRequest? Type433 { get; set; } + public global::ResembleAI.CreateAudioEnhancementRequest? Type433 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectBatchRequest? Type434 { get; set; } + public global::ResembleAI.CreateAgentRequest? Type434 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type435 { get; set; } + public global::System.Collections.Generic.IList? Type435 { get; set; } /// /// /// - public global::ResembleAI.RunIntelligenceRequest? Type436 { get; set; } + public global::ResembleAI.UpdateAgentRequest? Type436 { get; set; } /// /// /// - public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type437 { get; set; } + public global::System.Collections.Generic.IList? Type437 { get; set; } /// /// /// - public global::ResembleAI.CreateIdentityAttachmentRequest? Type438 { get; set; } + public global::ResembleAI.DispatchAgentRequest? Type438 { get; set; } /// /// /// - public global::ResembleAI.SearchIdentitiesRequest? Type439 { get; set; } + public global::ResembleAI.CreateAgentToolRequest? Type439 { get; set; } /// /// /// - public global::ResembleAI.ApplyWatermarkRequest? Type440 { get; set; } + public global::ResembleAI.UpdateAgentToolRequest? Type440 { get; set; } /// /// /// - public global::ResembleAI.DetectWatermarkRequest? Type441 { get; set; } + public global::ResembleAI.CreateAgentWebhookRequest? Type441 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceRequest? Type442 { get; set; } + public global::ResembleAI.UpdateAgentWebhookRequest? Type442 { get; set; } /// /// /// - public global::ResembleAI.BuildVoiceRequest? Type443 { get; set; } + public global::ResembleAI.CreatePhoneNumberRequest? Type443 { get; set; } /// /// /// - public global::ResembleAI.GenerateVoiceDesignRequest? Type444 { get; set; } + public global::ResembleAI.CreateKnowledgeItemRequest? Type444 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceFromCandidateRequest? Type445 { get; set; } + public global::ResembleAI.AttachKnowledgeItemToAgentRequest? Type445 { get; set; } /// /// /// - public global::ResembleAI.CreateRecordingRequest? Type446 { get; set; } + public global::ResembleAI.CreateSecureUploadRequest? Type446 { get; set; } /// /// /// - public global::ResembleAI.UpdateRecordingRequest? Type447 { get; set; } + public global::ResembleAI.CreateDetectionRequest? Type447 { get; set; } /// /// /// - public global::ResembleAI.CreateTermSubstitutionRequest? Type448 { get; set; } + public global::ResembleAI.CreateDetectBatchRequest? Type448 { get; set; } /// /// /// - public global::ResembleAI.CreatePronunciationRequest? Type449 { get; set; } + public global::System.Collections.Generic.IList? Type449 { get; set; } /// /// /// - public global::ResembleAI.BulkCreatePronunciationsRequest? Type450 { get; set; } + public global::ResembleAI.RunIntelligenceRequest? Type450 { get; set; } /// /// /// - public global::ResembleAI.UpdatePronunciationRequest? Type451 { get; set; } + public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type451 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type452 { get; set; } + public global::ResembleAI.CreateIdentityAttachmentRequest? Type452 { get; set; } /// /// /// - public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type453 { get; set; } + public global::ResembleAI.SearchIdentitiesRequest? Type453 { get; set; } /// /// /// - public global::ResembleAI.CreateProjectRequest? Type454 { get; set; } + public global::ResembleAI.CreateVoiceRequest? Type454 { get; set; } /// /// /// - public global::ResembleAI.UpdateProjectRequest? Type455 { get; set; } + public global::ResembleAI.BuildVoiceRequest? Type455 { get; set; } /// /// /// - public global::ResembleAI.UpdateClipRequest? Type456 { get; set; } + public global::ResembleAI.GenerateVoiceDesignRequest? Type456 { get; set; } /// /// /// - public global::ResembleAI.CreateDuetVoiceRequest? Type457 { get; set; } + public global::ResembleAI.CreateVoiceFromCandidateRequest? Type457 { get; set; } /// /// /// - public global::ResembleAI.UpdateDuetVoiceRequest? Type458 { get; set; } + public global::ResembleAI.CreateRecordingRequest? Type458 { get; set; } /// /// /// - public global::ResembleAI.CreateDuetVoicePairRequest? Type459 { get; set; } + public global::ResembleAI.UpdateRecordingRequest? Type459 { get; set; } /// /// /// - public global::ResembleAI.GenerateDuetRequest? Type460 { get; set; } + public global::ResembleAI.CreateTermSubstitutionRequest? Type460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type461 { get; set; } + public global::ResembleAI.CreatePronunciationRequest? Type461 { get; set; } + /// + /// + /// + public global::ResembleAI.BulkCreatePronunciationsRequest? Type462 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdatePronunciationRequest? Type463 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type464 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type465 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateProjectRequest? Type466 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateProjectRequest? Type467 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateClipRequest? Type468 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateDuetVoiceRequest? Type469 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateDuetVoiceRequest? Type470 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateDuetVoicePairRequest? Type471 { get; set; } + /// + /// + /// + public global::ResembleAI.GenerateDuetRequest? Type472 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type473 { get; set; } /// /// @@ -2001,66 +2049,82 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType32 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType33 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType34 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } } } \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyWatermarkResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItem.Json.g.cs similarity index 86% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyWatermarkResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItem.Json.g.cs index ad3108d..cd66b96 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyWatermarkResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItem.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class WatermarkApplyWatermarkResponse200 + public sealed partial class WatermarkApplyItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.WatermarkApplyWatermarkResponse200? FromJson( + public static global::ResembleAI.WatermarkApplyItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.WatermarkApplyWatermarkResponse200), - jsonSerializerContext) as global::ResembleAI.WatermarkApplyWatermarkResponse200; + typeof(global::ResembleAI.WatermarkApplyItem), + jsonSerializerContext) as global::ResembleAI.WatermarkApplyItem; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.WatermarkApplyWatermarkResponse200? FromJson( + public static global::ResembleAI.WatermarkApplyItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.WatermarkApplyWatermarkResponse200? FromJson( + public static global::ResembleAI.WatermarkApplyItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.WatermarkApplyWatermarkResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkApplyWatermarkResponse200; + typeof(global::ResembleAI.WatermarkApplyItem), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkApplyItem; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItem.g.cs new file mode 100644 index 0000000..d776ddc --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItem.g.cs @@ -0,0 +1,141 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class WatermarkApplyItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uuid { get; set; } + + /// + /// Detected media type of the source file. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("media_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkApplyItemMediaType MediaType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeJsonConverter))] + public global::ResembleAI.WatermarkApplyItemOperationType OperationType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkApplyItemStatus Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_version")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionJsonConverter))] + public global::ResembleAI.WatermarkApplyItemModelVersion ModelVersion { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_media_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SourceMediaUrl { get; set; } + + /// + /// Signed output URL when processing is complete. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("watermarked_media")] + public string? WatermarkedMedia { get; set; } + + /// + /// Apply metadata for image/video. Audio apply metrics are null. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metrics")] + public global::ResembleAI.WatermarkApplyMetrics? Metrics { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { 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. + /// + /// + /// + /// Detected media type of the source file. + /// + /// + /// + /// + /// + /// + /// + /// + /// Signed output URL when processing is complete. + /// + /// + /// Apply metadata for image/video. Audio apply metrics are null. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WatermarkApplyItem( + string uuid, + global::ResembleAI.WatermarkApplyItemMediaType mediaType, + global::ResembleAI.WatermarkApplyItemStatus status, + string sourceMediaUrl, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + global::ResembleAI.WatermarkApplyItemOperationType operationType, + global::ResembleAI.WatermarkApplyItemModelVersion modelVersion, + string? watermarkedMedia, + global::ResembleAI.WatermarkApplyMetrics? metrics) + { + this.Uuid = uuid ?? throw new global::System.ArgumentNullException(nameof(uuid)); + this.MediaType = mediaType; + this.OperationType = operationType; + this.Status = status; + this.ModelVersion = modelVersion; + this.SourceMediaUrl = sourceMediaUrl ?? throw new global::System.ArgumentNullException(nameof(sourceMediaUrl)); + this.WatermarkedMedia = watermarkedMedia; + this.Metrics = metrics; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public WatermarkApplyItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemMediaType.g.cs new file mode 100644 index 0000000..ff51d47 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemMediaType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Detected media type of the source file. + /// + public enum WatermarkApplyItemMediaType + { + /// + /// + /// + Audio, + /// + /// + /// + Image, + /// + /// + /// + Video, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkApplyItemMediaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkApplyItemMediaType value) + { + return value switch + { + WatermarkApplyItemMediaType.Audio => "audio", + WatermarkApplyItemMediaType.Image => "image", + WatermarkApplyItemMediaType.Video => "video", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkApplyItemMediaType? ToEnum(string value) + { + return value switch + { + "audio" => WatermarkApplyItemMediaType.Audio, + "image" => WatermarkApplyItemMediaType.Image, + "video" => WatermarkApplyItemMediaType.Video, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemModelVersion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemModelVersion.g.cs new file mode 100644 index 0000000..d8fca03 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemModelVersion.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkApplyItemModelVersion + { + /// + /// + /// + PerthV2, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkApplyItemModelVersionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkApplyItemModelVersion value) + { + return value switch + { + WatermarkApplyItemModelVersion.PerthV2 => "perth_v2", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkApplyItemModelVersion? ToEnum(string value) + { + return value switch + { + "perth_v2" => WatermarkApplyItemModelVersion.PerthV2, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemOperationType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemOperationType.g.cs new file mode 100644 index 0000000..6e972f7 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemOperationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkApplyItemOperationType + { + /// + /// + /// + Apply, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkApplyItemOperationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkApplyItemOperationType value) + { + return value switch + { + WatermarkApplyItemOperationType.Apply => "apply", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkApplyItemOperationType? ToEnum(string value) + { + return value switch + { + "apply" => WatermarkApplyItemOperationType.Apply, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemStatus.g.cs new file mode 100644 index 0000000..e2f112c --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyItemStatus.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkApplyItemStatus + { + /// + /// + /// + Completed, + /// + /// + /// + Failed, + /// + /// + /// + Pending, + /// + /// + /// + Processing, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkApplyItemStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkApplyItemStatus value) + { + return value switch + { + WatermarkApplyItemStatus.Completed => "completed", + WatermarkApplyItemStatus.Failed => "failed", + WatermarkApplyItemStatus.Pending => "pending", + WatermarkApplyItemStatus.Processing => "processing", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkApplyItemStatus? ToEnum(string value) + { + return value switch + { + "completed" => WatermarkApplyItemStatus.Completed, + "failed" => WatermarkApplyItemStatus.Failed, + "pending" => WatermarkApplyItemStatus.Pending, + "processing" => WatermarkApplyItemStatus.Processing, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ApplyWatermarkRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyMetrics.Json.g.cs similarity index 88% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.ApplyWatermarkRequest.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyMetrics.Json.g.cs index c24a55b..8787d7f 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ApplyWatermarkRequest.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyMetrics.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class ApplyWatermarkRequest + public sealed partial class WatermarkApplyMetrics { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.ApplyWatermarkRequest? FromJson( + public static global::ResembleAI.WatermarkApplyMetrics? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.ApplyWatermarkRequest), - jsonSerializerContext) as global::ResembleAI.ApplyWatermarkRequest; + typeof(global::ResembleAI.WatermarkApplyMetrics), + jsonSerializerContext) as global::ResembleAI.WatermarkApplyMetrics; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.ApplyWatermarkRequest? FromJson( + public static global::ResembleAI.WatermarkApplyMetrics? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.ApplyWatermarkRequest? FromJson( + public static global::ResembleAI.WatermarkApplyMetrics? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.ApplyWatermarkRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ApplyWatermarkRequest; + typeof(global::ResembleAI.WatermarkApplyMetrics), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkApplyMetrics; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkDetectionResultResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyMetrics.g.cs similarity index 52% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkDetectionResultResponse200.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyMetrics.g.cs index 6a8fa56..33da302 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkDetectionResultResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyMetrics.g.cs @@ -4,21 +4,27 @@ namespace ResembleAI { /// - /// + /// Apply metadata for image/video. Audio apply metrics are null. /// - public sealed partial class WatermarkGetWatermarkDetectionResultResponse200 + public sealed partial class WatermarkApplyMetrics { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("strength")] + public double? Strength { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? Item { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("custom_message")] + public string? CustomMessage { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message_bits_length")] + public int? MessageBitsLength { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,25 +33,28 @@ public sealed partial class WatermarkGetWatermarkDetectionResultResponse200 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WatermarkGetWatermarkDetectionResultResponse200( - bool? success, - global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? item) + public WatermarkApplyMetrics( + double? strength, + string? customMessage, + int? messageBitsLength) { - this.Success = success; - this.Item = item; + this.Strength = strength; + this.CustomMessage = customMessage; + this.MessageBitsLength = messageBitsLength; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WatermarkGetWatermarkDetectionResultResponse200() + public WatermarkApplyMetrics() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 24906ba..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class WatermarkApplyPostResponsesContentApplicationJsonSchemaItem - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index f8fa651..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,106 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class WatermarkApplyPostResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public string? Uuid { get; set; } - - /// - /// Detected media type of the source file. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("media_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter))] - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? MediaType { get; set; } - - /// - /// The original source URL provided in the request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_media_url")] - public string? SourceMediaUrl { get; set; } - - /// - /// Signed URL to the watermarked file. Populated when processing is complete. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("watermarked_media")] - public string? WatermarkedMedia { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metrics")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter))] - public global::ResembleAI.OneOf? Metrics { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { 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. - /// - /// - /// - /// Detected media type of the source file. - /// - /// - /// The original source URL provided in the request. - /// - /// - /// Signed URL to the watermarked file. Populated when processing is complete. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public WatermarkApplyPostResponsesContentApplicationJsonSchemaItem( - string? uuid, - global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? mediaType, - string? sourceMediaUrl, - string? watermarkedMedia, - global::ResembleAI.OneOf? metrics, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.MediaType = mediaType; - this.SourceMediaUrl = sourceMediaUrl; - this.WatermarkedMedia = watermarkedMedia; - this.Metrics = metrics; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public WatermarkApplyPostResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs deleted file mode 100644 index 423b106..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Detected media type of the source file. - /// - public enum WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType - { - /// - /// - /// - Audio, - /// - /// - /// - Image, - /// - /// - /// - Video, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType value) - { - return value switch - { - WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.Audio => "audio", - WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.Image => "image", - WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.Video => "video", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? ToEnum(string value) - { - return value switch - { - "audio" => WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.Audio, - "image" => WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.Image, - "video" => WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType.Video, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs deleted file mode 100644 index 6d622d4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics), - jsonSerializerContext) as global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectWatermarkResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyRequest.Json.g.cs similarity index 86% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectWatermarkResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyRequest.Json.g.cs index ecc7cdf..ba42776 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectWatermarkResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class WatermarkDetectWatermarkResponse200 + public sealed partial class WatermarkApplyRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.WatermarkDetectWatermarkResponse200? FromJson( + public static global::ResembleAI.WatermarkApplyRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.WatermarkDetectWatermarkResponse200), - jsonSerializerContext) as global::ResembleAI.WatermarkDetectWatermarkResponse200; + typeof(global::ResembleAI.WatermarkApplyRequest), + jsonSerializerContext) as global::ResembleAI.WatermarkApplyRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.WatermarkDetectWatermarkResponse200? FromJson( + public static global::ResembleAI.WatermarkApplyRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.WatermarkDetectWatermarkResponse200? FromJson( + public static global::ResembleAI.WatermarkApplyRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.WatermarkDetectWatermarkResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectWatermarkResponse200; + typeof(global::ResembleAI.WatermarkApplyRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkApplyRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ApplyWatermarkRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyRequest.g.cs similarity index 77% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.ApplyWatermarkRequest.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyRequest.g.cs index 0f3a996..c49815b 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ApplyWatermarkRequest.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyRequest.g.cs @@ -6,10 +6,10 @@ namespace ResembleAI /// /// /// - public sealed partial class ApplyWatermarkRequest + public sealed partial class WatermarkApplyRequest { /// - /// HTTPS URL to the media file (audio, image, or video). + /// Public HTTPS URL to the audio, image, or video source. /// [global::System.Text.Json.Serialization.JsonPropertyName("url")] [global::System.Text.Json.Serialization.JsonRequired] @@ -23,7 +23,7 @@ public sealed partial class ApplyWatermarkRequest public double? Strength { get; set; } /// - /// Custom message to embed for image/video. Ignored for audio.
+ /// Message to embed in image/video. Ignored for audio.
/// Default Value: resembleai ///
[global::System.Text.Json.Serialization.JsonPropertyName("custom_message")] @@ -36,23 +36,23 @@ public sealed partial class ApplyWatermarkRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// HTTPS URL to the media file (audio, image, or video). + /// Public HTTPS URL to the audio, image, or video source. /// /// /// Watermark strength for image/video. Ignored for audio.
/// Default Value: 0.2F /// /// - /// Custom message to embed for image/video. Ignored for audio.
+ /// Message to embed in image/video. Ignored for audio.
/// Default Value: resembleai /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ApplyWatermarkRequest( + public WatermarkApplyRequest( string url, double? strength, string? customMessage) @@ -63,9 +63,9 @@ public ApplyWatermarkRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ApplyWatermarkRequest() + public WatermarkApplyRequest() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectWatermarkRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyResponse.Json.g.cs similarity index 88% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.DetectWatermarkRequest.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyResponse.Json.g.cs index 8126619..6a9ea01 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectWatermarkRequest.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class DetectWatermarkRequest + public sealed partial class WatermarkApplyResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.DetectWatermarkRequest? FromJson( + public static global::ResembleAI.WatermarkApplyResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.DetectWatermarkRequest), - jsonSerializerContext) as global::ResembleAI.DetectWatermarkRequest; + typeof(global::ResembleAI.WatermarkApplyResponse), + jsonSerializerContext) as global::ResembleAI.WatermarkApplyResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.DetectWatermarkRequest? FromJson( + public static global::ResembleAI.WatermarkApplyResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.DetectWatermarkRequest? FromJson( + public static global::ResembleAI.WatermarkApplyResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.DetectWatermarkRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectWatermarkRequest; + typeof(global::ResembleAI.WatermarkApplyResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkApplyResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyWatermarkResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyResponse.g.cs similarity index 66% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyWatermarkResponse200.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyResponse.g.cs index 8a29553..1caed58 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyWatermarkResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyResponse.g.cs @@ -6,19 +6,21 @@ namespace ResembleAI /// /// /// - public sealed partial class WatermarkApplyWatermarkResponse200 + public sealed partial class WatermarkApplyResponse { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? Item { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkApplyItem Item { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,25 +29,25 @@ public sealed partial class WatermarkApplyWatermarkResponse200 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WatermarkApplyWatermarkResponse200( - bool? success, - global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? item) + public WatermarkApplyResponse( + bool success, + global::ResembleAI.WatermarkApplyItem item) { this.Success = success; - this.Item = item; + this.Item = item ?? throw new global::System.ArgumentNullException(nameof(item)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WatermarkApplyWatermarkResponse200() + public WatermarkApplyResponse() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 15c30ae..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 7d2021b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,102 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public string? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("media_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter))] - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? MediaType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_media_url")] - public string? SourceMediaUrl { get; set; } - - /// - /// Signed URL to the watermarked file. Null while processing. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("watermarked_media")] - public string? WatermarkedMedia { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metrics")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter))] - public global::ResembleAI.OneOf? Metrics { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { 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. - /// - /// - /// - /// - /// - /// Signed URL to the watermarked file. Null while processing. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem( - string? uuid, - global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? mediaType, - string? sourceMediaUrl, - string? watermarkedMedia, - global::ResembleAI.OneOf? metrics, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.MediaType = mediaType; - this.SourceMediaUrl = sourceMediaUrl; - this.WatermarkedMedia = watermarkedMedia; - this.Metrics = metrics; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs deleted file mode 100644 index a6812db..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType - { - /// - /// - /// - Audio, - /// - /// - /// - Image, - /// - /// - /// - Video, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType value) - { - return value switch - { - WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Audio => "audio", - WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Image => "image", - WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Video => "video", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? ToEnum(string value) - { - return value switch - { - "audio" => WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Audio, - "image" => WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Image, - "video" => WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Video, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs deleted file mode 100644 index 52a06fc..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics), - jsonSerializerContext) as global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.g.cs deleted file mode 100644 index 1183cf8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetrics.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetrics.Json.g.cs new file mode 100644 index 0000000..1a49429 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetrics.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class WatermarkAudioDetectionMetrics + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkAudioDetectionMetrics? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.WatermarkAudioDetectionMetrics), + jsonSerializerContext) as global::ResembleAI.WatermarkAudioDetectionMetrics; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkAudioDetectionMetrics? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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::ResembleAI.WatermarkAudioDetectionMetrics? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + 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::ResembleAI.WatermarkAudioDetectionMetrics), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkAudioDetectionMetrics; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetrics.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetrics.g.cs new file mode 100644 index 0000000..32ecf58 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetrics.g.cs @@ -0,0 +1,101 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class WatermarkAudioDetectionMetrics + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("overall_status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus OverallStatus { get; set; } + + /// + /// Only model versions that positively detected a watermark. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("detected_model_versions")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList DetectedModelVersions { get; set; } + + /// + /// True only when both audio detectors completed successfully. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("coverage_complete")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool CoverageComplete { get; set; } + + /// + /// Per-channel aggregate across successful audio detectors. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_watermark")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.Dictionary HasWatermark { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_results")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ModelResults { 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. + /// + /// + /// + /// Only model versions that positively detected a watermark. + /// + /// + /// True only when both audio detectors completed successfully. + /// + /// + /// Per-channel aggregate across successful audio detectors. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WatermarkAudioDetectionMetrics( + global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus overallStatus, + global::System.Collections.Generic.IList detectedModelVersions, + bool coverageComplete, + global::System.Collections.Generic.Dictionary hasWatermark, + global::System.Collections.Generic.IList modelResults, + double? confidence) + { + this.OverallStatus = overallStatus; + this.DetectedModelVersions = detectedModelVersions ?? throw new global::System.ArgumentNullException(nameof(detectedModelVersions)); + this.CoverageComplete = coverageComplete; + this.HasWatermark = hasWatermark ?? throw new global::System.ArgumentNullException(nameof(hasWatermark)); + this.Confidence = confidence; + this.ModelResults = modelResults ?? throw new global::System.ArgumentNullException(nameof(modelResults)); + } + + /// + /// Initializes a new instance of the class. + /// + public WatermarkAudioDetectionMetrics() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsDetectedModelVersionsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsDetectedModelVersionsItems.g.cs new file mode 100644 index 0000000..5ae9a2d --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsDetectedModelVersionsItems.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkAudioDetectionMetricsDetectedModelVersionsItems + { + /// + /// + /// + PerthV1, + /// + /// + /// + PerthV2, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkAudioDetectionMetricsDetectedModelVersionsItemsExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkAudioDetectionMetricsDetectedModelVersionsItems value) + { + return value switch + { + WatermarkAudioDetectionMetricsDetectedModelVersionsItems.PerthV1 => "perth_v1", + WatermarkAudioDetectionMetricsDetectedModelVersionsItems.PerthV2 => "perth_v2", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkAudioDetectionMetricsDetectedModelVersionsItems? ToEnum(string value) + { + return value switch + { + "perth_v1" => WatermarkAudioDetectionMetricsDetectedModelVersionsItems.PerthV1, + "perth_v2" => WatermarkAudioDetectionMetricsDetectedModelVersionsItems.PerthV2, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkDetectionResultResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsHasWatermark.Json.g.cs similarity index 84% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkDetectionResultResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsHasWatermark.Json.g.cs index 6cb9024..80c55db 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkDetectionResultResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsHasWatermark.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class WatermarkGetWatermarkDetectionResultResponse200 + public sealed partial class WatermarkAudioDetectionMetricsHasWatermark { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200? FromJson( + public static global::ResembleAI.WatermarkAudioDetectionMetricsHasWatermark? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200), - jsonSerializerContext) as global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200; + typeof(global::ResembleAI.WatermarkAudioDetectionMetricsHasWatermark), + jsonSerializerContext) as global::ResembleAI.WatermarkAudioDetectionMetricsHasWatermark; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200? FromJson( + public static global::ResembleAI.WatermarkAudioDetectionMetricsHasWatermark? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200? FromJson( + public static global::ResembleAI.WatermarkAudioDetectionMetricsHasWatermark? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200; + typeof(global::ResembleAI.WatermarkAudioDetectionMetricsHasWatermark), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkAudioDetectionMetricsHasWatermark; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsHasWatermark.g.cs similarity index 77% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsHasWatermark.g.cs index 6b9b9d3..cfb222e 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsHasWatermark.g.cs @@ -4,9 +4,9 @@ namespace ResembleAI { /// - /// + /// Per-channel aggregate across successful audio detectors. /// - public sealed partial class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 + public sealed partial class WatermarkAudioDetectionMetricsHasWatermark { /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsOverallStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsOverallStatus.g.cs new file mode 100644 index 0000000..b874ca3 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioDetectionMetricsOverallStatus.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkAudioDetectionMetricsOverallStatus + { + /// + /// + /// + Absent, + /// + /// + /// + Inconclusive, + /// + /// + /// + Present, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkAudioDetectionMetricsOverallStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkAudioDetectionMetricsOverallStatus value) + { + return value switch + { + WatermarkAudioDetectionMetricsOverallStatus.Absent => "absent", + WatermarkAudioDetectionMetricsOverallStatus.Inconclusive => "inconclusive", + WatermarkAudioDetectionMetricsOverallStatus.Present => "present", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkAudioDetectionMetricsOverallStatus? ToEnum(string value) + { + return value switch + { + "absent" => WatermarkAudioDetectionMetricsOverallStatus.Absent, + "inconclusive" => WatermarkAudioDetectionMetricsOverallStatus.Inconclusive, + "present" => WatermarkAudioDetectionMetricsOverallStatus.Present, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResult.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResult.Json.g.cs new file mode 100644 index 0000000..65ed86f --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResult.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class WatermarkAudioModelResult + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkAudioModelResult? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.WatermarkAudioModelResult), + jsonSerializerContext) as global::ResembleAI.WatermarkAudioModelResult; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkAudioModelResult? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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::ResembleAI.WatermarkAudioModelResult? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + 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::ResembleAI.WatermarkAudioModelResult), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkAudioModelResult; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResult.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResult.g.cs new file mode 100644 index 0000000..efec02b --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResult.g.cs @@ -0,0 +1,99 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class WatermarkAudioModelResult + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_version")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkAudioModelResultModelVersion ModelVersion { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkAudioModelResultStatus Status { get; set; } + + /// + /// Null when this detector was unavailable. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("detected")] + public bool? Detected { get; set; } + + /// + /// Successful per-channel detection results. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_watermark")] + public global::System.Collections.Generic.Dictionary? HasWatermark { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// Safe error message when status is failed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { 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. + /// + /// + /// + /// + /// Null when this detector was unavailable. + /// + /// + /// Successful per-channel detection results. + /// + /// + /// + /// Safe error message when status is failed. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WatermarkAudioModelResult( + global::ResembleAI.WatermarkAudioModelResultModelVersion modelVersion, + global::ResembleAI.WatermarkAudioModelResultStatus status, + bool? detected, + global::System.Collections.Generic.Dictionary? hasWatermark, + double? confidence, + string? error) + { + this.ModelVersion = modelVersion; + this.Status = status; + this.Detected = detected; + this.HasWatermark = hasWatermark; + this.Confidence = confidence; + this.Error = error; + } + + /// + /// Initializes a new instance of the class. + /// + public WatermarkAudioModelResult() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkApplyResultResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultHasWatermark.Json.g.cs similarity index 85% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkApplyResultResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultHasWatermark.Json.g.cs index 43464d9..03c57e9 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkApplyResultResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultHasWatermark.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class WatermarkGetWatermarkApplyResultResponse200 + public sealed partial class WatermarkAudioModelResultHasWatermark { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200? FromJson( + public static global::ResembleAI.WatermarkAudioModelResultHasWatermark? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200), - jsonSerializerContext) as global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200; + typeof(global::ResembleAI.WatermarkAudioModelResultHasWatermark), + jsonSerializerContext) as global::ResembleAI.WatermarkAudioModelResultHasWatermark; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200? FromJson( + public static global::ResembleAI.WatermarkAudioModelResultHasWatermark? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200? FromJson( + public static global::ResembleAI.WatermarkAudioModelResultHasWatermark? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200; + typeof(global::ResembleAI.WatermarkAudioModelResultHasWatermark), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkAudioModelResultHasWatermark; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultHasWatermark.g.cs similarity index 79% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultHasWatermark.g.cs index edb3830..a8a2392 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultHasWatermark.g.cs @@ -4,9 +4,9 @@ namespace ResembleAI { /// - /// + /// Successful per-channel detection results. /// - public sealed partial class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics + public sealed partial class WatermarkAudioModelResultHasWatermark { /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultModelVersion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultModelVersion.g.cs new file mode 100644 index 0000000..007b542 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultModelVersion.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkAudioModelResultModelVersion + { + /// + /// + /// + PerthV1, + /// + /// + /// + PerthV2, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkAudioModelResultModelVersionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkAudioModelResultModelVersion value) + { + return value switch + { + WatermarkAudioModelResultModelVersion.PerthV1 => "perth_v1", + WatermarkAudioModelResultModelVersion.PerthV2 => "perth_v2", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkAudioModelResultModelVersion? ToEnum(string value) + { + return value switch + { + "perth_v1" => WatermarkAudioModelResultModelVersion.PerthV1, + "perth_v2" => WatermarkAudioModelResultModelVersion.PerthV2, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultStatus.g.cs new file mode 100644 index 0000000..128bd43 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkAudioModelResultStatus.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkAudioModelResultStatus + { + /// + /// + /// + Failed, + /// + /// + /// + Succeeded, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkAudioModelResultStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkAudioModelResultStatus value) + { + return value switch + { + WatermarkAudioModelResultStatus.Failed => "failed", + WatermarkAudioModelResultStatus.Succeeded => "succeeded", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkAudioModelResultStatus? ToEnum(string value) + { + return value switch + { + "failed" => WatermarkAudioModelResultStatus.Failed, + "succeeded" => WatermarkAudioModelResultStatus.Succeeded, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItem.Json.g.cs new file mode 100644 index 0000000..0e3b113 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class WatermarkDetectItem + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkDetectItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.WatermarkDetectItem), + jsonSerializerContext) as global::ResembleAI.WatermarkDetectItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkDetectItem? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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::ResembleAI.WatermarkDetectItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + 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::ResembleAI.WatermarkDetectItem), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItem.g.cs new file mode 100644 index 0000000..d2c3f76 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItem.g.cs @@ -0,0 +1,142 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class WatermarkDetectItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uuid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("media_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkDetectItemMediaType MediaType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeJsonConverter))] + public global::ResembleAI.WatermarkDetectItemOperationType OperationType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkDetectItemStatus Status { get; set; } + + /// + /// Present for image/video. Audio versions are reported in metrics.model_results. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_version")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionJsonConverter))] + public global::ResembleAI.WatermarkDetectItemModelVersion? ModelVersion { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_media_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SourceMediaUrl { get; set; } + + /// + /// Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metrics")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter))] + public global::ResembleAI.OneOf? Metrics { get; set; } + + /// + /// Detection does not produce output media. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("watermarked_media")] + public string? WatermarkedMedia { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { 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. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Present for image/video. Audio versions are reported in metrics.model_results. + /// + /// + /// Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape. + /// + /// + /// Detection does not produce output media. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WatermarkDetectItem( + string uuid, + global::ResembleAI.WatermarkDetectItemMediaType mediaType, + global::ResembleAI.WatermarkDetectItemStatus status, + string sourceMediaUrl, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + global::ResembleAI.WatermarkDetectItemOperationType operationType, + global::ResembleAI.WatermarkDetectItemModelVersion? modelVersion, + global::ResembleAI.OneOf? metrics, + string? watermarkedMedia) + { + this.Uuid = uuid ?? throw new global::System.ArgumentNullException(nameof(uuid)); + this.MediaType = mediaType; + this.OperationType = operationType; + this.Status = status; + this.ModelVersion = modelVersion; + this.SourceMediaUrl = sourceMediaUrl ?? throw new global::System.ArgumentNullException(nameof(sourceMediaUrl)); + this.Metrics = metrics; + this.WatermarkedMedia = watermarkedMedia; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public WatermarkDetectItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemMediaType.g.cs new file mode 100644 index 0000000..464c3d4 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemMediaType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkDetectItemMediaType + { + /// + /// + /// + Audio, + /// + /// + /// + Image, + /// + /// + /// + Video, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkDetectItemMediaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkDetectItemMediaType value) + { + return value switch + { + WatermarkDetectItemMediaType.Audio => "audio", + WatermarkDetectItemMediaType.Image => "image", + WatermarkDetectItemMediaType.Video => "video", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkDetectItemMediaType? ToEnum(string value) + { + return value switch + { + "audio" => WatermarkDetectItemMediaType.Audio, + "image" => WatermarkDetectItemMediaType.Image, + "video" => WatermarkDetectItemMediaType.Video, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemMetrics.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemMetrics.Json.g.cs new file mode 100644 index 0000000..d0244ad --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemMetrics.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public readonly partial struct WatermarkDetectItemMetrics + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkDetectItemMetrics? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.WatermarkDetectItemMetrics), + jsonSerializerContext) as global::ResembleAI.WatermarkDetectItemMetrics?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkDetectItemMetrics? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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::ResembleAI.WatermarkDetectItemMetrics? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + 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::ResembleAI.WatermarkDetectItemMetrics), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectItemMetrics?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemMetrics.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemMetrics.g.cs new file mode 100644 index 0000000..0fb36c4 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemMetrics.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace ResembleAI +{ + /// + /// Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape. + /// + public readonly partial struct WatermarkDetectItemMetrics : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::ResembleAI.WatermarkAudioDetectionMetrics? WatermarkAudioDetectionMetrics { get; init; } +#else + public global::ResembleAI.WatermarkAudioDetectionMetrics? WatermarkAudioDetectionMetrics { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WatermarkAudioDetectionMetrics))] +#endif + public bool IsWatermarkAudioDetectionMetrics => WatermarkAudioDetectionMetrics != null; + + /// + /// + /// + public bool TryPickWatermarkAudioDetectionMetrics( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::ResembleAI.WatermarkAudioDetectionMetrics? value) + { + value = WatermarkAudioDetectionMetrics; + return IsWatermarkAudioDetectionMetrics; + } + + /// + /// + /// + public global::ResembleAI.WatermarkAudioDetectionMetrics PickWatermarkAudioDetectionMetrics() => IsWatermarkAudioDetectionMetrics + ? WatermarkAudioDetectionMetrics! + : throw new global::System.InvalidOperationException($"Expected union variant 'WatermarkAudioDetectionMetrics' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::ResembleAI.WatermarkVisionDetectionMetrics? WatermarkVisionDetectionMetrics { get; init; } +#else + public global::ResembleAI.WatermarkVisionDetectionMetrics? WatermarkVisionDetectionMetrics { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WatermarkVisionDetectionMetrics))] +#endif + public bool IsWatermarkVisionDetectionMetrics => WatermarkVisionDetectionMetrics != null; + + /// + /// + /// + public bool TryPickWatermarkVisionDetectionMetrics( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::ResembleAI.WatermarkVisionDetectionMetrics? value) + { + value = WatermarkVisionDetectionMetrics; + return IsWatermarkVisionDetectionMetrics; + } + + /// + /// + /// + public global::ResembleAI.WatermarkVisionDetectionMetrics PickWatermarkVisionDetectionMetrics() => IsWatermarkVisionDetectionMetrics + ? WatermarkVisionDetectionMetrics! + : throw new global::System.InvalidOperationException($"Expected union variant 'WatermarkVisionDetectionMetrics' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator WatermarkDetectItemMetrics(global::ResembleAI.WatermarkAudioDetectionMetrics value) => new WatermarkDetectItemMetrics((global::ResembleAI.WatermarkAudioDetectionMetrics?)value); + + /// + /// + /// + public static implicit operator global::ResembleAI.WatermarkAudioDetectionMetrics?(WatermarkDetectItemMetrics @this) => @this.WatermarkAudioDetectionMetrics; + + /// + /// + /// + public WatermarkDetectItemMetrics(global::ResembleAI.WatermarkAudioDetectionMetrics? value) + { + WatermarkAudioDetectionMetrics = value; + } + + /// + /// + /// + public static WatermarkDetectItemMetrics FromWatermarkAudioDetectionMetrics(global::ResembleAI.WatermarkAudioDetectionMetrics? value) => new WatermarkDetectItemMetrics(value); + + /// + /// + /// + public static implicit operator WatermarkDetectItemMetrics(global::ResembleAI.WatermarkVisionDetectionMetrics value) => new WatermarkDetectItemMetrics((global::ResembleAI.WatermarkVisionDetectionMetrics?)value); + + /// + /// + /// + public static implicit operator global::ResembleAI.WatermarkVisionDetectionMetrics?(WatermarkDetectItemMetrics @this) => @this.WatermarkVisionDetectionMetrics; + + /// + /// + /// + public WatermarkDetectItemMetrics(global::ResembleAI.WatermarkVisionDetectionMetrics? value) + { + WatermarkVisionDetectionMetrics = value; + } + + /// + /// + /// + public static WatermarkDetectItemMetrics FromWatermarkVisionDetectionMetrics(global::ResembleAI.WatermarkVisionDetectionMetrics? value) => new WatermarkDetectItemMetrics(value); + + /// + /// + /// + public WatermarkDetectItemMetrics( + global::ResembleAI.WatermarkAudioDetectionMetrics? watermarkAudioDetectionMetrics, + global::ResembleAI.WatermarkVisionDetectionMetrics? watermarkVisionDetectionMetrics + ) + { + WatermarkAudioDetectionMetrics = watermarkAudioDetectionMetrics; + WatermarkVisionDetectionMetrics = watermarkVisionDetectionMetrics; + } + + /// + /// + /// + public object? Object => + WatermarkVisionDetectionMetrics as object ?? + WatermarkAudioDetectionMetrics as object + ; + + /// + /// + /// + public override string? ToString() => + WatermarkAudioDetectionMetrics?.ToString() ?? + WatermarkVisionDetectionMetrics?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsWatermarkAudioDetectionMetrics && !IsWatermarkVisionDetectionMetrics || !IsWatermarkAudioDetectionMetrics && IsWatermarkVisionDetectionMetrics; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? watermarkAudioDetectionMetrics = null, + global::System.Func? watermarkVisionDetectionMetrics = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsWatermarkAudioDetectionMetrics && watermarkAudioDetectionMetrics != null) + { + return watermarkAudioDetectionMetrics(WatermarkAudioDetectionMetrics!); + } + else if (IsWatermarkVisionDetectionMetrics && watermarkVisionDetectionMetrics != null) + { + return watermarkVisionDetectionMetrics(WatermarkVisionDetectionMetrics!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? watermarkAudioDetectionMetrics = null, + + global::System.Action? watermarkVisionDetectionMetrics = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsWatermarkAudioDetectionMetrics) + { + watermarkAudioDetectionMetrics?.Invoke(WatermarkAudioDetectionMetrics!); + } + else if (IsWatermarkVisionDetectionMetrics) + { + watermarkVisionDetectionMetrics?.Invoke(WatermarkVisionDetectionMetrics!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? watermarkAudioDetectionMetrics = null, + global::System.Action? watermarkVisionDetectionMetrics = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsWatermarkAudioDetectionMetrics) + { + watermarkAudioDetectionMetrics?.Invoke(WatermarkAudioDetectionMetrics!); + } + else if (IsWatermarkVisionDetectionMetrics) + { + watermarkVisionDetectionMetrics?.Invoke(WatermarkVisionDetectionMetrics!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + WatermarkAudioDetectionMetrics, + typeof(global::ResembleAI.WatermarkAudioDetectionMetrics), + WatermarkVisionDetectionMetrics, + typeof(global::ResembleAI.WatermarkVisionDetectionMetrics), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(WatermarkDetectItemMetrics other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(WatermarkAudioDetectionMetrics, other.WatermarkAudioDetectionMetrics) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WatermarkVisionDetectionMetrics, other.WatermarkVisionDetectionMetrics) + ; + } + + /// + /// + /// + public static bool operator ==(WatermarkDetectItemMetrics obj1, WatermarkDetectItemMetrics obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(WatermarkDetectItemMetrics obj1, WatermarkDetectItemMetrics obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is WatermarkDetectItemMetrics o && Equals(o); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemModelVersion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemModelVersion.g.cs new file mode 100644 index 0000000..4524d85 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemModelVersion.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Present for image/video. Audio versions are reported in metrics.model_results. + /// + public enum WatermarkDetectItemModelVersion + { + /// + /// + /// + PerthV2, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkDetectItemModelVersionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkDetectItemModelVersion value) + { + return value switch + { + WatermarkDetectItemModelVersion.PerthV2 => "perth_v2", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkDetectItemModelVersion? ToEnum(string value) + { + return value switch + { + "perth_v2" => WatermarkDetectItemModelVersion.PerthV2, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemOperationType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemOperationType.g.cs new file mode 100644 index 0000000..67db395 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemOperationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkDetectItemOperationType + { + /// + /// + /// + Detect, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkDetectItemOperationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkDetectItemOperationType value) + { + return value switch + { + WatermarkDetectItemOperationType.Detect => "detect", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkDetectItemOperationType? ToEnum(string value) + { + return value switch + { + "detect" => WatermarkDetectItemOperationType.Detect, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemStatus.g.cs new file mode 100644 index 0000000..5b35e99 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectItemStatus.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkDetectItemStatus + { + /// + /// + /// + Completed, + /// + /// + /// + Failed, + /// + /// + /// + Pending, + /// + /// + /// + Processing, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkDetectItemStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkDetectItemStatus value) + { + return value switch + { + WatermarkDetectItemStatus.Completed => "completed", + WatermarkDetectItemStatus.Failed => "failed", + WatermarkDetectItemStatus.Pending => "pending", + WatermarkDetectItemStatus.Processing => "processing", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkDetectItemStatus? ToEnum(string value) + { + return value switch + { + "completed" => WatermarkDetectItemStatus.Completed, + "failed" => WatermarkDetectItemStatus.Failed, + "pending" => WatermarkDetectItemStatus.Pending, + "processing" => WatermarkDetectItemStatus.Processing, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 44325d6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class WatermarkDetectPostResponsesContentApplicationJsonSchemaItem - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 850317c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,102 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class WatermarkDetectPostResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public string? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("media_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter))] - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? MediaType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_media_url")] - public string? SourceMediaUrl { get; set; } - - /// - /// Detection results. Null while processing. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metrics")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter))] - public global::ResembleAI.OneOf? Metrics { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("watermarked_media")] - public string? WatermarkedMedia { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { 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. - /// - /// - /// - /// - /// - /// Detection results. Null while processing. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public WatermarkDetectPostResponsesContentApplicationJsonSchemaItem( - string? uuid, - global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? mediaType, - string? sourceMediaUrl, - global::ResembleAI.OneOf? metrics, - string? watermarkedMedia, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.MediaType = mediaType; - this.SourceMediaUrl = sourceMediaUrl; - this.Metrics = metrics; - this.WatermarkedMedia = watermarkedMedia; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public WatermarkDetectPostResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs deleted file mode 100644 index d84b415..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType - { - /// - /// - /// - Audio, - /// - /// - /// - Image, - /// - /// - /// - Video, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType value) - { - return value switch - { - WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.Audio => "audio", - WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.Image => "image", - WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.Video => "video", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? ToEnum(string value) - { - return value switch - { - "audio" => WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.Audio, - "image" => WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.Image, - "video" => WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType.Video, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs deleted file mode 100644 index 15923d4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics), - jsonSerializerContext) as global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics.g.cs deleted file mode 100644 index 1ad516a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Detection results. Null while processing. - /// - public sealed partial class WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectRequest.Json.g.cs new file mode 100644 index 0000000..b71fceb --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class WatermarkDetectRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkDetectRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.WatermarkDetectRequest), + jsonSerializerContext) as global::ResembleAI.WatermarkDetectRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkDetectRequest? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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::ResembleAI.WatermarkDetectRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + 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::ResembleAI.WatermarkDetectRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectWatermarkRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectRequest.g.cs similarity index 70% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.DetectWatermarkRequest.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectRequest.g.cs index 086f199..8eaab6e 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectWatermarkRequest.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectRequest.g.cs @@ -6,17 +6,17 @@ namespace ResembleAI /// /// /// - public sealed partial class DetectWatermarkRequest + public sealed partial class WatermarkDetectRequest { /// - /// HTTPS URL to the media file (audio, image, or video). + /// Public HTTPS URL to the audio, image, or video source. /// [global::System.Text.Json.Serialization.JsonPropertyName("url")] [global::System.Text.Json.Serialization.JsonRequired] public required string Url { get; set; } /// - /// Custom message used during encoding for image/video. Ignored for audio.
+ /// Message used when applying the image/video watermark. Ignored for audio.
/// Default Value: resembleai ///
[global::System.Text.Json.Serialization.JsonPropertyName("custom_message")] @@ -29,19 +29,19 @@ public sealed partial class DetectWatermarkRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// HTTPS URL to the media file (audio, image, or video). + /// Public HTTPS URL to the audio, image, or video source. /// /// - /// Custom message used during encoding for image/video. Ignored for audio.
+ /// Message used when applying the image/video watermark. Ignored for audio.
/// Default Value: resembleai /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public DetectWatermarkRequest( + public WatermarkDetectRequest( string url, string? customMessage) { @@ -50,9 +50,9 @@ public DetectWatermarkRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public DetectWatermarkRequest() + public WatermarkDetectRequest() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectResponse.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectResponse.Json.g.cs new file mode 100644 index 0000000..007eed8 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class WatermarkDetectResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkDetectResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.WatermarkDetectResponse), + jsonSerializerContext) as global::ResembleAI.WatermarkDetectResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkDetectResponse? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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::ResembleAI.WatermarkDetectResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + 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::ResembleAI.WatermarkDetectResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectWatermarkResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectResponse.g.cs similarity index 66% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectWatermarkResponse200.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectResponse.g.cs index cbe48e2..8421e18 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectWatermarkResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectResponse.g.cs @@ -6,19 +6,21 @@ namespace ResembleAI /// /// /// - public sealed partial class WatermarkDetectWatermarkResponse200 + public sealed partial class WatermarkDetectResponse { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? Item { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkDetectItem Item { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,25 +29,25 @@ public sealed partial class WatermarkDetectWatermarkResponse200 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WatermarkDetectWatermarkResponse200( - bool? success, - global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? item) + public WatermarkDetectResponse( + bool success, + global::ResembleAI.WatermarkDetectItem item) { this.Success = success; - this.Item = item; + this.Item = item ?? throw new global::System.ArgumentNullException(nameof(item)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WatermarkDetectWatermarkResponse200() + public WatermarkDetectResponse() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 9e98967..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 9f32219..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,102 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public string? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("media_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter))] - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? MediaType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_media_url")] - public string? SourceMediaUrl { get; set; } - - /// - /// Detection results. For audio, has_watermark is a per-channel object. For image/video, has_watermark is a boolean. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metrics")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter))] - public global::ResembleAI.OneOf? Metrics { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("watermarked_media")] - public string? WatermarkedMedia { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { 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. - /// - /// - /// - /// - /// - /// Detection results. For audio, has_watermark is a per-channel object. For image/video, has_watermark is a boolean. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem( - string? uuid, - global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? mediaType, - string? sourceMediaUrl, - global::ResembleAI.OneOf? metrics, - string? watermarkedMedia, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.MediaType = mediaType; - this.SourceMediaUrl = sourceMediaUrl; - this.Metrics = metrics; - this.WatermarkedMedia = watermarkedMedia; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs deleted file mode 100644 index 6bcf0bf..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType - { - /// - /// - /// - Audio, - /// - /// - /// - Image, - /// - /// - /// - Video, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType value) - { - return value switch - { - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Audio => "audio", - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Image => "image", - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Video => "video", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? ToEnum(string value) - { - return value switch - { - "audio" => WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Audio, - "image" => WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Image, - "video" => WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType.Video, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs deleted file mode 100644 index 5b600cb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics), - jsonSerializerContext) as global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.g.cs deleted file mode 100644 index 1796e03..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Detection results. For audio, has_watermark is a per-channel object. For image/video, has_watermark is a boolean. - /// - public sealed partial class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("has_watermark")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkJsonConverter))] - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? HasWatermark { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics( - global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? hasWatermark) - { - this.HasWatermark = hasWatermark; - } - - /// - /// Initializes a new instance of the class. - /// - public WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark.Json.g.cs deleted file mode 100644 index df19aa1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public readonly partial struct WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark), - jsonSerializerContext) as global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark.g.cs deleted file mode 100644 index dae6596..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public readonly partial struct WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public global::System.Collections.Generic.Dictionary? WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 { get; init; } -#else - public global::System.Collections.Generic.Dictionary? WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1))] -#endif - public bool IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 => WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 != null; - - /// - /// - /// - public bool TryPickWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::System.Collections.Generic.Dictionary? value) - { - value = WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1; - return IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1; - } - - /// - /// - /// - public global::System.Collections.Generic.Dictionary PickWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1() => IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 - ? WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1! - : throw new global::System.InvalidOperationException($"Expected union variant 'WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public bool? WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 { get; init; } -#else - public bool? WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2))] -#endif - public bool IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 => WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 != null; - - /// - /// - /// - public bool TryPickWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out bool? value) - { - value = WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2; - return IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2; - } - - /// - /// - /// - public bool PickWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2() => IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 - ? WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark(global::System.Collections.Generic.Dictionary value) => new WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark((global::System.Collections.Generic.Dictionary?)value); - - /// - /// - /// - public static implicit operator global::System.Collections.Generic.Dictionary?(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark @this) => @this.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1; - - /// - /// - /// - public WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark(global::System.Collections.Generic.Dictionary? value) - { - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 = value; - } - - /// - /// - /// - public static WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark FromWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1(global::System.Collections.Generic.Dictionary? value) => new WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark(value); - - /// - /// - /// - public static implicit operator WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark(bool value) => new WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark((bool?)value); - - /// - /// - /// - public static implicit operator bool?(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark @this) => @this.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2; - - /// - /// - /// - public WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark(bool? value) - { - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 = value; - } - - /// - /// - /// - public static WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark FromWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2(bool? value) => new WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark(value); - - /// - /// - /// - public WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark( - global::System.Collections.Generic.Dictionary? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1, - bool? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 - ) - { - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 = watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1; - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 = watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2; - } - - /// - /// - /// - public object? Object => - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 as object ?? - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 as object - ; - - /// - /// - /// - public override string? ToString() => - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1?.ToString() ?? - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2?.ToString().ToLowerInvariant() - ; - - /// - /// - /// - public bool Validate() - { - return IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 && !IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 || !IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 && IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2; - } - - /// - /// - /// - public TResult? Match( - global::System.Func, TResult>? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 = null, - global::System.Func? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 && watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 != null) - { - return watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1!); - } - else if (IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 && watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 != null) - { - return watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action>? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 = null, - - global::System.Action? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1) - { - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1?.Invoke(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1!); - } - else if (IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2) - { - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2?.Invoke(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action>? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 = null, - global::System.Action? watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1) - { - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1?.Invoke(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1!); - } - else if (IsWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2) - { - watermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2?.Invoke(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1, - typeof(global::System.Collections.Generic.Dictionary), - WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2, - typeof(bool), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark other) - { - return - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1, other.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2, other.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant2) - ; - } - - /// - /// - /// - public static bool operator ==(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark obj1, WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark obj1, WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark o && Equals(o); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1.Json.g.cs deleted file mode 100644 index 230f5d6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1), - jsonSerializerContext) as global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - 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::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkVariant1; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkApplyResultResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkApplyResultResponse200.g.cs deleted file mode 100644 index 4333df2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkGetWatermarkApplyResultResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class WatermarkGetWatermarkApplyResultResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public WatermarkGetWatermarkApplyResultResponse200( - bool? success, - global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public WatermarkGetWatermarkApplyResultResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetrics.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetrics.Json.g.cs new file mode 100644 index 0000000..1b4d723 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetrics.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class WatermarkVisionDetectionMetrics + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkVisionDetectionMetrics? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.WatermarkVisionDetectionMetrics), + jsonSerializerContext) as global::ResembleAI.WatermarkVisionDetectionMetrics; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkVisionDetectionMetrics? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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::ResembleAI.WatermarkVisionDetectionMetrics? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + 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::ResembleAI.WatermarkVisionDetectionMetrics), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkVisionDetectionMetrics; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetrics.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetrics.g.cs new file mode 100644 index 0000000..feafd5e --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetrics.g.cs @@ -0,0 +1,110 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class WatermarkVisionDetectionMetrics + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("overall_status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus OverallStatus { get; set; } + + /// + /// Contains perth_v2 only when watermark signal is detected. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("detected_model_versions")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList DetectedModelVersions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_watermark")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool HasWatermark { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("detection_score")] + public double? DetectionScore { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_results")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ModelResults { get; set; } + + /// + /// Backward-compatible image/video verdict. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("verdict")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter))] + public global::ResembleAI.OneOf? Verdict { get; set; } + + /// + /// Optional auxiliary SynthID signal for images. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("synthid")] + public bool? Synthid { 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. + /// + /// + /// + /// Contains perth_v2 only when watermark signal is detected. + /// + /// + /// + /// + /// + /// Backward-compatible image/video verdict. + /// + /// + /// Optional auxiliary SynthID signal for images. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WatermarkVisionDetectionMetrics( + global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus overallStatus, + global::System.Collections.Generic.IList detectedModelVersions, + bool hasWatermark, + global::System.Collections.Generic.IList modelResults, + double? detectionScore, + global::ResembleAI.OneOf? verdict, + bool? synthid) + { + this.OverallStatus = overallStatus; + this.DetectedModelVersions = detectedModelVersions ?? throw new global::System.ArgumentNullException(nameof(detectedModelVersions)); + this.HasWatermark = hasWatermark; + this.DetectionScore = detectionScore; + this.ModelResults = modelResults ?? throw new global::System.ArgumentNullException(nameof(modelResults)); + this.Verdict = verdict; + this.Synthid = synthid; + } + + /// + /// Initializes a new instance of the class. + /// + public WatermarkVisionDetectionMetrics() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetricsDetectedModelVersionsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetricsDetectedModelVersionsItems.g.cs new file mode 100644 index 0000000..efb4894 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetricsDetectedModelVersionsItems.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkVisionDetectionMetricsDetectedModelVersionsItems + { + /// + /// + /// + PerthV2, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkVisionDetectionMetricsDetectedModelVersionsItemsExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkVisionDetectionMetricsDetectedModelVersionsItems value) + { + return value switch + { + WatermarkVisionDetectionMetricsDetectedModelVersionsItems.PerthV2 => "perth_v2", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkVisionDetectionMetricsDetectedModelVersionsItems? ToEnum(string value) + { + return value switch + { + "perth_v2" => WatermarkVisionDetectionMetricsDetectedModelVersionsItems.PerthV2, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetricsOverallStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetricsOverallStatus.g.cs new file mode 100644 index 0000000..38643d9 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetricsOverallStatus.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkVisionDetectionMetricsOverallStatus + { + /// + /// + /// + Absent, + /// + /// + /// + Degraded, + /// + /// + /// + Inconclusive, + /// + /// + /// + Present, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkVisionDetectionMetricsOverallStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkVisionDetectionMetricsOverallStatus value) + { + return value switch + { + WatermarkVisionDetectionMetricsOverallStatus.Absent => "absent", + WatermarkVisionDetectionMetricsOverallStatus.Degraded => "degraded", + WatermarkVisionDetectionMetricsOverallStatus.Inconclusive => "inconclusive", + WatermarkVisionDetectionMetricsOverallStatus.Present => "present", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkVisionDetectionMetricsOverallStatus? ToEnum(string value) + { + return value switch + { + "absent" => WatermarkVisionDetectionMetricsOverallStatus.Absent, + "degraded" => WatermarkVisionDetectionMetricsOverallStatus.Degraded, + "inconclusive" => WatermarkVisionDetectionMetricsOverallStatus.Inconclusive, + "present" => WatermarkVisionDetectionMetricsOverallStatus.Present, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetricsVerdict.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetricsVerdict.g.cs new file mode 100644 index 0000000..2dfb80f --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionDetectionMetricsVerdict.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Backward-compatible image/video verdict. + /// + public enum WatermarkVisionDetectionMetricsVerdict + { + /// + /// + /// + Degraded, + /// + /// + /// + NotWatermarked, + /// + /// + /// + Verified, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkVisionDetectionMetricsVerdictExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkVisionDetectionMetricsVerdict value) + { + return value switch + { + WatermarkVisionDetectionMetricsVerdict.Degraded => "degraded", + WatermarkVisionDetectionMetricsVerdict.NotWatermarked => "not_watermarked", + WatermarkVisionDetectionMetricsVerdict.Verified => "verified", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkVisionDetectionMetricsVerdict? ToEnum(string value) + { + return value switch + { + "degraded" => WatermarkVisionDetectionMetricsVerdict.Degraded, + "not_watermarked" => WatermarkVisionDetectionMetricsVerdict.NotWatermarked, + "verified" => WatermarkVisionDetectionMetricsVerdict.Verified, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResult.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResult.Json.g.cs new file mode 100644 index 0000000..2c33d59 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResult.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class WatermarkVisionModelResult + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkVisionModelResult? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.WatermarkVisionModelResult), + jsonSerializerContext) as global::ResembleAI.WatermarkVisionModelResult; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.WatermarkVisionModelResult? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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::ResembleAI.WatermarkVisionModelResult? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.SourceGenerationContext.Default); + } + + 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::ResembleAI.WatermarkVisionModelResult), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.WatermarkVisionModelResult; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResult.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResult.g.cs new file mode 100644 index 0000000..3b9861a --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResult.g.cs @@ -0,0 +1,74 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class WatermarkVisionModelResult + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_version")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionJsonConverter))] + public global::ResembleAI.WatermarkVisionModelResultModelVersion ModelVersion { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusJsonConverter))] + public global::ResembleAI.WatermarkVisionModelResultStatus Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("detected")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Detected { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WatermarkVisionModelResult( + bool detected, + global::ResembleAI.WatermarkVisionModelResultModelVersion modelVersion, + global::ResembleAI.WatermarkVisionModelResultStatus status, + double? confidence) + { + this.ModelVersion = modelVersion; + this.Status = status; + this.Detected = detected; + this.Confidence = confidence; + } + + /// + /// Initializes a new instance of the class. + /// + public WatermarkVisionModelResult() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResultModelVersion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResultModelVersion.g.cs new file mode 100644 index 0000000..eca9691 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResultModelVersion.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkVisionModelResultModelVersion + { + /// + /// + /// + PerthV2, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkVisionModelResultModelVersionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkVisionModelResultModelVersion value) + { + return value switch + { + WatermarkVisionModelResultModelVersion.PerthV2 => "perth_v2", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkVisionModelResultModelVersion? ToEnum(string value) + { + return value switch + { + "perth_v2" => WatermarkVisionModelResultModelVersion.PerthV2, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResultStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResultStatus.g.cs new file mode 100644 index 0000000..9cf081a --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.WatermarkVisionModelResultStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum WatermarkVisionModelResultStatus + { + /// + /// + /// + Succeeded, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WatermarkVisionModelResultStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WatermarkVisionModelResultStatus value) + { + return value switch + { + WatermarkVisionModelResultStatus.Succeeded => "succeeded", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WatermarkVisionModelResultStatus? ToEnum(string value) + { + return value switch + { + "succeeded" => WatermarkVisionModelResultStatus.Succeeded, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.ApplyWatermark.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.ApplyWatermark.g.cs index c0b909b..f4a32d1 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.ApplyWatermark.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.ApplyWatermark.g.cs @@ -36,12 +36,12 @@ public partial class WatermarkClient partial void PrepareApplyWatermarkArguments( global::System.Net.Http.HttpClient httpClient, ref global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer, - global::ResembleAI.ApplyWatermarkRequest request); + global::ResembleAI.WatermarkApplyRequest request); partial void PrepareApplyWatermarkRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer, - global::ResembleAI.ApplyWatermarkRequest request); + global::ResembleAI.WatermarkApplyRequest request); partial void ProcessApplyWatermarkResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -53,16 +53,16 @@ partial void ProcessApplyWatermarkResponseContent( /// /// Apply watermark
- /// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ApplyWatermarkAsync( + public async global::System.Threading.Tasks.Task ApplyWatermarkAsync( - global::ResembleAI.ApplyWatermarkRequest request, + global::ResembleAI.WatermarkApplyRequest request, global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -79,16 +79,16 @@ partial void ProcessApplyWatermarkResponseContent( } /// /// Apply watermark
- /// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ApplyWatermarkAsResponseAsync( + public async global::System.Threading.Tasks.Task> ApplyWatermarkAsResponseAsync( - global::ResembleAI.ApplyWatermarkRequest request, + global::ResembleAI.WatermarkApplyRequest request, global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -384,9 +384,9 @@ partial void ProcessApplyWatermarkResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::ResembleAI.WatermarkApplyWatermarkResponse200.FromJson(__content, JsonSerializerContext) ?? + var __value = global::ResembleAI.WatermarkApplyResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -416,9 +416,9 @@ partial void ProcessApplyWatermarkResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::ResembleAI.WatermarkApplyWatermarkResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::ResembleAI.WatermarkApplyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -460,24 +460,24 @@ partial void ProcessApplyWatermarkResponseContent( } /// /// Apply watermark
- /// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// - /// HTTPS URL to the media file (audio, image, or video). + /// Public HTTPS URL to the audio, image, or video source. /// /// /// Watermark strength for image/video. Ignored for audio.
/// Default Value: 0.2F /// /// - /// Custom message to embed for image/video. Ignored for audio.
+ /// Message to embed in image/video. Ignored for audio.
/// Default Value: resembleai /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ApplyWatermarkAsync( + public async global::System.Threading.Tasks.Task ApplyWatermarkAsync( string url, global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default, double? strength = default, @@ -485,7 +485,7 @@ partial void ProcessApplyWatermarkResponseContent( global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::ResembleAI.ApplyWatermarkRequest + var __request = new global::ResembleAI.WatermarkApplyRequest { Url = url, Strength = strength, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.DetectWatermark.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.DetectWatermark.g.cs index 61df7fe..fb1fdcf 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.DetectWatermark.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.DetectWatermark.g.cs @@ -36,12 +36,12 @@ public partial class WatermarkClient partial void PrepareDetectWatermarkArguments( global::System.Net.Http.HttpClient httpClient, ref global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer, - global::ResembleAI.DetectWatermarkRequest request); + global::ResembleAI.WatermarkDetectRequest request); partial void PrepareDetectWatermarkRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer, - global::ResembleAI.DetectWatermarkRequest request); + global::ResembleAI.WatermarkDetectRequest request); partial void ProcessDetectWatermarkResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -53,16 +53,16 @@ partial void ProcessDetectWatermarkResponseContent( /// /// Detect watermark
- /// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DetectWatermarkAsync( + public async global::System.Threading.Tasks.Task DetectWatermarkAsync( - global::ResembleAI.DetectWatermarkRequest request, + global::ResembleAI.WatermarkDetectRequest request, global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -79,16 +79,16 @@ partial void ProcessDetectWatermarkResponseContent( } /// /// Detect watermark
- /// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> DetectWatermarkAsResponseAsync( + public async global::System.Threading.Tasks.Task> DetectWatermarkAsResponseAsync( - global::ResembleAI.DetectWatermarkRequest request, + global::ResembleAI.WatermarkDetectRequest request, global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -384,9 +384,9 @@ partial void ProcessDetectWatermarkResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::ResembleAI.WatermarkDetectWatermarkResponse200.FromJson(__content, JsonSerializerContext) ?? + var __value = global::ResembleAI.WatermarkDetectResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -416,9 +416,9 @@ partial void ProcessDetectWatermarkResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::ResembleAI.WatermarkDetectWatermarkResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::ResembleAI.WatermarkDetectResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -460,27 +460,27 @@ partial void ProcessDetectWatermarkResponseContent( } /// /// Detect watermark
- /// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing. + /// Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied. ///
/// /// - /// HTTPS URL to the media file (audio, image, or video). + /// Public HTTPS URL to the audio, image, or video source. /// /// - /// Custom message used during encoding for image/video. Ignored for audio.
+ /// Message used when applying the image/video watermark. Ignored for audio.
/// Default Value: resembleai /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DetectWatermarkAsync( + public async global::System.Threading.Tasks.Task DetectWatermarkAsync( string url, global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default, string? customMessage = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::ResembleAI.DetectWatermarkRequest + var __request = new global::ResembleAI.WatermarkDetectRequest { Url = url, CustomMessage = customMessage, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.GetWatermarkApplyResult.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.GetWatermarkApplyResult.g.cs index 62c7237..e48870a 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.GetWatermarkApplyResult.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.GetWatermarkApplyResult.g.cs @@ -57,7 +57,7 @@ partial void ProcessGetWatermarkApplyResultResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetWatermarkApplyResultAsync( + public async global::System.Threading.Tasks.Task GetWatermarkApplyResultAsync( string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -78,7 +78,7 @@ partial void ProcessGetWatermarkApplyResultResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetWatermarkApplyResultAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetWatermarkApplyResultAsResponseAsync( string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -358,9 +358,9 @@ partial void ProcessGetWatermarkApplyResultResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200.FromJson(__content, JsonSerializerContext) ?? + var __value = global::ResembleAI.WatermarkApplyResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -390,9 +390,9 @@ partial void ProcessGetWatermarkApplyResultResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::ResembleAI.WatermarkApplyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.GetWatermarkDetectionResult.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.GetWatermarkDetectionResult.g.cs index bbf65b4..3530fd5 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.GetWatermarkDetectionResult.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.WatermarkClient.GetWatermarkDetectionResult.g.cs @@ -57,7 +57,7 @@ partial void ProcessGetWatermarkDetectionResultResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetWatermarkDetectionResultAsync( + public async global::System.Threading.Tasks.Task GetWatermarkDetectionResultAsync( string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -78,7 +78,7 @@ partial void ProcessGetWatermarkDetectionResultResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetWatermarkDetectionResultAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetWatermarkDetectionResultAsResponseAsync( string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -358,9 +358,9 @@ partial void ProcessGetWatermarkDetectionResultResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200.FromJson(__content, JsonSerializerContext) ?? + var __value = global::ResembleAI.WatermarkDetectResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -390,9 +390,9 @@ partial void ProcessGetWatermarkDetectionResultResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::ResembleAI.WatermarkDetectResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/ResembleAI/openapi.yaml b/src/libs/ResembleAI/openapi.yaml index a443128..2c16ef4 100644 --- a/src/libs/ResembleAI/openapi.yaml +++ b/src/libs/ResembleAI/openapi.yaml @@ -4049,7 +4049,7 @@ "post": { "operationId": "apply-watermark", "summary": "Apply watermark", - "description": "Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.", + "description": "Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied.", "tags": [ "watermark" ], @@ -4079,7 +4079,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Watermark_applyWatermark_Response_200" + "$ref": "#/components/schemas/WatermarkApplyResponse" } } } @@ -4089,28 +4089,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "url": { - "type": "string", - "format": "uri", - "description": "HTTPS URL to the media file (audio, image, or video)." - }, - "strength": { - "type": "number", - "format": "double", - "default": 0.2, - "description": "Watermark strength for image/video. Ignored for audio." - }, - "custom_message": { - "type": "string", - "default": "resembleai", - "description": "Custom message to embed for image/video. Ignored for audio." - } - }, - "required": [ - "url" - ] + "$ref": "#/components/schemas/WatermarkApplyRequest" } } } @@ -4155,7 +4134,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Watermark_getWatermarkApplyResult_Response_200" + "$ref": "#/components/schemas/WatermarkApplyResponse" } } } @@ -4172,7 +4151,7 @@ "post": { "operationId": "detect-watermark", "summary": "Detect watermark", - "description": "Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.", + "description": "Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied.", "tags": [ "watermark" ], @@ -4202,7 +4181,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Watermark_detectWatermark_Response_200" + "$ref": "#/components/schemas/WatermarkDetectResponse" } } } @@ -4212,22 +4191,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "url": { - "type": "string", - "format": "uri", - "description": "HTTPS URL to the media file (audio, image, or video)." - }, - "custom_message": { - "type": "string", - "default": "resembleai", - "description": "Custom message used during encoding for image/video. Ignored for audio." - } - }, - "required": [ - "url" - ] + "$ref": "#/components/schemas/WatermarkDetectRequest" } } } @@ -4272,7 +4236,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Watermark_getWatermarkDetectionResult_Response_200" + "$ref": "#/components/schemas/WatermarkDetectResponse" } } } @@ -10780,7 +10744,32 @@ ], "title": "WatermarkApplyPostParametersPrefer" }, - "WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType": { + "WatermarkApplyRequest": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "description": "Public HTTPS URL to the audio, image, or video source." + }, + "strength": { + "type": "number", + "format": "double", + "default": 0.2, + "description": "Watermark strength for image/video. Ignored for audio." + }, + "custom_message": { + "type": "string", + "default": "resembleai", + "description": "Message to embed in image/video. Ignored for audio." + } + }, + "required": [ + "url" + ], + "title": "WatermarkApplyRequest" + }, + "WatermarkApplyItemMediaType": { "type": "string", "enum": [ "audio", @@ -10788,27 +10777,74 @@ "video" ], "description": "Detected media type of the source file.", - "title": "WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType" + "title": "WatermarkApplyItemMediaType" }, - "WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics": { + "WatermarkApplyItemOperationType": { + "type": "string", + "enum": [ + "apply" + ], + "title": "WatermarkApplyItemOperationType" + }, + "WatermarkApplyItemStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" + ], + "title": "WatermarkApplyItemStatus" + }, + "WatermarkApplyItemModelVersion": { + "type": "string", + "enum": [ + "perth_v2" + ], + "title": "WatermarkApplyItemModelVersion" + }, + "WatermarkApplyMetrics": { "type": "object", - "properties": {}, - "title": "WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics" + "properties": { + "strength": { + "type": "number", + "format": "double" + }, + "custom_message": { + "type": "string" + }, + "message_bits_length": { + "type": [ + "integer", + "null" + ] + } + }, + "description": "Apply metadata for image/video. Audio apply metrics are null.", + "title": "WatermarkApplyMetrics" }, - "WatermarkApplyPostResponsesContentApplicationJsonSchemaItem": { + "WatermarkApplyItem": { "type": "object", "properties": { "uuid": { "type": "string" }, "media_type": { - "$ref": "#/components/schemas/WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType", + "$ref": "#/components/schemas/WatermarkApplyItemMediaType", "description": "Detected media type of the source file." }, + "operation_type": { + "$ref": "#/components/schemas/WatermarkApplyItemOperationType" + }, + "status": { + "$ref": "#/components/schemas/WatermarkApplyItemStatus" + }, + "model_version": { + "$ref": "#/components/schemas/WatermarkApplyItemModelVersion" + }, "source_media_url": { "type": "string", - "format": "uri", - "description": "The original source URL provided in the request." + "format": "uri" }, "watermarked_media": { "type": [ @@ -10816,17 +10852,10 @@ "null" ], "format": "uri", - "description": "Signed URL to the watermarked file. Populated when processing is complete." + "description": "Signed output URL when processing is complete." }, "metrics": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/WatermarkApplyMetrics" }, "created_at": { "type": "string", @@ -10837,204 +10866,368 @@ "format": "date-time" } }, - "title": "WatermarkApplyPostResponsesContentApplicationJsonSchemaItem" + "required": [ + "uuid", + "media_type", + "operation_type", + "status", + "model_version", + "source_media_url", + "created_at", + "updated_at" + ], + "title": "WatermarkApplyItem" }, - "Watermark_applyWatermark_Response_200": { + "WatermarkApplyResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/WatermarkApplyPostResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/WatermarkApplyItem" } }, - "title": "Watermark_applyWatermark_Response_200" + "required": [ + "success", + "item" + ], + "title": "WatermarkApplyResponse" }, - "WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType": { + "WatermarkDetectPostParametersPrefer": { + "type": "string", + "enum": [ + "wait" + ], + "title": "WatermarkDetectPostParametersPrefer" + }, + "WatermarkDetectRequest": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "description": "Public HTTPS URL to the audio, image, or video source." + }, + "custom_message": { + "type": "string", + "default": "resembleai", + "description": "Message used when applying the image/video watermark. Ignored for audio." + } + }, + "required": [ + "url" + ], + "title": "WatermarkDetectRequest" + }, + "WatermarkDetectItemMediaType": { "type": "string", "enum": [ "audio", "image", "video" ], - "title": "WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType" + "title": "WatermarkDetectItemMediaType" }, - "WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics": { - "type": "object", - "properties": {}, - "title": "WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics" + "WatermarkDetectItemOperationType": { + "type": "string", + "enum": [ + "detect" + ], + "title": "WatermarkDetectItemOperationType" + }, + "WatermarkDetectItemStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" + ], + "title": "WatermarkDetectItemStatus" }, - "WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem": { + "WatermarkDetectItemModelVersion": { + "type": "string", + "enum": [ + "perth_v2" + ], + "description": "Present for image/video. Audio versions are reported in metrics.model_results.", + "title": "WatermarkDetectItemModelVersion" + }, + "WatermarkAudioDetectionMetricsOverallStatus": { + "type": "string", + "enum": [ + "present", + "absent", + "inconclusive" + ], + "title": "WatermarkAudioDetectionMetricsOverallStatus" + }, + "WatermarkAudioDetectionMetricsDetectedModelVersionsItems": { + "type": "string", + "enum": [ + "perth_v1", + "perth_v2" + ], + "title": "WatermarkAudioDetectionMetricsDetectedModelVersionsItems" + }, + "WatermarkAudioModelResultModelVersion": { + "type": "string", + "enum": [ + "perth_v1", + "perth_v2" + ], + "title": "WatermarkAudioModelResultModelVersion" + }, + "WatermarkAudioModelResultStatus": { + "type": "string", + "enum": [ + "succeeded", + "failed" + ], + "title": "WatermarkAudioModelResultStatus" + }, + "WatermarkAudioModelResult": { "type": "object", "properties": { - "uuid": { - "type": "string" - }, - "media_type": { - "$ref": "#/components/schemas/WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType" + "model_version": { + "$ref": "#/components/schemas/WatermarkAudioModelResultModelVersion" }, - "source_media_url": { - "type": "string", - "format": "uri" + "status": { + "$ref": "#/components/schemas/WatermarkAudioModelResultStatus" }, - "watermarked_media": { + "detected": { "type": [ - "string", + "boolean", "null" ], - "format": "uri", - "description": "Signed URL to the watermarked file. Null while processing." + "description": "Null when this detector was unavailable." }, - "metrics": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics" - }, - { - "type": "null" - } - ] + "has_watermark": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "description": "Successful per-channel detection results." }, - "created_at": { - "type": "string", - "format": "date-time" + "confidence": { + "type": [ + "number", + "null" + ], + "format": "double" }, - "updated_at": { + "error": { "type": "string", - "format": "date-time" + "description": "Safe error message when status is failed." } }, - "title": "WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem" + "required": [ + "model_version", + "status", + "detected" + ], + "title": "WatermarkAudioModelResult" }, - "Watermark_getWatermarkApplyResult_Response_200": { + "WatermarkAudioDetectionMetrics": { "type": "object", "properties": { - "success": { - "type": "boolean" + "overall_status": { + "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsOverallStatus" }, - "item": { - "$ref": "#/components/schemas/WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem" + "detected_model_versions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsDetectedModelVersionsItems" + }, + "description": "Only model versions that positively detected a watermark." + }, + "coverage_complete": { + "type": "boolean", + "description": "True only when both audio detectors completed successfully." + }, + "has_watermark": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "description": "Per-channel aggregate across successful audio detectors." + }, + "confidence": { + "type": [ + "number", + "null" + ], + "format": "double" + }, + "model_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkAudioModelResult" + } } }, - "title": "Watermark_getWatermarkApplyResult_Response_200" + "required": [ + "overall_status", + "detected_model_versions", + "coverage_complete", + "has_watermark", + "model_results" + ], + "title": "WatermarkAudioDetectionMetrics" }, - "WatermarkDetectPostParametersPrefer": { + "WatermarkVisionDetectionMetricsOverallStatus": { "type": "string", "enum": [ - "wait" + "present", + "degraded", + "absent", + "inconclusive" ], - "title": "WatermarkDetectPostParametersPrefer" + "title": "WatermarkVisionDetectionMetricsOverallStatus" }, - "WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType": { + "WatermarkVisionDetectionMetricsDetectedModelVersionsItems": { "type": "string", "enum": [ - "audio", - "image", - "video" + "perth_v2" ], - "title": "WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType" + "title": "WatermarkVisionDetectionMetricsDetectedModelVersionsItems" }, - "WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics": { - "type": "object", - "properties": {}, - "description": "Detection results. Null while processing.", - "title": "WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics" + "WatermarkVisionModelResultModelVersion": { + "type": "string", + "enum": [ + "perth_v2" + ], + "title": "WatermarkVisionModelResultModelVersion" }, - "WatermarkDetectPostResponsesContentApplicationJsonSchemaItem": { + "WatermarkVisionModelResultStatus": { + "type": "string", + "enum": [ + "succeeded" + ], + "title": "WatermarkVisionModelResultStatus" + }, + "WatermarkVisionModelResult": { "type": "object", "properties": { - "uuid": { - "type": "string" - }, - "media_type": { - "$ref": "#/components/schemas/WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType" + "model_version": { + "$ref": "#/components/schemas/WatermarkVisionModelResultModelVersion" }, - "source_media_url": { - "type": "string", - "format": "uri" + "status": { + "$ref": "#/components/schemas/WatermarkVisionModelResultStatus" }, - "metrics": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics" - }, - { - "type": "null" - } - ], - "description": "Detection results. Null while processing." + "detected": { + "type": "boolean" }, - "watermarked_media": { + "confidence": { "type": [ - "string", + "number", "null" - ] - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" + ], + "format": "double" } }, - "title": "WatermarkDetectPostResponsesContentApplicationJsonSchemaItem" + "required": [ + "model_version", + "status", + "detected" + ], + "title": "WatermarkVisionModelResult" }, - "Watermark_detectWatermark_Response_200": { + "WatermarkVisionDetectionMetricsVerdict": { + "type": "string", + "enum": [ + "verified", + "degraded", + "not_watermarked" + ], + "description": "Backward-compatible image/video verdict.", + "title": "WatermarkVisionDetectionMetricsVerdict" + }, + "WatermarkVisionDetectionMetrics": { "type": "object", "properties": { - "success": { + "overall_status": { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsOverallStatus" + }, + "detected_model_versions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsDetectedModelVersionsItems" + }, + "description": "Contains perth_v2 only when watermark signal is detected." + }, + "has_watermark": { "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/WatermarkDetectPostResponsesContentApplicationJsonSchemaItem" + "detection_score": { + "type": [ + "number", + "null" + ], + "format": "double" + }, + "model_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkVisionModelResult" + } + }, + "verdict": { + "oneOf": [ + { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsVerdict" + }, + { + "type": "null" + } + ], + "description": "Backward-compatible image/video verdict." + }, + "synthid": { + "type": "boolean", + "description": "Optional auxiliary SynthID signal for images." } }, - "title": "Watermark_detectWatermark_Response_200" - }, - "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType": { - "type": "string", - "enum": [ - "audio", - "image", - "video" + "required": [ + "overall_status", + "detected_model_versions", + "has_watermark", + "detection_score", + "model_results" ], - "title": "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType" + "title": "WatermarkVisionDetectionMetrics" }, - "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark": { + "WatermarkDetectItemMetrics": { "oneOf": [ { - "type": "object", - "additionalProperties": { - "type": "boolean" - } + "$ref": "#/components/schemas/WatermarkAudioDetectionMetrics" }, { - "type": "boolean" + "$ref": "#/components/schemas/WatermarkVisionDetectionMetrics" } ], - "title": "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark" - }, - "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics": { - "type": "object", - "properties": { - "has_watermark": { - "$ref": "#/components/schemas/WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark" - } - }, - "description": "Detection results. For audio, has_watermark is a per-channel object. For image/video, has_watermark is a boolean.", - "title": "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics" + "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape.", + "title": "WatermarkDetectItemMetrics" }, - "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem": { + "WatermarkDetectItem": { "type": "object", "properties": { "uuid": { "type": "string" }, "media_type": { - "$ref": "#/components/schemas/WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType" + "$ref": "#/components/schemas/WatermarkDetectItemMediaType" + }, + "operation_type": { + "$ref": "#/components/schemas/WatermarkDetectItemOperationType" + }, + "status": { + "$ref": "#/components/schemas/WatermarkDetectItemStatus" + }, + "model_version": { + "$ref": "#/components/schemas/WatermarkDetectItemModelVersion", + "description": "Present for image/video. Audio versions are reported in metrics.model_results." }, "source_media_url": { "type": "string", @@ -11043,19 +11236,21 @@ "metrics": { "oneOf": [ { - "$ref": "#/components/schemas/WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics" + "$ref": "#/components/schemas/WatermarkDetectItemMetrics" }, { "type": "null" } ], - "description": "Detection results. For audio, has_watermark is a per-channel object. For image/video, has_watermark is a boolean." + "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape." }, "watermarked_media": { "type": [ "string", "null" - ] + ], + "format": "uri", + "description": "Detection does not produce output media." }, "created_at": { "type": "string", @@ -11066,19 +11261,32 @@ "format": "date-time" } }, - "title": "WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem" + "required": [ + "uuid", + "media_type", + "operation_type", + "status", + "source_media_url", + "created_at", + "updated_at" + ], + "title": "WatermarkDetectItem" }, - "Watermark_getWatermarkDetectionResult_Response_200": { + "WatermarkDetectResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/WatermarkDetectItem" } }, - "title": "Watermark_getWatermarkDetectionResult_Response_200" + "required": [ + "success", + "item" + ], + "title": "WatermarkDetectResponse" }, "VoicesGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object",